Sunday, 8 June 2014

Debug It!

Good week at work fixed a few things and getting to grips with nunit and a moment of madness thought this was actually included within visual studio. 

Minor fix that helped a bit is that ajax modal pop up extender, when using fire fox and post backs the pop up might not always be hidden properly, easy fix. Set the on cancel script to a javascript function on that page setting the container div style to display none. 

Books read, Debug It! Some good tips, about using asserts outside of unit testing which can be handy for producing fragile code within the development environment and robust on production. This works well for internal classes where the input has already been sanitized. Errors should not happen but placing an assert to check for null makes the code fragile and points to the errors much sooner. 

Debug It! Book by Paul Butcher, cover is white with fly swatter and what looks like a cockroach on its back
 
The book has certainly changed the way I code, with much more emphasis on diagnosis and dealing with root causes.

Fun thing purchased, ultra sonic detector £13 from Amazon, got a few cheeps from the pet rats, lots of rustling sounds from metal, and buzzing from compact florescent bulbs. Haven't seen any bats yet apart from the cat bought in a dead pipistrelle so they are about some where. 

No comments:

Post a Comment