TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Strategic Scala Style: Principle of Least Power (2016)

51 pointsby brok3nmachinealmost 4 years ago

7 comments

dhconnellyalmost 4 years ago
Oh man, I read this article a few months back and it immediately resonated with me. I&#x27;ve never used Scala, but this advice has been applicable in every language, project, and team I&#x27;ve ever worked with, and I very much regret that I didn&#x27;t already have this resource to cite in past code reviews.<p>A lot of the worst tendencies that developers complain about in complex programming languages (i.e. all of them, they&#x27;re all complex) could be addressed by this advice.
评论 #27512366 未加载
dangalmost 4 years ago
Past related threads:<p><i>Strategic Scala Style: Principle of Least Power</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11467339" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11467339</a> - April 2016 (64 comments)<p><i>Strategic Scala Style: Principle of Least Power</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11265424" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11265424</a> - March 2016 (4 comments)
paulddraperalmost 4 years ago
I worked in Scala for years, and it is no small irony that this article is based in that language.
评论 #27512236 未加载
bryanrasmussenalmost 4 years ago
The W3C had a Tag Finding on the Rule of Least Power back in 2001 <a href="https:&#x2F;&#x2F;www.w3.org&#x2F;2001&#x2F;tag&#x2F;doc&#x2F;leastPower.html" rel="nofollow">https:&#x2F;&#x2F;www.w3.org&#x2F;2001&#x2F;tag&#x2F;doc&#x2F;leastPower.html</a>
AheadOfTime295almost 4 years ago
If this Principle of Least Power had been applied to sbt, what would have been the result? Compilation times depend on scalac and not so much sbt.<p>Perhaps Scala adoption would be higher today. Assuming no competitors (Kotlin) had gained momentum.
评论 #27513633 未加载
MrBuddyCasinoalmost 4 years ago
A developer that is concerned (and rightfully so) with the Principle Of Least Power choosing Scala as his weapon of choice, in 2014, meaning before they partially saw the errors of their ways in Scala 3: a theoretical possibility, sure, but not one I have ever seen in the wild.
评论 #27508622 未加载
0x008almost 4 years ago
For me at least it sounds like another reiteration of KISS
评论 #27512429 未加载