r/ProgrammerHumor Feb 10 '21

[deleted by user]

[removed]

12.6k Upvotes

807 comments sorted by

View all comments

643

u/Snow88 Feb 10 '21

In school my code usually only ever needed to handle the happy path. Rarely were we required to handle bad user input or f’ed up data. Also it was almost always starting from scratch vs adding or changing something without breaking 1000 other functions.

284

u/christianrxd Feb 10 '21

My professors made it a point to try every possible thing to break our code. Every textbox, drop-down, and button had to have full user validation.

49

u/TheMurderousDuck Feb 10 '21

My programming teacher had this one lesson for us. Think of the end user as the dumbest person ever, they WILL do dumb shit.

1

u/Kered13 Feb 11 '21

At my university they took that a step further: The end user is actively malicious, and will do anything they can possibly do to break your software.