07 Jun

Presentation on Unit Testing Inertia

I gave a talk on Tuesday at the Las Vegas PHP Meetup Group titled Unit Testing Inertia.

The basis of the talk was getting over the inertia in writing tests in either a pre-existing application or just getting started writing unit tests in general. It went over very well with a good question and answer session afterwards. While I didn’t spend as much time prepping for this talk, I was comfortable enough with the material (and helped there was no code involved) that it was a solid presentation.

The short summary of the talk is for every new method/bug-fix/feature written, write a test for something else at the same time, and start with the stuff that is easier to test.

I’ve been going through a few different pieces of software for writing and displaying my presentations and this is the first time I’ve been really happy with the tool-chain. I used Deckset, which is a Markdown based presentation system with some great looking styles.

Humorous aside, my spelling is atrocious and even though I had to type out “inertia” dozens of times I misspelled it every time and even just now writing this up, I misspelled it every time.

14 Aug

ignore the code – Opinions vs. Data

If there’s one thing we should all take to heart, it’s that humans are strange: They rarely behave the way we expect (or want) them to. Testing often reveals issues we would never have found out by merely thinking about a design. Conversely, something that looks wrong might actually work perfectly well.

via ignore the code – Opinions vs. Data. The fallacy with intuitive guesses is that they are intuitive and not based on real data most of the time. Testing can sometimes reveal things that you wouldn’t have normally guessed.