Hacker News new | ask | show | jobs
by tincholio 1229 days ago
At my previous job, we re-did some Java stream processing stuff in Clojure. We added functionality, made it more stable and dropped 6K lines of code (out of 18K for that particular component) in the process. It felt like magic...
1 comments

That's not a fair comparison, rewriting anything in any lisp will dramatically reduce the amount of cruft, both lines of code and complexity.
It is still a LOC reduction produced via rewrite. I don't think we should hold it against them that they choose a great target language for the rewrite...
Doubt. Plus, essential complexity is non-reducible.
Essential complexity I agree, you cannot get rid of (hence the whole "essential" part). However, when you program, lots of non-essential complexity sneaks in. If you've only ever written code in one language, I bet you wouldn't even be able to notice what is essential vs non-essential.
A lot of those dropped lines of code is gonna be lines which only contain }.
replaced by lines of )))))