|
Search
-
I think my favorite comment ever seen in production code:
count++; // Increment count
-
[quote user="dkf"]It seems to be quite a common concept with a certain type of coder. Exhibit #1: MUMPS…[/quote]
That's amusing, because I actually *am* a MUMPS coder (though I think that article has many inaccuracies).
MUMPS does allow direct access to its database just like it was a variable, so yes you can read and write ...
-
I like this one. It opens with my favorite 'translation' of Jeremiah 12:5:
"its allies drug the postman and they have delivery, then open self-contained resort. I meet the demands of with ease off basically everything without with film twenty stores".
-
[quote user="DrPepper"]There must be a antipattern for this; does anyone know the name?
if (this.somePropName != '') {
this.somePropName = '';
}
After all, why set the value when it is already that value? Surely it must be faster to skip the assignment operator....
[/quote]
Actually, for ...
-
[quote user="bardofspoons42"]
On a whim, I ran NDepend against the wonderful code base that exists here, to see what sort of thing it would find (Methods with 13 parameters, several constructors with well over 100 lines of code, a class with 123 instance methods, another with 153 static methods). Looking into one of the methods it ...
-
Reminds me of scheduling a recurring meeting with about 15 people from another organization. Now, I sent a standard Outlook recurring invite, but apparently their system doesn't "do" recurring meetings, so it actually made about 20 years of non-recurring instances.
And when each person accepted the invite, it sent the ...
-
1. It's a Bachelor of Science degree. Every such degree must include science courses. I don't think 12/120 credits of science is really asking a lot.
2. Every college degree of any kind requires meeting the general educational requirements of that university. Again, it's just 12 credits (I won't count ...
-
[quote user="jasmine2501"][quote user="Cat"]
We have a number of genders available by default (medical software). Male, Female, Unknown, Other, and Refused to Specify. There are actually good reasons (for us) to do a similar (yet less WTF-y) "not-male" check. Any gender except male shows ...
-
We have a number of genders available by default (medical software). Male, Female, Unknown, Other, and Refused to Specify. There are actually good reasons (for us) to do a similar (yet less WTF-y) "not-male" check. Any gender except male shows warnings about requiring pregnancy tests before certain procedures, for ...
-
[quote user="Mason Wheeler"]
I got invited to speak at a conference in Australia a few weeks ago. The international flight was well over 12 hours. I brought along some books (Brandon Sanderson's Mistborn trilogy--well worth reading BTW) to keep me company. An e-reader (even a Kindle) would never have lasted that ...
|
|
|