- 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
It depends on whether you want the job or not.
Admin
Personally, I was a bit confused over 1 not being a prime number. I am not a mathematician, so I went looking. A minute of searching and I found this:
http://mathworld.wolfram.com/PrimeNumber.htmlAdmin
Their problem was they weren't thinking fourth-dimensionally!
Admin
That test reminds me of the test that I personally designed for our department. I purposely tried to make it complex so we could weed out developers who think they know everything but don't. I like to start off with simple questions like the proper use of On Error Resume Next, and the importance of naming your variables with a prefix that tells you what type it is. Then I move on to more complex questions about theory, such as choosing between different application designs, 2-tier, 3-tier, 4-tier and 5-tier (with and without a facade). I then ask them other theory questions, such as "Name 3 disadvantages of the MVC design pattern".
The last couple years, we have had problems with new developers questioning the code and methodology we use, so I decided to add some real-life questions with some actual code examples from our apps to make sure that they are willing to learn from my code and not think that they know it all.
Admin
So David passed up an opportunity with a promising startup because of this nerdy pedantic prime number disagreement? They're better off without him.
And Greg passed up an enterprising candidate who finds unconventional ways to solve difficult problems? Nice.
Lots of WTFs here, but not in the ways the authors intended.
Admin
I agree with you. Today's WTFs aren't that great.
Admin
WTF? Why don't you ask why Jesus is so much cooler than Buddha?
Admin
"Lots of WTFs here, but not in the ways the authors intended. "
Got to agree with you. The Prime Number [WTF] doesn't mention what type of company the startup was. Quite possibly the CEO was the kind of person that knows Primes inside-out.
For those that think their knowledge of maths is excellent (myself included), have a look at this: http://xkcd.com/179/ My reaction was the exact same, and had to go to quickmath.com the verify it.
btw. What's with people saying what the captchas were?
Admin
Because we aren't allowed to ask questions like that when hiring people. Someday if you interview candidates, your HR person will tell you what kinds of questions are not allowed to ask.
Admin
Surely you're joking...
But seriously, what 3 disadvantages to MVC do you have in mind?
Admin
Of course - it's obvious that they should have kept the candidate who took questionable shortcuts to make up for his lack of knowledge. That's exactly the kind of coder they'd love to have, I'm sure.
Admin
Would it be too much to say that quite possibly you might suffer from said syndrome? The "Top Cod3r" moniker doesn't give you a really good defense either.
Well, I assume since you talk about On Error Resume Next, you're talking about VB. While I can't ever think of a situation you'd use "OERN" in VB (after all, ignoring errors is not the way to solve the problem), I think "The Real WTF" is that you advocate Hungarian Notation... in Visual Basic.
Now, there's nothing wrong with Hungarian Notation; the problem is, Microsoft's systems department misinterpreted Simonyi's original intention for HN, and thereby created the convoluted form of "lpstrMyFirstName". Read more about it if you're interested.
In this day and age, with IDEs (especially with the VB IDE) helping the programmer find out what type a variable is, there is absolutely no reason why anyone should advocate Hungarian Notation, save for the continued maintenance of legacy code. Even Microsoft does not recommend it any longer ("Do not use Hungarian Notation").
Maybe you should be willing to learn from their code, too. Saying something like "we had problems with new developers questioning the code methodology we use" is pretty ridiculous, especially when you advocate Hungarian Notation and seem to believe you're an ubercoder. Because clearly, you think you know it all. I believe "think" is the key word, here.
If I found myself interviewing for your company, and found out you guys are using HN for Visual Basic, and on top of that the dev lead in the interview is being a complete douche know-it-all, I'd be out the door in a second. No thanks, buddy.
You're be driving a lot of the real programmers away. But I guess you'd want it that way; keep your bosses thinking you're the best!
Admin
One of the "greatest" features of Visual Basic. "Just ignore all errors." shudder
I'm curious, what are disadvantages of the MVC design pattern? I can't think of any. It's not overly complex, it does not add a lot of overhead... what are the disadvantages?
Admin
You don't get it, it went whoosh. He's saying that's not a fact, it's an opinion. Like assholes, everyone has one.
Saying "Our practice is to:" is one thing, but asking people to explain to YOU why YOUR practice is the greatest ever, well, it's almost like being God and needing everyone to pray and tell you that you are the God.
Admin
Truly sir, you are a god among men.
Admin
Getting accepted, now... that'll be a bit different.
Admin
Fourth-dimensionally, right, I always have a problem with that.
Admin
I don't register my name because I know that internet bully programmers will find out my personally identifiable information and heckle my bosses about how I advocate archaic standards.
All of you are right. I'm a douche.
Admin
Muahaha, I'm beginning to like the way Top Cod3r is becoming the laughing stock of the day.
Frist, in this sense!
Admin
This might be the best troll I've ever seen here.
Admin
No, you are the light and the way.
Satire should never be unmasked, no matter how confused it leaves the troglodytes.
conventioNever break character again.
Admin
Good for you! As they say, the road to recovery begins by first admitting you have a problem.
Admin
8(
conventio was my captcha test
Admin
So your test will tell you... which prospective programmers are good at taking tests about programming... and happen to think exactly like you.
Admin
http://xkcd.com/179/
Admin
Speaking of "whoosh" ...
For all you idiots attempting meaningful dissection of Top Cod3r's post, please go back and read a handful of the comments he's posted on other articles. I think you'll find a pretty strong pattern emerging: they're all tongue-in-cheek.
Yet he still manages to push someone's buttons; every single time.
Admin
Or alternatively use a proper programming language where you always know the type and the proper use of "On Error Resume Next" is to never use it.
Admin
Man, if you have to go to quickmath to verify this, then I seem to have a serious gap in my command of English - it's either "knowledge" or "excellent" that I have misunderstood all my life.
PS I might be hard on John if he is a high school student, but thinking twice - what will a high school student be doing here. Anyway, if we had a "go away if you are < 18" here on TDWTF i would be much more at ease.
Admin
You're looking for consultants, and you don't want to hire the ones that think outside the box. That's the second WTF.
Now, the guy originally lied about how many times he took the test: that's a good reason not to hire him.
Admin
The test I got for my current job was web-based and one question was asking the output of a program. I really fretted over the answer to one question, and was worrying about it well after the interview was over.
Anyway I got the job, and a few months later came across the test database. Turns out that an error in the web code meant that the answer for that question wasnt saved.
Admin
There's a point where if your satire or sarcasm is so veiled as to be undetectable, consistently, then it's just plain trolling.
So, either he's an idiot or a troll. shrug
Admin
A mathematician, an engineer and a computer scientist are in a group interview where they are tasked with finding all of the odd prime numbers.
The mathematician starts and says "3 is prime, 5 is prime, 7 is prime, 11 is prime, ..."
The engineer says, "3 is prime, 5 is prime, 7 is prime, 9 is a measurement error, 11 is prime, 13 is prime, ..."
Finally, the computer scientist says "1 is prime, 1 is prime, 1 is prime, 1 is prime, 1 is prime..."
Admin
I call troll.
Admin
Admin
It's a bit concerning that no one can think of any disadvantages to MVC. Don't get me wrong, I use MVC often, but it's not always appropriate.
It may not add much complexity, but it adds enough that it should not be used for small projects. Also, it pretty much always requires some duplication of business logic across the tiers (the alternative being lots of added complexity).
The trick to applying MVC is evaluating the current and potential future scale of your project, then balancing logic duplication with complexity.
Admin
Of course it depends -- 1 is prime when it's followed by a vowel.
Admin
Also a very keen candidate. I wonder how many people would take the test 140 times and say "Well, I learnt from that".
Admin
Admin
Oh boy... just when I thought the Hungarian Notation holy war was over.
Well, I can see a couple of important reasons to use Hungarian Notation, or least some variation of it.
In the VB.NET IDE you have to hover your mouse over a variable to figure out what type it is. Sometimes you can only see the type during run-time. Whereas, with some kind of variable naming convention, you can just read the code and know what the variable is supposed to be. I know it seems like a minor thing, but it really does make life a lot easier.
And god forbid you're stuck debugging code without an IDE, which happens more often than you'd think.
So, in which languages do you think Hungarian Notation would actually be useful?
Microsoft recommends a lot of things which are not exactly a) smart or b) the best way to increase productivity.
Admin
What - VBScript?
Admin
My company advocates the practice of indicating the variable type in its name.
cFoo = class variable pFoo = parameter variable gFoo = global variable
foo = local variable
Why is this so bad? Sure, I could rely on the IDE to trace back and give me an icon or tooltip or some reminder of where the variable was defined, but if it's right there in the name...
Edit: oh, I see, we're talking about two different things.
Admin
Prime numbers:
1 1!!1 !!one!1!!! 11!!!eleventyone!!1! 1!11!!1one!!!
Admin
Well, this being the Internet, where it's already difficult to detect satire or sarcasm, one must make an "extra effort", as it were, to ensure that people get your point.
But notice I said "so veiled as to be undetectable". There's a difference between "difficult to detect" and "virtually undetectable". There was no indication that what "Top Cod3r" said was sarcastic or satiric. None whatsoever. There are plenty of idiots on the Internet, and some of them are probaby on this site. WTFs also happen on Daily WTF.
Also, I have not seen any of his other posts.
So based on my observations (and I suppose all the others who took "Top Cod3r"'s idiocy as true), I would say that he failed miserably at being satiric. Whether or not he did it purposely is what would determine whether or not he was a troll.
But quote honestly, who cares, right?
Admin
Granted, my use of excellent may have been^H^H^H^H^H^H^H^H^ was over the top, but being an Aero-Engineer, I would say that my math is pretty good, so personally I think you're being a tad harsh.
Admittedly, I haven't had to use de Moivre's theorem since having to do basic proofs in uni.
Admin
I'd be able to excuse its use in something like C or C++, where even Visual Studio fails in several areas to provide consistent Intellisense.
Admin
In one of the Stephen King's "The Dark Tower" books (I think the third) appears a riddle regarding prime numbers, and 1 is included in them. It surprised me, too.
Admin
Sounds to me like you are the one who thinks "he knows it all" and is unwilling to learn.
Admin
I dont know how you people who say they been visiting this site "forever" don't know the Top Cod3r is a troll. Seriously, look at all of his comments over the past year, and you can CLEARLY tell he is being very sarcastic or a complete troll. You guys are TRWTF if you can't tell yet.
I guess Top Coder deserves a 10/10 for fooling so many of you idiots.
Admin
We had bizarre failures in our java app and unit tests.
We had recently changed some behavior at the domain bean/DAO level and a senior developer was being proactive about verifying that the changes had been fully implemented. He put some assertions in to the business logic to ensure everything was sane.
The "hey, I'm a senior developer too!" developer was hitting that assertion and it was failing -- we had overlooked something. But Junior Birdman wouldn't let it keep him from finishing his task.
He commented it out. He didn't bother telling anyone that he was seeing the assertion tripped. We, of course, didn't notice it since the assertion had been removed from the common source code.
It was a very interesting meeting the next day!
Admin
You kinda have to assume that the first interview is for a position requiring a fair amount of mathematical knowledge. Because unless I have really fallen out of touch, knowing off the top of your head how to calculate the nth prime is not something everyone is expected to know how to do. Unless of course, they were expected the exhaustive search method, but if they were only expecting that, why even bother ask the question.