- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Using an interesting "voice" (read: subtle humor) in your documentation is a good thing. Some of the best docs I've read are done this way.
Being off-colour or just trying too hard to be funny is distracting. Documentation that is distracting is useless.
Just because it's funny to YOU doesn't mean it's funny to everyone else.
If you can't tell the difference, don't even try. Boring me with technical details is way better than making me have to get past thinking you're a sexist 12 year old nerd.
Admin
Admin
Admin
Oh, the frustration of the misunderstood ... This is what I recently found in the codebase of one of our huge projects (don't know if it is professional or not, just thinking that it doesn't belong there):
Admin
Agree totally. I treat source code similar to an office-wide memo. Humor isn't out of bounds, but childish or pejorative language like "stupid" definitely is.
Admin
Admin
The Standard Template Library, although the basis and inspiration for much of the C++ Standard Library, is not to be confused as /the/ C++ Standard Library. The STL is not part of C++, it's just a library that was really popular.
http://stackoverflow.com/a/5205571/1959975
Admin
on #4, it really depends. Sometimes I use comments as a reminder for myself for work that I have a need to do but haven't gotten around to doing it and, not only do I want to remind myself, but I want to make other devs aware. Sure I document this elsewhere. But the comments in code really help to drive home what I was after.
Yes, there are other means. I fail to see the problem w/ making it more direct in the code for this purpose.
Or perhaps I simply want a developer to know to talk to me before making changes. It's faster than looking through version control because you are obviously already looking at the comment in code at this point. Why spend more time?
Admin
and then there's this little comment in the source code on a certain site...
snipped a bunch of JavaScript that Google told us to put in. Seemed pretty pointless and caused an error. We don't need no stinking JavaScript.
Admin
http://www.kuro5hin.org/story/2004/2/15/71552/7795
I wonder what the current status is in Windows 8.1 :)
Admin
OK, I'll add a True-Life Adventure.
Be me. Be embedded software at St Louis defense contractor. Inherit incomplete firmware from another (young) software engineer. Work together to finish design; I complete integration and test.
Module comment header:
[Firmware Title] A [Silly Ass Name] Production Original Story by [Guy Who Started It] Screenplay by [Guy Who Started It and My Name] Directed by [My Name]
I get written up for "Unprofessional comments in source code."
These people have no sense of humor. I bail on defense industry.
Admin
I've had a few issues recently that were user error.
Users don't like it when you say that they erred.
Maybe I'll just call them stupid.
Admin
Admin
The word National is only used in Canberra, and only for marketing to emphasise they're in Canberra: National Gallery National Science and Technology Centre (aka, Questacon) National Capital Motors National Railway Museum (ok, that's in Adelaide, but it's the exception that proves the rule)
They also like "Capital" and crude names with "ACT" in them (transACT, ACTION etc)
Admin
Admin
Admin
I used the word "stupid" around my brother's kids once - they were probably 5 and 7 at the time - from the reaction I got, you would have thought I used a cuss word. My sis-in-law, who teaches at the same school their kids attend, told me they are very vigilant about their students never using the word "stupid". If someone uses it, they get a stern talking-to. Because no one is really stupid, you know. Everyone is able to learn or do anything. You don't want any student to ever become discouraged in any way.
If this is happening at all schools, then I imagine this word is slowly coming taboo for a whole generation. And I wonder how long this has been going on. I've seen 20-somethings wince when I use the word stupid, so I'm learning to avoid it.
Admin
To make sure the Septics can understand.
Admin
"it's very dispiriting working in an environment where all humour is vigorously suppressed. I'd complain to HR about the scientists creating a bad atmosphere due to their complete lack of humour."
You seem to forget that this is (apparently) from the Australian Department of Defence.
Admin
National Gallery of Victoria is in Melbourne Australian National Academy of Music is in Melbourne Australian National College of English is in Melbourne National Tennis Centre is in Melbourne National Sports Museum is in Melbourne National Institute of Circus Arts is in Melbourne National Theatre Drama School is in Melbourne
Admin
I can understand why it's not a good idea to call kids "stupid" or even to call people in general "stupid".
But I think it's pretty stupid to get upset about someone calling an inanimate thing "stupid", like a warning message in a program or an organisational policy. I think people are having difficulty understanding the different senses of the word.
Admin
Btw, the over 256 char namespace may be written in the requirement. I myself have seen Java code that has over 100 char namespace in order to follow government set standard. (Why the H do you need to put your company's domain name in reverse order as part of start of the namespace?)
If that's the case I can certainly understand why they call the namespace stupid in comment.
Admin
Research scientists in the Australian Department of Defence are pretty much all in the Defence Science and Technology Organisation. DSTO's scientists are s/stupid/special/ .
This story rings stupidly true in far too many ways. :(
Admin
You should just replace the word "stupid" with the word "fuck". Because, without fucking, none of us would even exist. So, it must be a good thing, right?
Admin
"Paul wrote a shell script that nuked all occurrences of the offending word and his initials"
If it didn't also have his initials, it didn't get deleted. I'm sure you can come up with some hypothetical bit of code that includes PMJ as well, but given that he's clearny not just blindly removing stUpId there's nothing to suggest he didn't also include a preceding '//' in the requirements for a match. It's not rocket science.
(Unless it is, of course, in light of the context.)
Admin
The warning was about generated symbol names in object files, not namespace names, the article (or Stan) got it a bit wrong. IIRC the problem was that some linkers did not cope with long names, and the compiler was not smart enough to figure out if this is actually an issue or not.
And yes, in C++ you can easily get such long symbol names from templated code. Namespace names add some length here as well, of course.
Admin
And #5 is most certainly not a WTF. As Roby McAndrew said, people with your attitude damage the work atmosphere. Anyone who actually behaves like "the offended scientist" in this scenario (which has probably been exaggerated) should be reprimanded for being so childish.
Admin
Admin
Admin
I always hear the "Don't write your initials when you've got Version Control", but I disagree.
Why dig through the version history every time when you can just have the name right there. It's even more useful when someone leaves a timestamp with it. If you are just looking over a piece of code cause you have to fix or investigate something, you don't go straight to version history every time to see which piece was added when and why
Admin
Seconded.
Admin
FTFY
Admin
Admin
You made my day. I saluto you for that!
Admin
But then there's the question: Why does Australia even have a defense department? With the stories and photos you see about the wildlife, you'd think their national defense plan would be to let them invade, and then sit back and watch them (the invaders) die.
Admin