Monthly Archives: October 2011

The basics on vi editor

Invest half an hour of your life watching these videos. It’s worthy. The vi editor is built-in on any single Unix / Linux operating system distribution I’ve seen in my life.

Through these four basic videos you will learn how to enter vi, switch from the command to the insert mode and viceversa, how to navigate through a file and how to insert and delete text on it.

<a href="http://youtube.com/watch?v=SI8TeVMX8pk&#8221;">http://youtube.com/watch?v=SI8TeVMX8pk&#8221;</a>

<a href="http://youtube.com/watch?v=F3OO7ZIOaJE&#8221;">http://youtube.com/watch?v=F3OO7ZIOaJE&#8221;</a>

<a href="http://youtube.com/watch?v=ZYEccA_nMaI&#8221;">http://youtube.com/watch?v=ZYEccA_nMaI&#8221;</a>

<a href="http://youtube.com/watch?v=1lYD5gwgZIA&#8221;">http://youtube.com/watch?v=1lYD5gwgZIA&#8221;</a>

Thanks to devdaily for this.

 

About testing private methods

I’ve loved the next sentence, read here:

The more tests the more attention they need. We can reduce the time we spend on nurturing by writing test only against public method. Public methods are contract. If we specify some contract we will rather not change it as often as private methods. If you feel that you have to test private method it is a sign of a bad design (it’s called “code smell”). Probably functionality of this method belongs elsewhere.