> ## Content Index
> Fetch the complete content index at: https://nolongerset.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Archive Collection: Defensive Programming
- URL: https://nolongerset.com/archive-defensive-programming/
- Published: 2023-01-25T23:00:00.000Z
- Updated: 2026-05-08T12:52:06.000Z
- Description: I'm on vacation! I'll be back soon, but until then enjoy today's curated collection of articles from the archive. Today's topic: Defensive Programming.
- Author: Mike Wolfe
- Tags: Archive, #Import 2026-05-20 02:59

*I've been writing a daily article here since September 1, 2020; that's over 800 articles. I haven't missed a day yet, and that includes [Christmas and Easter](https://nolongerset.com/tag/holiday/). Well, I'm taking my first family vacation since I started writing this blog. Our only other family vacation (which predates the blog) was a National Lampoon's-style disaster. I hope this one is going better.*

*I'm writing this in the *present* tense, but I'm writing it for *future* publication with links to *past* articles. Let's hope the time-space continuum holds up.*

*In any case, as the slacker Firstie says to the Stony Lonesome Gate guard twenty minutes before Taps, let me get to the Point. I've got a daily publishing streak to keep up. But I don't want to be writing and publishing articles on vacation. And I still want to provide you with something of value to read each day. So I settled on creating a series of curated article lists that I think you'll find beneficial.*

*I'm hoping at least some of these articles are ones you haven't read before. And if you're so obsessed with me that you *have* read all my articles, I'm hoping that they'll keep you busy enough that you don't come looking for me and my family 😳.* 

*Enjoy!*

---

## Defensive Programming

[Defensive ProgrammingDon’t build digital Maginot Lines. Program your defenses in depth.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2020/10/Maginot_line_1_downsized.jpg)](https://nolongerset.com/defensive-programming/)

[A Safe Way to Add Temporary CodeA quick tip to ensure your temporary code disappears when the sun sets.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/02/sunset-3864752_1920.jpg)](https://nolongerset.com/a-safe-way-to-add-temporary-code/)

[The RecordsAffected Property is a Powerful Tool for Defensive ProgrammingAs developers, we need to constantly be thinking about how to handle unknown unknowns. The RecordsAffected property helps us do that.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2021/08/RecordsAffected.jpg)](https://nolongerset.com/recordsaffected-defensive-programming/)

[5 Ways to Reduce Logic Errors Using Automated Double-ChecksIdentify the critical functions in your application. Then, apply one or more of these techniques to ensure that if they break, someone will notice.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2021/10/forest-climbing-park-931256_1920.jpg)](https://nolongerset.com/4-ways-to-reduce-logic-errors-using-automated-double-checks/)

[5 Tips for Making Changes on Live SQL Server DatabasesMaking database changes on production? These 5 tips will make one of the most dangerous programming activities a little bit safer.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2023/01/Live-Database-Changes--1-.jpeg)](https://nolongerset.com/live-database-changes/)

[The “Unset” Enum ItemThis simple technique is a foolproof way to avoid the sort of logic bug that can live undetected in your codebase for years.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2021/07/canary-4248324_1920.jpg)](https://nolongerset.com/unset-enum-item/)

[Distributing One-Time Data “Hot Fixes”Rolling out changes to \*production data\* when you don’t have direct access to that data can be tricky. This tip makes the process easier.![](https://nolongerset.com/favicon.png)No Longer SetMike Wolfe![](https://storage.ghost.io/c/eb/d7/ebd732c1-5f03-4f07-b386-5d08557e15c9/content/images/2022/07/service-1303313_1920.jpg)](https://nolongerset.com/distributing-one-time-data-hot-fixes/)

For more articles on defensive programming, check out my [Defensive Programming tag page](https://nolongerset.com/tag/defensive-programming/).