Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Design Tech Talk Series Presents: OO Design for Testability

Loading...

Sign in or sign up now!
24,221
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 7, 2009

Google Tech Talk
October 6, 2009

ABSTRACT

Presented by Miško Hevery.

We design our code for performance, maintenance, simplicity, extensibility and other goals, but most of us do not think about testability as a design goal, yet verifying the correctness of our code is of great importance. What does it mean to have testable code, and what kind of trade offs does one have to think about when designing for testability. Turns out that testable code is well designed code, and it has many of the characteristics we search for such as low cohesion, separation of concerns, proper encapsulation and many others.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • Misko thank you very much for doing these talks. Your clean code talks has helped my work tremendously.

  • Great talk!

see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • I've searched for the other 3 talks (since this is the fourh) but I couldn't find them. Can someone please give me the link?

  • I meant LoginPage, sorry.

  • @edovale

    Well I think he refered to the latter case as "the class with singleton lifetime" and not a singleton (I noticed this ambiguity only when he talked about the Login_class). And he did not say it was problematic to test because it had singleton lifetime, he said it was problematic owing to it's dependencies, and therefore that particular class might have been better as short-lived class with different dependencies, that wouldn't force it to break the law of Demeter.Am I getting it right?

  • Very nice talk. A bit ambiguous with the term singleton. There is the singleton pattern as described in the Gof4 book which is the one that is problematic to test and there is the single instance of a class throughout the life of the application. There is nothing wrong with the latter IMO.

  • Misko Hevery for president!

  • Thanks for the great presentation. 

  • Awesome presentation!

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more