I just wrote a 600 line function and I feel so good about it. It’s clean, clear, structural. The logic falls through. It’s just so goddamn nice! It’s never about how short your code is. It’s always about how clear it is.

Reply to this note

Please Login to reply.

Discussion

Writing tests for such a method could be painful. It may also be challenging for other developers to contribute to this code. 🤣

Never do this. Ever. 😂

But how else will my manager know I've been really productive today?

Send lots of e-mails to "respond to all".

That explains why my inbox is always getting lit up by everyone else.

This post is going to send me into an apoplectic fit.

TRIGGER WARNING

short code can be as bad as long code but code that doesn't stick to one purpose and gets longer than you can read in one screenful is prone to bugs and hard to maintain, and usually is wrong in many ways, something that you will discover as you refactor it into its logical parts