top | item 46920441

Boilerplate Tax – Ranking popular programming languages by density

14 points| nnx | 23 days ago |boyter.org

13 comments

order

so-cal-schemer|12 days ago

"Clojure and indeed all lisp style languages are the final boss of density here though. Almost every line is an expression of business logic. I never really got into it myself, but looking at these results are starting to make me rethink that decision.

If you compare Clojure (77.91%) to C# (58.4%), it seems the average C# developer writes 20% more redundant code every single day just to satisfy the compiler. Even with tools like resharper and LLM’s to help thats not a insignificant amount of effort."

mrsmrtss|12 days ago

C'mon, this is a bs "research".

Fore example, is this Java (65.72% dryness)

    if (condition){
      Blah();
    }
really more dense than this C# (58.4% dryness)?

    if (condition)
    {
      Blah();
    }
Now, does this Clojure 77.91 dryness) really beats them both to that margin?

   (if (condition) 
      (blah)))
This metric measures formatting more than anything else. I don't even go to other more nuanced details.