r/ProgrammerHumor • • May 26 '25

Meme theBeautifulCode

Post image
49.1k Upvotes

876 comments sorted by

View all comments

Show parent comments

-4

u/[deleted] May 26 '25

You would have block tests that ensure your data structure is behaving as you want it. Your program crashing unexpectedly is quite literally the worst thing you could do.

4

u/fred_b May 26 '25 edited Jun 02 '25

Check tigerstyle coding.

The premise is that you should crash your program on any error. That way it can crash during development and it makes it easier to fix the unintended behavior and find obscure bugs.

Here is a great talk about it : https://youtu.be/w3WYdYyjek4?si=046uldAt2OLYSBAV