- 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
Admin
I was never fond of that movie. Saw it once 15 years ago, didn't care for it.
Admin
Comments? What comments? This code was written by an expert: no comments needed.
Admin
+1 to this ...
I have worked with guys like this. Luckily they were let go ... unfortunately it took 3 years of incompetence :(
Still it says a lot when the teams actual productivity actually went up without having to fire fight or cover our asses with the blame game :)
Admin
Admin
What if you murder a clown?
Admin
How about a mime in the woods?
Admin
Admin
My GAU-8 is too noticeable in my back pocket, so I stick it down the front, where it sort of gets lost.
Admin
Admin
Click the in reply to because the comment section sucks.
We have a universal language already. Hint: What's the only language that Java keywords are in? Hint 2: What's the only language this website is available in?
Admin
Here in the Great South Land down under, my first job as a trainee programmer was to fix PL/1 programs written by a long departed Swiss national who used the shortest variable/function name out of french, english, german and italian. I was given a whole directory of source files to be translated (had to have some help from an Italian speaker when I couldn't guess). Needless to say this was in the days when 'gotoless' programming was the rage - no reviews no source control and if you were lucky 1 test run a day.
CAPTCHA secundum - because that was the first job, the secundum employer was found immediately I finished the translation job.
Admin
Admin
Then I found two real examples.
In Windows, some kinds of device contexts can be the destination of a bitblt, but when you try to read the pixels back out of it you get all zeroes (black).
I have a hard drive with a few bad blocks. Whatever data you write to a bad block, the drive's firmware returns a success result, pretending that it wrote the data.[*] When trying to read, the drive's firmware returns a media error. I presume all the spare blocks for relocations were used up long ago.
[* Right, I never said that Microsoft is the sole cause of data loss, just the biggest.]
Admin
Naive Europeans.
Here in Mountain View I saw much more sophisticated Maxims. The ones that, after you fix their leak/deadlock/whatever go ahead and refix it, because your fix is wrong; then go and complain to the manager that your fix was wrong. (That's Stanford School of behavior, I guess.)
Admin
Tom should have been fired for not being a team player. It's an undocumented unfeature.
Admin
CL or it didn't happen.
Admin
Admin
so, Toms fault for not going absolutely berserk on his boss imo (and fuck CLM, do what you feel is the right thing to do and say what needs to be said).
Admin
Admin
What else could be done? Maxime is incompetent in producing software but competent in producing vapid phrases. Tom is competent in producing software and less competent in producing vapid phrases.
If Tom were promoted, he'd spend more time in meetings, blathering phrases, and he'd have less time for producing software, the thing he's really good at. So Maxime is getting the ticket to the executive floor.
The more competent Tom becomes as a programmer, the more reason for management to keep exploiting his skills instead of letting him climb the career ladder. So Tom will never be promoted and will never get decision power. This is the usual fate of the technically skilled.
OTOH, what would you have management do otherwise? From their viewpoint, it's the only approach that makes sense. They'd be really stupid to do it the other way round.
Admin
Quite.
Isn't Bruxelles the administrative centre of the EU? how much more of a major presence on the world stage for anything do you need to be?
Admin
What you do is implement two different career paths: Management/Administrational and Technical. You make it possible to rise at least as high (in both salary and kudos) in the Technical path as you can in the Management path.
Admin
AAAHHHH. Oh. My. God. Don't post stories like that! Even reading about it drains the life from me. I want to punch somebody in the face now. >_< Luckily the world is not always this horrible. shudder
Admin
(*) Nor even well-known.
Admin
Admin
Considering the only major products of western Europe are money and debt, it sort of stands to reason.
Admin
Oh yeah, Brussels, so it is. Sorry, I've been international for so long I sometimes forget the provincial local jargon for stuff.
Admin
Well, maybe I should abbreviate that. So many problems are caused by managers, period.
Admin
Actually, Bruxelles is the provincial local jargon in French, it's Brussel in Dutch and Brussels in English.
Admin
That's how low profile they are.
Admin
Not even for variable life products?
(I haven't worked in insurance since 2001, so I don't know how much has changed since then.)
Admin
heh
Admin
I used to have a line that I used when firing people (before PC and HR nightmares of having to always be nice)
I'd promote them. to customers.
Admin
TRWTF is no code review. Of course, knowing ths company, Maxime would be just put in charge of it anyway...
Admin
Did no one notice the syntax error in the code? Not to mention the uppercase first letters of the method names... doesn't look like it's the original.
Admin
It's mostly iterators that are subject to race conditions with writers. And, again, if you never read from the map, no amount of corruption will actually do anything.
Incidentally, if you are stuck with code like this and want to make a minimal fix:
That's a quick and not too dirty way to handle it. And since it's being called by the put() and putAll() method, it works with the Collections.synchronizedMap method.
Admin
You will always sound like a moron when you talk about "this is slow" or "this is fast."
For instance, if your disk can only do one thing at a time, it's not the mutex that's slowing things down, it's the disk. The mutex is simply your way of acknowledging that a physical disk head can only be in one place at a time.
A mutex doesn't "slow down the process." What it does is create a guard around a resource that forces threads to access it sequentially. Blaming the guard for making things "slow" is idiotic; you can't tell a computer "I want you to run fifty threads" and then "but only do one thing at a time" and be surprised when running fifty threads is not faster than one.
Admin
Admin
And it stories like this that just beg the question, "What compromising information did Maxime have on the boss?"
Admin
Probably someone used to .NET writing code in Java.
Admin
Admin
Have taken over stuff like that. One guy added a LOT of custom Java modules back in the day when Java was new and hip. Each module was equivalent to one or two lines in the native scripting language, which I guess guy didn't like.
Each comment out of his code was like a victory, and the battle was won when I could finally uninstall Java from the server. Not that I hate Java, just unnecessary complication for the sake of coolness.
Admin
French would preferable to the stuff I get to read. Most of the Java code was written by a former C programmer who never got the idea of descriptive names, comments (at all), or this whole object oriented and thread-safe stuff.
__bc is a really descriptive name, especially when exposed via a public static method . . .
Admin
That is presumably in inner class extracted from a large class? (Re 'public static class Cache.) I wonder what the rest of the code looked like.
Admin
My favorite part was the bit at the end where his soul was crushed. If you play it in slow motion you can identify the exact moment where his will to live leaves his body.