News for hackers. Stuff that matters.
Re:Monocle: Optics Library for Scala by ldjkfkdsjnv on Monday November 25, 2024 @03:37PM (#42239930)
Every scala code base I have worked on, that wasnt written by small team of experts, turned into a huge pile of crap. A small squad of people that treat the language like a religion create an impenetrable masterpiece
Re:Monocle: Optics Library for Scala by Sunscratch on Monday November 25, 2024 @04:41PM (#42240456)
Every <insert any language here> code base I have worked on, that wasnt written by small team of experts, turned into a huge pile of crap…
Re:Monocle: Optics Library for Scala by ldjkfkdsjnv on Monday November 25, 2024 @05:00PM (#42240600)
:-)
Re:Monocle: Optics Library for Scala by wtfparanoid on Monday November 25, 2024 @05:07PM (#42240652)
well aligned scala teams are a great thing, impenetrable code is not - maybe a poor choice of adjective?
Re:Monocle: Optics Library for Scala by threeseed on Monday November 25, 2024 @05:16PM (#42240712)
A lot of work has been done in Scala 3 to simplify everything.

And with the arrival of virtual threads in the JVM there are new concurrency libraries e.g. Ox [1] and Gears [2] which remove the need to use FP concepts like monads. Which have been the major source of much of the complexity.

For all its problems it is a seriously under-rated platform especially Scala.js which IMHO is far better and simpler than Typescript.

[1] https://github.com/softwaremill/ox

[2] https://github.com/lampepfl/gears

Re:Monocle: Optics Library for Scala by wiml on Tuesday November 26, 2024 @02:47AM (#42243428)
You're going to have that problem with any codebase written by people who don't particularly know the language. Typescript written by PHP programmers, Python written by Java programmers, you'll quickly get a huge impenetrable pile of crap.

You can optimize your codebase to be modified by an ever rotating group of people who don't fully understand it, or by a smaller group of people who do. Both are legitimate choices in specific contexts. But if you take a codebase written one way and try to maintain it the other way, your productivity will tank.

Re:Monocle: Optics Library for Scala by agent281 on Tuesday November 26, 2024 @11:03AM (#42246866)
I feel the same about Javascript codebases. As I like to say, hell is other people's Javascript.