Strategic Scala Style: Principle of Least Power (2016)
1–10 of 20 posts
Re: Strategic Scala Style: Principle of Least Power (2016)
#2A lot of the worst tendencies that developers complain about in complex programming languages (i.e. all of them, they're all complex) could be addressed by this advice.
Re: Strategic Scala Style: Principle of Least Power (2016)
#3Re: Strategic Scala Style: Principle of Least Power (2016)
#4A 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.
For example, it assumes that refactoring is easy, making it easy to switch your initially simple solution to something more complex if / when the need arises. That is true in Scala thanks to a rich and safe type system, but in other languages it may not be as easy, and it's certainly not easy to replace a python app with a Scala app.
Re: Strategic Scala Style: Principle of Least Power (2016)
#5Strategic Scala Style: Principle of Least Power - https://news.ycombinator.com/item?id=11467339 - April 2016 (64 comments)
Strategic Scala Style: Principle of Least Power - https://news.ycombinator.com/item?id=11265424 - March 2016 (4 comments)
Re: Strategic Scala Style: Principle of Least Power (2016)
#6https://github.com/linpengcheng/PurefunctionPipelineDataflow...
Re: Strategic Scala Style: Principle of Least Power (2016)
#7Re: Strategic Scala Style: Principle of Least Power (2016)
#8Re: Strategic Scala Style: Principle of Least Power (2016)
#9Re: Strategic Scala Style: Principle of Least Power (2016)
#10I worked in Scala for years, and it is no small irony that this article is based in that language.
Unfortunately, at the same time it also takes away the power in situations where it should be used and where the benefits of abstraction overweigh the drawbacks. This then leads to repetitive and bloated code, runtime errors and all the problems that come from it.
Pick your poison...