I am not afraid anymore
Have you ever been afraid of changing some code? Even one that you've developed?
I have. Many times. Why this happened to me? Well, that is because I could not be 100% confident that my changes would not break any other part of the program.
My life changed when I learned the Test Driven Development methodology (aka TDD).
The idea behind TDD is that you must write automated tests before writing your code. This methodology will not only help you design better software by catching bugs at the same time you are coding, but (IMHO) it is also a great way to assure your code will keep working after maintenances.
Managers love to say they want you to deliver fully tested software. They even say that TDD is a wonderful idea. But things change when you need to fix a bug or insert new features into a product that do not have automated tests. At this moment, managers complain that there is no time to let you write a test suite to cover the entire software.
To be totally honest we need to agree that being able to fix problems and / or insert new features into your company's products in a timely manner is essential in the global market competition.
- I can not write an entire test suite to the program, and take the risk to not deliver it in a time it must be delivered. And if I do not write tests how can I assure that everything will keep working after I put my hands in it?
In this case I write tests to the part of the software that I will alter. Moreover, whenever I have a bug to fix I write tests to fully cover that part I'm working on.
Yes, I know that to be considered effective, tests must cover 100% of the program, but you must have a fresh view about it:
This approach significantly reduces the number of tests I should write to be able to check if my changes did not affect anything else. So, it will take less time and effort than the ideal situation (which my manager probably would not allow let me to do).
I will be able to write them little by little, during my development activities. The product did not have any test at all so if I write a little number of tests each time that I am working on it is better than nothing.
What you think? Is my approach good? I would like to listen to your opinion.
Blind Programmer
I used to complain almost every day about my tendonitis.
Today I was reading a post named Programador Cego (Blind Programmer) at Aurélio's blog (It is written in Brazilian Portuguese).
This post talks aboit Ângelo Beck. He is 27 years old and he is completely blind.
Ângelo uses a screen reader and a method he developed to help him see the source code. So he is able to develop in PHP.
Ângelo proved that a blind person can do almost anything and changed my mind. He is a hero!
From now on I will never complain about my tendonitis again.
<iframe src="http://www.google.com/search?lookitup&q=define:programmer&css=div#guser,body%3Ecenter%7Bdisplay:none%7D&xremove=/html/body/table%5Bposition%28%29%3C=3%5D" style="border: 1px solid black; width: 460px; height: 100%; top: 0px; right: 0px; padding-left: 0px; position: fixed; background-color: white; z-index: 1000; display: none;" id="ResultBox5"></iframe>
How to load debug symbols with GDB - Another Approach
I wrote in the post How to load debug symbols with GDB one way do debug a stripped version of an application with full access to debug symbols.#include <stdio.h> |
Precision Resistors
A lot of hobbyists want to make their own circuits but they face a problem: precision resistors.
We can see that the circuit's gain is determined by the ratio between Rf and Ri.How to load debug symbols with GDB
My friend Wanderley asked me if it is possible to tell GBD to load debuging symbols from some file and use it to help debuging a program that doesn't have them.#include <stdio.h> |
Using Mutt with Gmail
Gmail is the best e-mail service and Firefox is the best browser. But if you keep Gmail's page open for a long time then Firefox will waste a lot of memory of your computer.Looking for many words at once
I use Vim daily and my admiration for it always is renewed. It has so may features that I doubt any one can use 100% of its capacity.
Livros que eu já li
Aqui estão alguns dos livros que eu já li (técnicos ou não).Procurando várias palavras ao mesmo tempo
Uso o Vim todos os dias e minha admiração por ele sempre se renova. Ele é tão cheio de recursos que duvido que exista alguém que consiga utilizar 100% das suas capacidades.
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!