Unconditional Code
summary
Argues that most conditional clutter vanishes if the domain is extended or errors become first-class rather than scattered checks. Shows concrete patterns and code: prepend a zero to the array to remove edge logic when counting runs, a withPerson(callback) tell-style API to eliminate null checks, and an Either/Option pipeline in Ruby to accumulate or short-circuit validation. Distinguishes fail‑fast vs supervised untended systems (Erlang supervisor trees) and cites traffic‑signal removals that reduced accidents.
AI-written summary · about
chapters (14)
- 0:00Start
- 0:39Error Handling
- 5:18Throw Exceptions
- 8:06Private Language
- 10:25Can We Eliminate these Tunnels in Programming
- 10:55Null Object Pattern
- 16:41Extending the Domain
- 19:12Extending the Domain
- 19:45Tablature
- 20:59Possible Errors
- 29:23Exceptions
- 33:44But if We Change It a Little Bit this Way It Makes Our Code Easier To Deal with and It Feels like We Should Feel Couple of Doing that Sort of Thing You Know Going In like Looking at Generalizing or Code in Particular Ways That Allow Us To GonNa Basically Avoid Edge Cases and Make Things a Bit Easier To Deal with so It's Kind Of Funny Anybody Hear of like the Five Why's At All It's Kind Of like You Know Asking You Know if There's a Fault and You'Re Doing like Root Cause Analysis Why Did this Happen and Then Why Didn't You Know that Kind of Thing It's Interesting It's We Can Play the Same Game When We'Re Designing
- 34:46And as I Mentioned Earlier It's like this There's an Interesting Thing Where You Know a Lot of Error Healing Is Basically Related to the Distance between the a Problem and Actually Deciding What the Only Do about It Right When You Follow this Chain You Might Start Think about Alternative Courses of Action That You Might Want To Go and Explore like for Instance You Might Go and Say Well Gee if I Can't Read the Configuration Is It Okay for Me To Actually Create a Default Configuration and Then Notify People and Let Them Know There's like Okay Well We Keep We Brought the System Up Using the Default Configuration because the Other One and It Depends upon the Context in some Context That's Okay and Now There's this Kind of like that To Be a Disaster
- 42:50You Know Things like I Mentioned Earlier about Going Actually Making Them Part of the Domain like Item Not Found Is a Thing That Happens in Your Code It's Not Something I Ought To Go and Create an Exception for Specifically All those Things Are Worth Going and Dealing with and It Also the Only Ask Yourself Can I Have a System Where You Know that Error Is Impossible and Just Asking that Question Sometimes Allows To See One Get to a Place Where Things Can Be Much Better So I Think the Thing I'M Kind Of You Know Trying To Explore with Us Is that You Know Code Can Work under Many Conditions








