tl;dr 06. Null Object Pattern 🎬 Is your code overly defensive? 🤨 A functional take on the Null Object Pattern can restore a culture of trust and eliminate flow control bugs! October 30, 2019 • 7 min read
tl;dr 05. Exception Composition 🎬 How do you safely handle runtime errors without a mess of try…catch and if…else? 😷 Why, function composition of course! October 23, 2019 • 5 min read
tl;dr 04. Custom Exceptions 🎬 Spooked out by errors and stack traces? 😱 With solid error handling patterns, Custom Exceptions can help us eliminate if…else statements! October 16, 2019 • 5 min read
tl;dr 03. Enforcer Pattern 🎬 Find yourself copy-pasting small if-else statements across several functions? 💂♂️ With higher-order functions and the enforcer pattern, you can compose guard behaviors! October 9, 2019 • 7 min read
tl;dr 02. Router Pattern 🎬 How do you tame if-else or switch statements that grow with every feature request? 😬 Let the Router design pattern turn your code inside out! September 18, 2019 • 6 min read
tl;dr 01. Nested Ternaries 🎬 How many times does “else if” appear in your codebase? 😬 Here’s one way you can cut down on if-else statements: nested ternary expressions! September 11, 2019 • 5 min read