News for hackers. Stuff that matters.
Re:Scala – 1 Star – Would Not Program Again by k__ on Monday December 02, 2013 @04:00AM (#6832590)
When I read about Scala the first time I felt it was awesome! I bought some books and tried to get into it.

But when I read production code it was aweful because of all the DSLs.

Scala does much to reduce code to whats necessary, like python, but there is so much more that it does, which confuses the code readability later :\

The DSLs also lead to bad API design.

The devs are always like "uhuuu if you don't like the DSL just use the normal functions" and write the horrible DSL stuff without the DSL.

(asd ~! fdd %%% sdasd) gets to asd.doSomethingRatherComplicated( with( fdd ) ).alsoGetSomeStrange( sdasd.compile() )

It looks like they are using the ability to build "easy" DSLs as excuse for bad API-design.

Re:Scala – 1 Star – Would Not Program Again by mcv on Tuesday December 03, 2013 @10:46AM (#6840917)
When I finally picked up a book on Scala, I rejoiced when I read the chapter on parallelization with Actors and especially how they passed case classes around and automatically extracted data from them in their built-in switch statements. That stuff was fantastic!, concise, expressive and beautiful! Hallelujah!

The next chapter delved deeper into the typing system, and I recoiled in horror.

I still want to do Scala some day just to use their actor messaging, but there really is a very strict limit to how far a sane person can look into Scala. At some point, the Abyss looks into you, and if you're not careful, you'll also start building crazy DSLs with incomprehensible operators based on Type Declarations Man Was Not Meant To Know, just to maintain rigid type safety in some situation nobody really cares about.

Re:Scala – 1 Star – Would Not Program Again by vithlani on Tuesday December 03, 2013 @07:25PM (#6844211)
Exactly my reaction.