Ttidydeskintidydesk.hashnode.dev·Jul 17, 2021 · 4 min readDefensive Programming 101: Guard ClausesIntroduction A guard clause is a conditional check that runs before your method executes its main processing code. They allow us to follow the guidance of failing fast as we can pre-emptively check conditions that must hold for our methods to comple...00
Ttidydeskintidydesk.hashnode.dev·Jul 12, 2021 · 7 min readDefensive Programming 101: ValidationIntroduction Validation is an essential part of any system that takes external input. It helps us protect our application by ensuring the data it receives is expected and can be processed. A strong validation setup for our application provides the ...00