Stand by...

Tag Archive for ‘ TDD’

New training: Google Test – Introduction to asserts and expects

Today I have published first training from Agile C++ Developer series: Google Test – Introduction to asserts and expects. This is my first approach to this kind of training so every comments will be valuable. This training is for Google Test beginners. Have a nice read.

How to test main()?

When you are doing Test-Driven Development you try to test what ever you wrote. Better you write tests before you write any line of code. But finally when you have your brand new functions and classes (all 100% covered by tests) you have to integrate it in some working software. In the very end (or begining) you have to write main(int, char**) function. How do you test it using Unit Tests?

Picture-driven programming

Today I found something interesting… it is called Sikuli and it is used for picture-driven programming. I know that it sounds silly but it is not! First thing is that guys from MIT are authors of this tool (language or programming style). The second thing is that it allows you (with little knowledge of python [...]

Two ways of changing the system

Changes in a system can be made in two primary ways. I like to call them “Edit and Pray” and “Cover and Modify”. Unfortunately, “Edit and Pray” is pretty much the industry standard. Working Effectively with Legacy Code by Michael C. Feathers

The Clean Code Talks – Unit Testing

After watching Google Tech Talk about CMake I start looking for other interesting Tech Talks. I found “The Clean Code Talks” series! I watch only one of them but after it I know it is a good portion of practical knowledge. Those presentations are really worth watching!

Compile googlemock for Qt SDK 2010.01

After new release of Qt SDK 2010.01 it would be good to have googlemock compiled for it.  So you need to have Cygwin with make, automake, autoconf installed. Run Cygwin console,  add mingw/bin directory to PATH (assuming that you install your Qt SDK into c:\Qt\2010.01 directory) $ export PATH=/cygdrive/c/Qt/2010.01/mingw/bin/:$PATH and in gmock-1.4 directory run configure [...]

Robert C. Martin – Clean Code: A Handbook of Agile Software Craftsmanship

Clean Code is a “must read” for every professional programmer. This is something which gives you proper perspective and gives you goal to which you should aim. It gives answer to question: “When my code is good?”. Lack of answer for this question makes you jump into infinite loop of “improving” your code but without [...]