Set i for the hell of it
-
it's little but still gave me a chuckle:
public void setParameter(ParameterConfig argConfig) {
if("".equalsIgnoreCase(argConfig.getName())) {
int i = ConfigUtils.toInt(argConfig.getValue());
}
super.setParameter(argConfig);
}When I asked the person that wrote it why he said "I don't know, the guy told me to copy it from another class so I did."
-
Everytime I see some class named like ConfigUtils (or anything else with "utils" in its name), I feel a cold chill down my spine.
-
[quote user="Renan "C#" Sousa"]
Everytime I see some class named like ConfigUtils (or anything else with "utils" in its name), I feel a cold chill down my spine.
[/quote]
I get that same feeling everytime I see a project with a reference to a library named something like masterbootrecord.dll or biosservices.dll. You'd be surprised how many times I've found old projects at my work with random references like the above.
-
@minkey said:
it's little but still gave me a chuckle:
public void setParameter(ParameterConfig argConfig) {
if("".equalsIgnoreCase(argConfig.getName())) {
int i = ConfigUtils.toInt(argConfig.getValue());
}
super.setParameter(argConfig);
}Hahahhaaaa, I loev the way they make sure to check for both upper-case and lower-case nothing!
@minkey said:
*sigh*"I don't know, the guy told me to [ . . . ] so I did."
When the aliens finally get here
And discover the smouldering rubble of our civilisations.
... *That* is what it'll say on the gravestone of the human race.