DEV Community

Discussion on: Good Developer vs. Bad Developer

Collapse
quasipickle profile image
Dylan Anderson • Edited

I'm not sure writing the minimum amount of code possible is a hallmark of a good programmer. Maybe I'm a bad programmer, but I think clarity beats cleverness. I'd rather have 3 or 4 lines I can clearly understand than a nested one-liner.

Collapse
xordux profile image
Rohit Rawat • Edited

That's correct and you are a great dev if you prefer clarity.
I think author wants to point out something else. I am saying this because it happens with me sometimes. I write some function(50-100 lines) using my "awesome coding skills" only to realize(in code review) that there was some other function already doing very similar task and I could've just refactored and reused it.