← Back to context

Comment by _6zew

5 years ago

I've gone through java code where i need to open 15 different files, with one lined pieces of code, just to find out it's a "hello world" class.

I like abstraction as much as the next guy but this is closer to obfuscation than abstraction.

At a previous company, there was a Clean Code OOP zealot. I heard him discussing with another colleague about the need to split up a function because it was too long (it was 10 lines). I said, from the sidelines, "yes, because nothing enhances readability like splitting a 10 line function into 10, 1-line functions". He didn't realize I was being sarcastic and nodded in agreement that it would be much better that way.