Hacker News new | ask | show | jobs
by ShamelessC 1387 days ago
> Even if that was true, the above is 7 lines of code. That is 3.5 times as many LOC as my 2 liner. Science shows us that the amount of resources required to maintain code is proportional to the LOC count. Your example is hence 3.5 times more demanding in both initial resources to create it and resources required to maintain it. One of OOP's sales pitches was "that it makes it easier to maintain your code". You just scientifically proved it wrong ...

I think it has to be trolling, right? I haven't seen mention of LOC as a useful metric since the oughts.

2 comments

Anyone who's been in the game long enough will tell you that, outside of tight performance-critical loops, developer experience trumps everything. And you cannot reduce devX down to a single number.
That's why I remove all the newlines from my code before committing.