News for hackers. Stuff that matters.
Re:Thunderbird 140 "Eclipse" by smokel on Thursday July 10, 2025 @08:48AM (#44520411)
This is something where modern chatbots will probably be very helpful. From the top of my head:

1. Validate input, expect all external input (both human and machine generated) to be completely bogus.

2. Fail fast and early. If something seems off, crash straight away, and do not expect things to magically repair itself at a later stage.

3. Use pre- and post-conditions where appropriate.

I'm not sure about the exact definitions of defensive programming, but static type checking, and possibly unit testing, might also be part of it.

There are no comments on this comment yet.