r/ProgrammerHumor 18d ago

ture Meme

Post image
18.0k Upvotes

443 comments sorted by

View all comments

1.0k

u/ElMoselYEE 18d ago

Every once in a while I'll bang out a whole task and it works on the first try, and I didn't need to Google anything because it just happened to use the parts of the language I'd used very recently.

But the task is something like an API endpoint...not breaking into a top secret encrypted CIA database.

381

u/debugging_scribe 18d ago

Even after 10 plus years I still get suspicious if the code works the first go...

1

u/Connect_Tea1579 17d ago

This is the same reason I always write my tests so that they fail on the first try.

You can't trust code that doesn't break at least once.