News for hackers. Stuff that matters.
Re:Ask HN: Why don't more web projects start with a JVM stack? by ericfrederich on Thursday February 04, 2016 @12:49PM (#11035691)
"I was amazed by the then patterns-obsessed ludicrous verbosity of Java projects. Programming for the sake of writing so much text to accomplish so little."

Tell me you've seen this:

https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...

Re:Ask HN: Why don't more web projects start with a JVM stack? by lewisl9029 on Thursday February 04, 2016 @03:25PM (#11036912)
Thanks for the link. That made my day. =)

Here's a more realistic comparison between classic Java OOP design vs the more data-oriented approach to design encouraged in functional languages like Clojure for a simple board game:

https://www.youtube.com/watch?v=Tb823aqgX_0

TL;DW:

The classic OOP design of the board game ended up with 22 classes, 11 interfaces, 1 enum in total, with 271 lines of pure skeleton code with no implementation of any game logic whatsoever. The class diagram can be seen here for a better sense of the complexity involved: https://youtu.be/Tb823aqgX_0?t=688

The data-oriented design had 31 functions, longest of which is 7 lines, with a grand total of 144 lines of code that implements the entirety of the game logic.