Entries Tagged as 'Uncategorized'

To Assert or Not To Assert

February 9th, 2009 · 31 Comments

by Miško Hevery Some of the strongest objections I get from people is on my stance on what I call “defensive programming”. You know all those asserts you sprinkle your code with. I have a special hate relationship against null checking. But let me explain. At first, people wrote code, and spend a lot of time debugging. Than someone came up [...]

Tags: Uncategorized

How to run FlexUnit in a continuous build

February 1st, 2009 · 5 Comments

So you have a flash or Flex code with lots of unit-tests. That is great, but how do you get them running in a continuous build? Sure you can run the tests manually, but this only gives you a visual green or red bar, what you really want is a X-Unit XML file so that [...]

Tags: Uncategorized

Testability – re-discovering what we learned and forgot about software development

January 13th, 2009 · 8 Comments

[Reposted from: http://www.geekinasuit.com/2008/12/testability-re-discovering-what-we.html] by Christian Gruber (or, why agile approaches require good old-fashioned O-O) What are we all talking about? (the intro) Testability comes out of an attempt to understand how agile processes and practices change how we write software. Misko Hevery has written some rather wonderful stuff on his blog, and starts to get into issues [...]

Tags: Uncategorized

Happy New Year – 2009

January 4th, 2009 · 2 Comments

Just wanted to send a happy new year message to all of my readers who have made my blog such a success. In your personal life, I wish you a lot of time spent with your family and friends (away from the debugger). In your professional life  I wish you a lot of bug free, Singleton free  code and [...]

Tags: Uncategorized

Clean Code Talks – Inheritance, Polymorphism, & Testing

December 8th, 2008 · 22 Comments

by Miško Hevery Google Tech Talks November 20, 2008 ABSTRACT Is your code full of if statements? Switch statements? Do you have the same switch statement in various places? When you make changes do you find yourself making the same change to the same if/switch in several places? Did you ever forget one? This talk [...]

Tags: Uncategorized

Guide to Writing Testable Code

November 24th, 2008 · 9 Comments

It is with great pleasure that I have been able to finally open-source the Guide to Writing Testable Code. I am including the first page here for you, but do come and check it out in detail. To keep our code at Google in the best possible shape we provided our software engineers with these [...]

Tags: Uncategorized

Clean Code Talks – Global State and Singletons

November 21st, 2008 · 10 Comments

by Miško Hevery Google Tech Talks November 13, 2008 ABSTRACT Clean Code Talk Series Topic: Global State and Singletons Speaker: Miško Hevery Video Slides

Tags: Uncategorized

Clean Code Talks – Dependency Injection

November 11th, 2008 · 8 Comments

by Miško Hevery Google Tech Talks November 6, 2008 ABSTRACT Clean Code Talk Series Topic: Don’t Look For Things! Speaker: Miško Hevery Video Slides

Tags: Uncategorized

Clean Code Talks – Unit Testing

November 4th, 2008 · 8 Comments

by Miško Hevery Google Tech Talks October, 30 2008 ABSTRACT Clean Code Talks – Unit Testing Speaker: Misko Hevery Video Slides

Tags: Uncategorized

Pass Around Ginormous Context Objects

October 27th, 2008 · 11 Comments

This question was submitted by one of the readers, and it shows a common questions people ask when they are coming up to speed when trying to write testable code…. About “Pass[ing] around ginormous context objects” (http://misko.hevery.com/2008/07/24/how-to-write-3v1l-untestable-code/) – this situation comes up for me when [I] trying to get configuration settings into my application. I [...]

Tags: Uncategorized