How to Write Clean, Testable Code

Поделиться
HTML-код
  • Опубликовано: 4 авг 2024
  • Google Tech Talks
    December 15, 2010
    Presented by Miško Hevery.
    ABSTRACT
    The Clean Code Talks are designed to help teams get better at writing clean, well-designed, testable code. Such code is easier to write tests for, more robust, easier to understand and maintain. Having clean code lets you be more productive. It helps you release more often, with more robustness, more confidence, and fewer rollbacks.

    Miško Hevery works as an Engineer at Google where he is responsible for coaching Googlers to maintain the high level of automated testing culture. This allows Google to do frequent releases of its web applications with consistent high quality. Previously he worked at Adobe, Sun Microsystems, Intel, and Xerox (to name a few), where he became an expert in building web applications in web related technologies such as Java, JavaScript, Flex and ActionScript. He is well published and very involved in Open Source community and an author of several open source projects, most recently angular.
    This Tech Talk was presented at one of the Google NYC Tech Talk series. For more information, or to attend future events at the Google NYC Engineering Office, see www.meetup.com/google-nyc-tech...
  • НаукаНаука

Комментарии • 35

  • @nelsoncorreia1112
    @nelsoncorreia1112 10 лет назад +5

    Good talk on writing testable code. Shame the Q&A section is inaudible. :-(

  • @manricorazzi
    @manricorazzi 13 лет назад

    Great talk. Misko is the man. Got here via a Kent Beck's tweet, btw.

  • @MartinOfSomeName
    @MartinOfSomeName 13 лет назад

    Look like my wishes has been granted and GTT is in HD now :). Thank you,

  • @amiramhalperin
    @amiramhalperin 11 лет назад +2

    Very good talk. Well explained and demonstrated.
    10x

  • @danielrusev1251
    @danielrusev1251 10 лет назад +15

    It would've been better if we'd been able to hear the questions the audience asked. He could've repeated the question before answering it for our benefit.

    • @ziobleed
      @ziobleed 8 лет назад

      +Даниел Русев Yeah, that would be a good habit, rarely used , tough

  • @ssj4500
    @ssj4500 2 года назад

    Holy Crap this is straight 🔥 My code dead ass is unstoppable 💪🧑🏽‍💻🧑🏽‍💻🧑🏽‍💻🧑🏽‍💻🧑🏽‍💻 THANK YOU FOR THIS 😍😍

  • @MrNicholasRutherford
    @MrNicholasRutherford 12 лет назад +1

    Thank you, this made a lot of vague ideas concrete for me. Good example code, great discussion.

  • @LukeBockman
    @LukeBockman 11 лет назад

    great talk

  • @sharperguy
    @sharperguy 13 лет назад +2

    Am I right in thinking that the reason 'new' operators are bad is because you can't change the type of the object from outside?

  • @thr3ddy
    @thr3ddy 11 лет назад +2

    Please repeat the questions!

  • @RogerKeulen
    @RogerKeulen 11 лет назад

    Thanx, just removed the NEW from my convert function.
    Public Shared Widening Operator CType(m As Meter) As Millimeter
    Return Convert(New Millimeter(UnitValue), m)
    End Operator

  • @corbin923
    @corbin923 13 лет назад

    @sharperguy (Disclaimer: I'm no OO guru and could be completely wrong ;p.) New is bad inside of constructors because that hard codes dependencies and is usually a sign that the constructor is doing too much. For example, if you have a User class with something like "new DatabaseConnection();" that's obviously bad as instantiating a database connection is not the business of a User object.

  • @crystalclear506
    @crystalclear506 13 лет назад

    @devent82 Now, Yes in Lion

  • @Mathview
    @Mathview 13 лет назад

    Go into Google and explain how to properly write code? Cool! For my next act, head in the Lion's mouth. lol ... anyways. .... Great talk even for the non-professional programmer. Now my question.... General engineering project management identifies the concept of "a metric" if you view the code as a project how do you relate the concepts of metric and specs? or are they unrelated?

  • @supericy2
    @supericy2 11 лет назад +2

    shwag

  • @click007
    @click007 13 лет назад

    After one hour, they give the mic to the audience so the questions can be understood.... They need to improver their presentation better practices if they plan to upload them to youtube!!

  • @cgpilk
    @cgpilk 13 лет назад +1

    WTF is frosting? Oh, right, *icing*.

  • @kosterix123
    @kosterix123 10 лет назад

    subtitles are a bit off.
    BDB actually is BDD, business driven development.

    • @thewhitefalcon8539
      @thewhitefalcon8539 9 лет назад +6

      I thought it was behaviour driven development?

    • @kosterix123
      @kosterix123 9 лет назад

      en.wikipedia.org/wiki/Business-driven_development
      nl.wikipedia.org/wiki/Behaviour_Driven_Development

    • @jonnyhotchkiss2667
      @jonnyhotchkiss2667 9 лет назад

      Kosteri x hi what about what he's talking about around 43mins, a single threaded test ... app/framework (not sure)
      sounds like 'no-jays'?

    • @BangsarRia
      @BangsarRia 2 года назад

      @@jonnyhotchkiss2667 NodeJs. Also note that Misko is one of the developers of AngularJs

  • @hoang-himself
    @hoang-himself Год назад

    It's crazy how much have changed after 12 years

  • @alexkhimach
    @alexkhimach 11 лет назад

    great talk, but to silent voice and title isnt sinc.

  • @schnasndasn1504
    @schnasndasn1504 3 года назад

    The URL with the code is invalid. :(

    • @BangsarRia
      @BangsarRia 11 месяцев назад

      That's an oh not a zero. 92Ozrz

  • @someman7
    @someman7 11 лет назад

    I have no idea what's been said here either.

  • @doug65536
    @doug65536 11 лет назад +1

    If you are going to tell us it is okay to say "I don't know" three times in the presentation, maybe you should take your own advice and admit that *you* don't know when people ask questions that you can't answer.

  • @BangsarRia
    @BangsarRia 11 месяцев назад

    On the contrary, it is shameful to say that you DO know Javascript