Defensive Programming and the Fail-First Approach

Yamo Gebrewold
3 min readNov 7, 2020

Anyone who has written software knows that code is error-prone by nature. There are so many things that can go wrong — users inputting invalid values, code which is executed based on wrong assumptions causing the software to fail, and the list goes on.

A really bad mindset in programming is to assume that things will always “work out”, that objects and data will be present and…

--

--

Yamo Gebrewold

A software engineer with a passion to learn and teach.