Tuesday, January 20, 2015

TDD Is About Design, Not Testing

"Writing tests after writing code is a corruption of TDD"
"The act of writing a unit test is more an act of design than of verification."
http://www.drdobbs.com/tdd-is-about-design-not-testing/229218691

TDD is a way to design software? or a way to verify/refine design? or both?

Thursday, January 15, 2015

How to solve problem: Installed Windows service by installutil not showing up in MMC services windows

Although installutil tells you everything is fine, the new service will not show up in MMC services windows.
Solution: use sc
sc create servicename binPath= servicebin.exe

Wednesday, January 14, 2015

Readonly vs const in C#

A const field can only be initialized at the declaration of the field.
A readonly field can be initialized either at the declaration or in a constructor

http://msdn.microsoft.com/en-us/library/vstudio/acdd6hb7(v=vs.100).aspx

Tuesday, January 13, 2015

What is "Architectural Spike"?


An architectural spike is a thin slice of the entire application built for the purpose of determining and testing a potential architecture.

Definition from:
https://groups.yahoo.com/neo/groups/extremeprogramming/conversations/topics/18232

Friday, January 9, 2015

The most difficult part of TDD: You have to write tests first before coding/design/implementation


"Have to actually think what you expect from a piece of code BEFORE you write it! Madness! Instead of just writing code, you have to think before you code! And if you can't formulate properly an expectation, HOW do you write the code in the first place?!"

http://www.sapiensworks.com/blog/post/2013/07/17/-TDD-Is-Not-Slow.aspx