YouTube home Comedy Week on YouTube
Upload

The Clean Code Talks - "Global State and Singletons"

GoogleTechTalks GoogleTechTalks·1,782 videos
147,476
57,180
Like     Dislike 15

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to like GoogleTechTalks's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to dislike GoogleTechTalks's video.

Sign in to YouTube

Sign in with your Google Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to add GoogleTechTalks's video to your playlist.

Uploaded on Nov 18, 2008

Google Tech Talks
November 13, 2008

ABSTRACT

The Clean Code Talk Series

Speaker: Misko Hevery

Loading icon Loading...

Loading icon Loading...

Loading icon Loading...

The interactive transcript could not be loaded.

Loading icon Loading...

Loading icon Loading...

Ratings have been disabled for this video.
Rating is available when the video has been rented.
This feature is not available right now. Please try again later.

Top Comments

  • deathbyaclown

    i learned - next time I test a credit card system - I will use charge(1) :)

    · 30

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate deathbyaclown's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate deathbyaclown's comment.
  • spleenblender

    God I learned this the hard way at my internship. It DOES drive you crazy...

    · 17

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate spleenblender's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate spleenblender's comment.

All Comments (64)

Sign in now to post a comment!
  • yurikolovsky

    Global state is unavoidable when you work with any information, we should not disregard it, but instead we need to learn how to work with it.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate yurikolovsky's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate yurikolovsky's comment.
  • coolzidedown

    is there a tl;dr of this? i dont feel like watching the entire hour. i might anyway tho

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate coolzidedown's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate coolzidedown's comment.
    in playlist Clean Code Talks
  • joelie83

    I'm not fond of this audience.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate joelie83's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate joelie83's comment.
  • Ionel Lescai

    why the hell we're we taught the singleton pattern anyway ?

    · 4

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Ionel Lescai's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Ionel Lescai's comment.
  • blah98982

    The guy at the beginning trying to catch the speaker out on a completely arbitrary and irrelevant method name is painful to watch.

    · 3

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate blah98982's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate blah98982's comment.
  • mexetr

    The Turing Complete one.

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate mexetr's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate mexetr's comment.
    in reply to drummist180 (Show the comment)
  • PutBoy

    public static destroy(){  instance = null;

    }

    done, you can now test it

    ·

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate PutBoy's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate PutBoy's comment.
  • Nezmundo00

    I couldn't find a part where he says that in this video. He has said something like that elsewhere. But he was talking about unit testing procedural code and I think he's right. You cannot unit test procedural code unless the method under test is at the edge of the call graph. Otherwise the method is calling another method and you are expanding your test into a mid or large scale test. You no longer have a unit test.

    · 2

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Nezmundo00's comment.

    Sign in to YouTube

    Sign in with your YouTube Account (YouTube, Google+, Gmail, Orkut, Picasa, or Chrome) to rate Nezmundo00's comment.
    in reply to jmgunn87 (Show the comment)
  • Loading comment...
Loading...
Loading...
Working...
Sign in to add this to Watch Later