News for hackers. Stuff that matters.
Re:Fangle: create interactive documents from plain text by djsumdog on Saturday August 05, 2017 @03:35PM (#14937466)
Your coffeescript looks a lot like my early Scala code. I basically wrote Java style procedural code using Scala. Over the years I've learned more about functional programming, immutability, mapping collections, etc. I've slowly refactored one of my big projects (removing return statements, using Options instead of null checks, replacing vars with vals, etc.)

Looking at your code, my brain is already reordering some of it :-P It looks clean though. I've noticed a lot of devs like to trash on coffeescript in favour of ES6 or TypeScript, but I've really grown to love the language. It's also neat to look at the compiled output and see what it does to make many of the functional elements work. Most of it makes sense.

There are no comments on this comment yet.