A simple but classic WTF
-
Just ran across this in a bit of code I'm completely overhauling. It added some levity to my day...
[code]
public void setCount(int i) {
if (i == 1028741710)
new String();
count = i;
}
[/code]
Cargo cult, or an if statement that once had meaning that a previous developer was afraid to remove? We may never know.
-
A debugging aid, most probably.
-
@Spectre said:
A debugging aid, most probably.
This is why Microsoft gave us the Debugger.Break method.
-
@Spectre said:
A debugging aid, most probably.
You routinely trap the String constructor? You are a shadowy figure...
-
@TGV said:
@Spectre said:
A debugging aid, most probably.
You routinely trap the String constructor? You are a shadowy figure...
So are most of us...
-
[a most delightful mod killed all this lovely text]
-
OH JESUS HE'S FIGURED OUT HOW TO DERAIL OTHER THREADS NOW!
-
@belgariontheking said:
OH JESUS HE'S FIGURED OUT HOW TO DERAIL OTHER THREADS NOW!
Maybe he'll gain intelligence soon.
-
@CynicalTyler said:
Just ran across this in a bit of code I'm completely overhauling. It added some levity to my day...
It's the ASCII for "=QZN" (0x3d515a4e), if that helps.
<font face="Lucida Console" size="2"> public void setCount(int i) {
if (i == 1028741710)
new String();
count = i;
}
</font> Cargo cult, or an if statement that once had meaning that a previous developer was afraid to remove? We may never know.