October 2019 Webinar

Test Driven Development

October 23 11:00am MT

I Tried Unit Testing But Testing My Existing Code Is Too Hard!

That’s because you have got the order wrong! Writing unit tests after the fact is possible, but it is always hard. Why? Because whoever wrote it never thought about testing it and therefore did not design it in a way that made it easy to test.

When you write the tests first you can be sure your code is testable. You are forced to design it to be testable. An added benefit is that you will write better code. Why? Because the same properties that make code testable, make for better code in general: less coupling and more cohesion.

If you have legacy code that you need to add unit tests to, unfortunately the answer is often to change your design. You may have to add things like humble objects and dependency injection. There may be no way around it. If you need help with those, I have a whole series of blog posts about them. https://www.sasworkshops.com/sw-engineering/unit-tes…

“If you don’t like the results you are getting, then change what you are doing.”

Going forward, do things differently. Write the tests first. It will change the way you design your software. You’ll thank me for it later.

If you want to learn more about TDD or need some inspiration, then this webinar is for you. I’ll explain a little bit about TDD and then walk you through a real life example so you can see it in action.

This Webinar Is For

  • Developers who are tired of trying to retrofit unit tests into existing code, or those who just simply want to write better software.
  • Architects who want the assurance of having unit tests in place, so they can plan major refactorings without worrying about breaking existing functionality.
  • Project Managers who are looking for a way to ensure higher quality software with fewer defects.

What you will learn

  • The basic idea behind TDD
  • The basic process of TDD
  • A real world example
  • Lessons learned

There are limited seats so please RSVP and reserve your seat today!

3 Comments on “October 2019 Webinar

  1. Interesting article, with good advice.

    If you can, please make the text colour darker, reading light grey over a white-ish background is terribly tiring.

    • Antoine,
      I’m glad you like the post. I changed the text to black. Is that better? or should I try some other color combination?
      Sam

      • That’s a quick response!
        My eyes thanks you a lot.
        Actually I have a preference for dark mode, I find it less stressful for the eyes to have a dark-isk background with white-ish text.
        I don’t know if wordpress has options for the user to chose between ‘normal’ and ‘dark-mode’ 😮
        But don’t waste anymore time just for me, it’s already much better!

Leave a Reply

Your email address will not be published. Required fields are marked *

*