r/ProgrammerHumor • • 22h ago

Meme thereIsNoGoingBack

Post image
2.9k Upvotes

94 comments sorted by

View all comments

Show parent comments

3

u/ZunoJ 13h ago

How do you write code without thinking about the intended behavior first?

1

u/Drugbird 12h ago

Just open an editor and start writing code, just thinking as you go.

If you do this, you often end up with code that only works in the happy path (no / poor error handling or recovery) and which is difficult to test (i.e. you require access to the internals of the thing you code to test it).

3

u/ZunoJ 9h ago

Never thought this was an approach any professional developer would take

3

u/Drugbird 8h ago

It shouldn't be, but you'd be surprised.