TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hands-on Scala Programming

378 点作者 jvican大约 5 年前

19 条评论

lihaoyi大约 5 年前
I didn&#x27;t post this, but cool to see this up here!<p>The full book is ~400 pages and will be released Summer 2020 (i.e. soon!). If you&#x27;re interested in being notified when it comes out, there&#x27;s a mailing list link on the page and I&#x27;ll let you know when it&#x27;s out. There will be both E-Books as well as paperbacks &amp; hardcovers (assuming the supply-chains are still open in this COVID-19 global environment...)<p>The first 5 chapters are already online, for free now and forever. These form a self-contained introduction to the Scala language: setup, basic syntax, collections, and a notable language features. If you&#x27;re looking for a quick introduction to Scala, this is it.<p>The rest of the book goes heavily into use cases and projects in a way that few other programming books do: interactive websites, network file synchronizers, programming language interpreters, migration tools, parallel web scrapers, and much more. The book intentionally skips a lot of language esoterica in favor of showing how to use Scala to do things someone might pay you a salary for.<p>You will learn Scala by building a breadth of useful experience, rather than a depth of knowledge in language minutiae.<p>The chapters in the book are all based on real projects I have worked on. Most projects take &lt;100 lines of code (i.e ~2 printed pages), and it is a testament to the Scala language that we can build working prototypes of all these things in a single 400-page book!<p>If this interests you, feel free to leave your email on the website, and browse through the free chapters already available.
评论 #22917108 未加载
评论 #22916370 未加载
评论 #22916992 未加载
评论 #22916039 未加载
评论 #22915793 未加载
评论 #22916315 未加载
评论 #22923323 未加载
评论 #22918038 未加载
评论 #22915289 未加载
dr0l3大约 5 年前
Some context for people who have limited knowledge of Scala.<p>Lihaoyi is one of the most prolific coder&#x27;s, not just in Scala, but in any language. He looks like he is much to humble and modest to claim so himself, so I will do it for him.<p>Here is a by no means exhaustive list of projects<p>- A buildtool<p>- A bash replacement that speaks Scala<p>- A test framework<p>- A parsing library<p>- Ports of several python libraries in Scala<p>- Several libraries in the scala.js ecosystem<p>For the full list see <a href="https:&#x2F;&#x2F;github.com&#x2F;lihaoyi?tab=repositories" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lihaoyi?tab=repositories</a><p>Discussions on Scala on HN tends to contain a somewhat large volume of comments that explicitly or implicitly tries to communicate that Scala is a language that is much to complicated to really be productive in. Lihaoyi is a rather clear example of why this is not true. If this random internet citizens endorsement doesn&#x27;t convince you maybe the book will :)
评论 #22916967 未加载
评论 #22916775 未加载
yingliu4203大约 5 年前
Haoyi is an amazing guy. Last night at 8pm and 2pm this morning I submitted two PR to the Mill, he merged within one hour. In about 7 years, he helped to create an eco-system around Scala:<p>- REPL (ammonite)<p>- build tool (mill)<p>- JSON serializer(uPickle)<p>- web framework (cask)<p>- test framework(uTest)<p>- http client lib (requests-scala)<p>- HTML tag lib (scalatags)<p>- parser(fast parse)<p>Scala development and tool can be divided into four categories<p>- Java (OO): wrong idea for many developers. Use Kotlin if you like OO.<p>- Haskell (pure FP, even HKT): good for fun but not for profit. Use Haskell for pure FP.<p>- Erlang (Actors): fibers are better. Use Clojure if you like Actors.<p>- Easy: practical FP, the above tools from Haoyi. Use them if you program in Scala<p>I&#x27;d guess all is done after work. Please support him to make Scala better: <a href="https:&#x2F;&#x2F;www.patreon.com&#x2F;join&#x2F;lihaoyi" rel="nofollow">https:&#x2F;&#x2F;www.patreon.com&#x2F;join&#x2F;lihaoyi</a>
评论 #22921672 未加载
评论 #22919506 未加载
评论 #22919684 未加载
评论 #22923896 未加载
christiansakai大约 5 年前
I work JavaScript&#x2F;TypeScript day to day, but I like Python syntax and easiness but also like Go&#x27;s concurrency. Having learned Haskell and Rust in the past, these days I appreciate simpler language.<p>In what way does Scala have Python&#x27;s convenience and Go&#x27;s concurrency? Based on talking to a few people that used Scala in the past they said they wouldn&#x27;t use it again and they said I probably wouldn&#x27;t like it.
评论 #22915835 未加载
评论 #22915682 未加载
评论 #22915678 未加载
评论 #22917319 未加载
评论 #22915738 未加载
评论 #22918126 未加载
petilon大约 5 年前
This book has a section on &quot;Why Scala&quot; but not on &quot;Why Functional Programming&quot;. What is interesting about Scala, if you already know Java (and most CS grads already do), is that Scala is a functional language.<p>Anyone know of a good book or article that gives an overview of functional programming and answers the question of &quot;Why Functional Programming&quot;, without going into details any one functional language?
评论 #22916431 未加载
评论 #22919963 未加载
评论 #22917095 未加载
airstrike大约 5 年前
&gt; Knowing the language alone isn&#x27;t enough to go to production: Hands-on Scala introduces the reader to the ecosystem of editors, build tools, web frameworks, database libraries, everything necessary to do real work using Scala. You will finish this book having all the necessary building blocks to be productive using Scala in production.<p>We definitely need more books to include this by default. Kudos!<p>I only wish a book like this existed for F#! If anyone has any recommendations, I&#x27;m all ears
评论 #22923886 未加载
spiderjerusalem大约 5 年前
Tangential but I just found out that the author is the son of Singapore&#x27;s PM Lee Hsien Loong.
submeta大约 5 年前
Honestly interested to know: Is there any added value for a Python developer in learning and using Scala? I love Python, especially because of its ecosystem, its widespreadedness, and of course because of Pandas, Numpy, Matplotlib. But I miss functional constructs from Mathematica or Scheme. Scala seems to be much more systematic and profound, but again: For everyday usage, is it overkill?
评论 #22918473 未加载
评论 #22918410 未加载
评论 #22918904 未加载
bogomipz大约 5 年前
Both the content and layout looks really fantastic!<p>I wanted to ask any experienced Scala folks if its possible become really proficient without a solid background in Java. I understand that its only JVM hosted language so I guess my concern is how much Java you need to know when things go sideways - stack traces, low level debugging etc?
评论 #22926660 未加载
truelaurel大约 5 年前
great action to make scala more accessible to developers. this should be a concrete answer to <a href="https:&#x2F;&#x2F;www.lihaoyi.com&#x2F;post&#x2F;TheDeathofHypeWhatsNextforScala.html" rel="nofollow">https:&#x2F;&#x2F;www.lihaoyi.com&#x2F;post&#x2F;TheDeathofHypeWhatsNextforScala...</a>
评论 #22916369 未加载
dionian大约 5 年前
Haoyi&#x27;s libraries (e.g. ujson) are great - and perfect for beginners to learn Scala with, very idiomatic scala without the Haskell-style overhead.
评论 #22919501 未加载
sscarduzio大约 5 年前
Great book! Scala really needed some pragmatic programming resources! And I really like the website, is it open source?
cmollis大约 5 年前
awesome.. your blog has been extremely helpful to me.. looking forward to the book.
ggregoire大约 5 年前
I guess this question pops up every time… what are some good reasons to choose Scala over Haskell or F# if you are interested in the FP part of Scala?
评论 #22918191 未加载
z3phyr大约 5 年前
A little off topic: Are there similar hands on books for high performance systems programming in C, C++ or Rust?
评论 #22917177 未加载
amdelamar大约 5 年前
This book looks great, and I can&#x27;t wait to pick up a physical copy. Thank you lihaoyi!
nullobject大约 5 年前
This looks great, looking forward to reading it.
sparklepwny大约 5 年前
scala blows, use kotlin
评论 #22918636 未加载
brentonator大约 5 年前
In light of social distancing can we get a not-so-hands-on version?