top | item 47058071

(no title)

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.

discuss

order

so-cal-schemer|11 days ago

Good point. They should treat stand-alone braces and parens as empty lines and rerun the analysis. I'd like to see the results.

But still.. are 41.6% the lines of C# code stand-alone braces?

mrsmrtss|11 days ago

Probably not, but it’d be closer to Clojure. Depending on codebase you’ll likely have also many repeating namespace imports (can be avoided whith implicit usings in modern C#) etc.