- 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
Show of hands, who'd like to see the original story that supposedly inspired this cartoonish, over-the-top mess?
Admin
Agreed. It would be at this point that I would go to my boss and explain that the twat they hired is:
If they shrugged it off, I may wait it out for a little bit longer to see if it was a just one-off occurance. But more than likely I would immediately fire up my CV editor of choice and start calling my recruiter network.
Admin
Captcha: jumentum? - No, I was just kidding.
Admin
Cute, but the real world doesn't work like that. When the 'shit eventually comes down' they will begin looking to point fingers and cut headcount. Honest or not, guess who is volunteering to be first on the chopping block?
Admin
Not test-tube babies...
Admin
Ditto. Almost all the ones that end with somebody updating their resume bum me out, but this one was extra frustrating.
Admin
[quote user="ClaudeSuck.de"][/quote]
Old code: X = X + Y
Brandnew code: int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int sum = a + b;
Can anybody tell me how much processing is involved in either of these methods and, therefore, which one is better, faster, more efficient? [/quote]
Since the new code does two things - it converts the variables from String to int and then adds them - while the old code just adds two numbers, the comparison is a little inane. If both are in the same language, the old code will execute faster, but where does your old code get its data from? If it's from the args array, it'll have to execute the new code at some point, and it'll take just as long to do it.
In other words,
Your not too smart, are you?
Admin
I would like to see the story that was actually sent in.
Admin
I gotta be honest, I find this one a little hard to believe. Or at the very least, grossly exaggerated. While it's true there are people like Alicia (male and female), and there may be people with jaimy's patience, I don't see management promoting her above him and other seniors. Not and have them still there the next week. Just doesn't compute.
Admin
the real wtf is that jaimey didn't have the sack to tell her that she couldn't code, and not tell his immediate supervisor of all of the cover ups he was making.
Admin
[quote user="Remy Porter"][quote user="ClaudeSuck.de"][/quote]
Old code: X = X + Y
Brandnew code: int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int sum = a + b;
Can anybody tell me how much processing is involved in either of these methods and, therefore, which one is better, faster, more efficient? [/quote]
Since the new code does two things - it converts the variables from String to int and then adds them - while the old code just adds two numbers, the comparison is a little inane. If both are in the same language, the old code will execute faster, but where does your old code get its data from? If it's from the args array, it'll have to execute the new code at some point, and it'll take just as long to do it.
In other words,
Your not too smart, are you?[/quote]
Agreed... The only thing you missed is that the second example would have an extra value on the stack (another variable compared to just 2 variables in the first example), which is barely worth mentioning. This is BS micro-optimization, which unless you're running a section of code millions of times a day, is completely useless. If anything, you may want to do a try-parse with some user-friendly error handling rather than just hope to hell that the inputs are valid.
And who the hell writes a program to add two numbers together? :)
Admin
That is a serious WTF. But the first WTF is allowing an idiot to believe programming is like Excel macros and then doing all the work for the other person so they look good. I would have left her high and dry to crash and burn, while looking for another job.
Admin
EPIC fail, as we're coming to expect around this dump.
Admin
Some people are too nice for their own good.
Admin
Think of it this way: if you spend your time doing the Idiot's work instead of your own, and the Idiot spends their time chatting up the bosses - who do you think the boss is going to pick when Promotion Time comes around. Idiot can point to their stellar numbers, and draw on the personal relationship, while you have neither.
This theory has explained several bosses I've had the... experience.. of working for over the years - they don't need to know how to do things, they just need to know how to get other people to do it for them.
Admin
At least 80% of having people think you know what you are doing is the way in which you talk about it and present yourself.
The other 20% is actually knowing what you are talking about. But that only applies when dealing with people who also know enough about the topic.
Subtle, little things can make a huge difference. I've known people who know, flat out, that they are correct, but will still phrase their statement as a question to be polite. IE - instead of 'No, you can't use a generic collection in that way'. They will say something like, 'Are you sure you can even use a generic collection that way? I've never seen something like that work'.
In front of people who don't know the answer, you just look like a stupid n0ob. And the guy who is wrong, looks like a genius. 'Bill is so ahead of the game, the other guys can't keep up!'.
Technical skill is hard for non-tech people to measure. But they do recognize confidence, self-worth, and a go-getter attitude.
I know a lot of really skilled technical people who don't get promotions or climb the ladder. And, for most of them, it's not because they don't want to. They find themselves in a chicken vs. egg situation. They do a great job, but their work seems unnoticed. They get a tiny raise and told they are doing great. They get comfortable. They could work longer and harder; but they don't see an immediate return on that investment. So, why bother? If they were to get promoted and get paid more, sure, they'd work harder and be great for the job. But they don't want to do it for free. Meanwhile, management sees that Bob does a perfectly fine job as an X, but he's just an X. He doesn't really stand out. And, after a while, Bob is probably taking long lunches and ducking out early - because he's good enough to do that and get his work done. But with his slacking, he's only marginally better than his peers. Why promote him?
Someone like the lady in this story comes along and she is driven. She asserts herself as correct, has an more confidence and self-worth than anyone you can find, and is really pushing to get ahead.
Admin
Claude, I'm guessing you already know the answer and you just have a strange sense of humor...
With that said, if you want to write the "old code" in the most efficient way, using C style syntax, assuming X and Y are integers you would say:
X += Y;
Of course this might not even matter depending on how the compiler optimizes the code.
Admin
Admin
Stories like this make we want to do this:
foreach(Human human in world) human.Dispose();
Admin
Admin
Never argue with an idiot, they drag you down to their level and beat you with experience
Admin
Lorne Kates == Nagesh???
Admin
Of course, it's easier to lead when your subordinates respect your knowledge.
Admin
Admin
There is being assertive and then there is being agressive and toxic. My guess is that she intimidated the hell out of the managers (probably worried about lawsuits, wrongfull dismissal, etc.), that they just caved and gave her the promotion.
Personally, I would say "if you're so damn good doing X, why would I give you a role where you no longer do X anymore?" Maybe, MAYBE give her a dev lead role, but promote her to where she can, carte blanche, hire whome she pleases and can single handedly shape the future of the company? Wow, WTF indeed...
Admin
Admin
Either that or Akismet is preventing him from posting a new article.
Admin
TRWTF is coding rules that make you write
const SIDES_IN_A_SQUARE = 4;
If you force adherence to the letter, not the concept, I'll check in the above as
const WEATHER_FORECAST = 4;
Admin
I'm pretty sure this is what the Akismet algo looks like:
Admin
How silly of me, I forgot to add the following:
Admin
Admin
Admin
Admin
Management was replaced last year. They outsourced the CEO position to the lowest bidder in the Phillipeans
Did you mean Philippines?
Admin
No, Philip the Peon.
Admin
Generally, I prefer defining even obvious constants like SIDES_IN_A_SQUARE. If you're using it in a dense code block, it's more readable than just using the numeral 4. It instantly snaps your brain to the correct context, rather than having to read the surrounding lines to see whether 4 refers to:
Admin
Why can't anyone learn the right way to spell "incompetent"? Are they incompetent?
Admin
Agreed: if they show a basic understanding and decent personality, then all the power to them. I would gladly take a Java guy with 5 years experience with a good personality and showed some programming common sense over a .Net role guy with comparable years of experience and a terrible personality.
The language/tools can be learned. Personality fit and having a natural sense of OO principles, etc. cannot. Well, at least the devs who force it (without the 'nack for it') usually plateau at intermediate level.
Admin
I have read many articles here.
some have made me sad, some have made me larf.
but this one makes me want to punch puppies. we need to form a team of vigilantes to deal with this sort of injustice...
Admin
Many of the experts that give fuzzy answers like that do so because they're aware that they do not and will not ever know everything, even within their their field of expertise. The people that give concrete answers do so because either they are not aware of their own human limitations or they know that the two weeks later when the boss is thinking about the dialog, he will remember an absolute answer, possibly one that was never spoken, and whether or not he felt confident in the other side of the dialog.
Admin
Nagesh caught a big one this time ...
Admin
Thank you, that comment made my day!
Admin
What are the Boy Scouts of America going to do about this? I guess we make good coders ... maybe start a fire under her computer?
Admin
No kidding! Did you copy this from Excel?
I'm kinda curious to hear what happened to the company afterwards, but I'm afraid to find out we're, by the look of this article, talking about The Daily WTF.
Admin
Admin
Fake. It would have been trivial to get someone like this fired. The guy in the story would not have been in the position he was in without possessing a basic ability to get people fired. He got what he deserved and the company got what they deserved.
The only one involved here with any brains was the bitch.
Admin
This story is too unbelievable to be true!
Admin
VB is English. I never knew that.
Admin
Admin
If this were a book, that would totally be the pull quote.