Posts

Showing posts from March, 2009

Elevator Bug

Image
This is a common scene in the Condominio São Luiz elevators: every now and then appears a blue screen, or a Windows message telling people in the elevator to contact Microsoft. This morning it happened again. There was some kind of trouble with Adobe Flash Player plugin. "Inform this problem to Microsoft" 2 weeks ago I met another message box in the elevator. "The system has been recovered from a serious error". If the system had a seriour error and has been recovered, why this message? What if the elevator stops between floor 9 and 10 and you get a message box: "Your elevator is in serious problem, please contact Microsoft for recovery". I'm terrified. Does anybody has Bill Gates phone number, please? Would a elevator running Linux or Mac fail the same way? Maybe yes, maybe not. But please, don't ask me to call Microsoft! I'm stuck in the elevator! Call the fireman!!!

Refactoring Paintings

Refactoring is a well known technique in software development. In short terms, refactoring is to execute a sequence of small well defined steps with the intention to let your code base more clear, more beautiful, more elegant. The result of a continuous refactoring practice is a simpler and easier to maintain software project. There many times also when refactoring takes the programmer to create new abstractions and code generalizations. Let's go to a simple example: suppose we are programming a Person entity class. This class contains attributes like name, weight, age, gender, spoken language. After some time, I find out that I need to insert cats in my system for some reason. Then, I create the Cat class with its attributes name, weight, gender and hair color. After that understand I've created an ambiguity. Both and Cat and Person classes have some attributes in common. By doing a refactoring, I can then create the Animal class, with the common attributes (name, weig...

Fearless

Turn resistance to the new idea to your advantage. Every innovation, in true, breaks something. So, every resistance is welcome. We need the resistance to test our new ideas and convictions. Skeptics are a gift! They give us information about our progress and teach us how we can adapt our approach. Maybe, the most important point in changing is how we deal with fear. Every change process implies in fear on both sides: those who are being changed want to avoid the pain of (maybe) loose something; those who are promoting change have the fear that their idea are wrong or won't be accepted. When both these sides get in contact surges an impasse. Resistance is not the main force that takes a change to failure. Reaction to resistance is the problem. You will hardly get 100% approval of a new idea. This is welcome. Every law that doesn't let opened the possibility of its execution, precisely because of its disobedience, is an arbitrary law. Second the Sanhedrin Treaty, is case of jud...