Flutterby™! : Assert Yourself

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

Assert Yourself

2018-11-09 16:59:21.566793+01 by Dan Lyke 2 comments

Assert yourself - some notes on programming defensively and hiding bugs. Some good stuff to think about, especially as we're moving into a world of high failure probablistic systems (eg: distributed and networked)

[ related topics: Software Engineering ]

comments in ascending chronological order (reverse):

#Comment Re: Assert Yourself made: 2018-11-10 01:13:08.217141+01 by: TheSHAD0W

Programming offensively would be even better... Rather than:

if (info == None)

return

instead, do:

assert info != None

This will rapidly tell you where your code went wrong.

#Comment Re: Assert Yourself made: 2018-11-11 03:19:53.152296+01 by: TheSHAD0W

... And I didn't even realize I'd literally done what the title of the article instructed...