Coding Horror (No limits for over logic)
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
Someone thought a lot before coding that... We do have a place for such code: Weird And Wonderful[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
Fantastic work LMAO :-\
if(this.signature != "") { MessageBox.Show("This is my signature: " + Environment.NewLine + signature); } else { MessageBox.Show("404-Signature not found"); }
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
I think there is missing somthing... "}" ;P
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
Careful. We'll be laughing at your code next week ;)
-
Careful. We'll be laughing at your code next week ;)
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...
-
My boss asked me to rewrite a class and while understanding that class behavior I saw this amazing over logic, anti-pattern example:
if (a != b || c == d){
if (c == d){
// ...
if(a != b){
// ...
}
}else{
// ...
}
}Enjoy...