Tip #3 - Write Pessimistic Code
Recently I used a service that allowed using emails like hello+world@nordschool.com. After I signed up, their backend systems completely broke because of the "+" sign. It took their team a good week to figure out what happened. 🙄
I am guessing somebody somewhere forgot about for this "edge" case!
----------
Can't read value of undefined - Oh, but I thought this should never happen, this variable is always defined! 😲
Sounds familiar to you? 😅
As a programmer, you hold different assumptions when you are working. When having assumptions, being pessimistic pays off! 🧐
Validate your data, remove different components, try to break things yourself...
This way you are more confident that your work is more robust and resilient in the real world. 💪🏼
|