Diamonds from a software source
Date: November 20, 2008
I am going to post here so diamond that I have found in my short life as a programmer.
Some of them I will need to translate to english, but you will get the idea!
private void InicializaMenu() {
TelaAtual = "3";
lnkDadosCliente.Enabled = true;
lnkDadosRisco.Enabled = true;
lnkSelecaoPlano.Enabled = true;
if (TelaAtual == "4") {
lnkTermoAdesao.Enabled = true;
}
}
Can you tell me the reason for the IF? It is a production code!
You might like starting posting this kind of things to http://thedailywtf.com 🙂