Writings about one coder's stories & experiences.
This has happened to me enough times before for me to be embarrassed by it, and for that reason I'm writing this blog post about it. If you have an if statement that is always returning true (it feels something like, "GAAAHH, why does my if statement always return true!) then this could be your problem (and solution!). I noticed this mistake again today working in Actionscript 3 while fixing a bug in Head Exploder. Here's a simplified version of the as3 code:
Inspired by Effective Unit Testing: A Java Developer's Guide, I wrote this post about unit testing and my previous programming experiences without it. Instead of double posting it, I'll just leave the link to the original post here.
Original Linkedin Post: https://www.linkedin.com/pulse/poking-fun-poke-run-alternative-unit-testing-jim-lynch?trk=prof-post
I'm getting back into video tutorials! This one covers the classic Fizzbuzz coding kata. Here I do it with a TDD (Test Driven Development) approach, starting with the unit tests and following the red-green-refactor cycle. Enjoy!
The posts on this site are written and maintained by Jim Lynch. About Jim...