- 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
wow, my first frist! frits!
Admin
Press Alt-F4 to reply to this comment.
It was worth a try.
Admin
Wait what, anything not involving string-mangling constitutes a shortcut? Neat trick :)
Admin
It just dawned on me that the only things that make these "WTFs" is the level of impatience or frustration the "victim" gains in each story.
Most of us can probably laugh and live with little derpy moments like this.
Apparently, though, folks like jbanic need to "regain their cool" frist. Maybe the short fuse is the difference between a good job and a bad one.
Admin
Someone please put mroot back on the short bus to school... he should not be allowed to get near any code.
Admin
Sorrybutyou'llneedtoseparatethewordsinthecommentsprogrammatically.
Andwaitaminute.mrootisatotalidiotbutknowshowtousethisloopconstruct?
Admin
It is when you are used to working with Perl.
Admin
I'm the winner because avoid having to do any thinking at all. So you see, I'm the smart one. Stupid n00bs...
Admin
Wait... he's talking about parsing the string... but he doesn't even have a string that contains all the addresses, he's just printing them one at a time.
So not only was he trying to do the wrong thing, he was doing the wrong thing... wrong?
catcha: luptatum. Sounds like a delicious wolf potato
Admin
I am repeatedly shocked by the number of programmers who can't program. I once tried to explain Associative arrays to two programmers who had graduated from Waterloo. I used every synonym and semi synonym that I could come up with: Key value pairs, hashes, thing where you put in a string and it stores and retrieves a value, etc. They both sat there and looked at me blankly. So then I had to give a tutorial on the whole concept with them leaving the meeting thinking that I had made my code unnecessarily complex and could have just used a bunch of arrays and sorted/searched through them. But my favorite programmers are the one tool programmers; especially if the tool is obscure such as the Natural language or Adabas.
Admin
Admin
I call shenanigans. Everybody has heard of Split.
That, plus it took clueless over an hour to come up with adding a comma after each value.
Admin
Nothing better than a junior with superiority complex. You know what kid? Keep doing things right, you won't escalate the business ladder.
BTW, this WTF would have been better if there were more examples of senior stupidity.
Admin
Wow, that's almost as retarded as Bob's son. If he can't even figure that much out, how the hell does he turn on his computer in the morning?
Admin
Couldn't you just instanciate an array with the rs.size() and put them in without having to deal with a list?
String[] toBeReturned = new String[rs.size()]; for (int i = 0; rs.next(); i++) { toBeReturned[i] = rs.getString("email"); }
Admin
Hey, that's not obscure. I'm working with Natural and Adabas right now :-)
Admin
You missed Dictionary, and if they did a mess load of Java courses HashMap might have clued them in. Do you remember the problem? About the only thing I could think of that makes any sense (from their perspective) is if you had to implement a hashmap yourself on an embedded system, in which case the sorted arrays might just make more sense... even then only if the keys where used to iterate or hold some related string information and not really for random access.
Waterloo actually has a pretty good reputation. I didn't go there, but worked with many of them on my last CO-OP which was at a big tech company in that city. A good reputation in CS tends to mean that only 70% of the grads are hopeless instead of the normal 80%, so I guess it isn't all that surprising.
Admin
I can shortcut the entire comments thread:
brainless first-posts people who haven't got the joke or feel sorry for the wtf-creator people calling shenanigans people who insist upon slightly different solutions people who argue about the slightly different solutions people who say it would all be easier in another language / OS / etc.
Admin
You forgot people who comment on the comments.
Admin
Hi. Welcome to TheDailyWTF!
Admin
It just makes me sad ... And people DO think you rock at programming because you can actually think about a solution involving arrays. Just imagine speaking about LINQ (in a .Net environnement that is).
Captcha : "haero" yeah, he needs one ...
Admin
You're new here, aren't you.
Admin
am i missing something, shouldn't the code be:
while(rs.Next()){ //code here }
or it will only print one thing?
Admin
and people who never ever comment
woops
Admin
Your sarcasm is so subtle, it's like it's not even there.
Admin
mroot really needs to attend one short course in java. java is most user friendly REAL PROGRAMMING language. of course everyone think VB6 is most user friendly but keep in mind I use term "REAL" here. there are sevreal java course available online. i think he can contact me if he cannot google.
Admin
Agreed. From a technical perspective nothing in the supplied code was particularly WTFy. Story reduces to a guy who has existing code but wants it to do a bit more, yet doesn't know right off the bat (the horror!) how to get it done.
Junior dbag, in his infinite wisdom, feels time spent helping a colleague learn something new is an absolute waste of his own life and so has to sign off of AIM in order to cool off and a void a heart attack.
Classy.
Admin
I second this.
Captcha : eros ( I and thought thedailywtf.com was work safe )
Admin
Admin
The WTF is probably that he wants to split the string to find a specific one when he could have used an appropriate WHERE clause in his SQL request.
Admin
Admin
Dear Bert, Please become more entertaining for evreyone's sake.
Thx In Advanace, Nagesh.
Admin
Admin
so you work with amateurs. Big deal.
Admin
You missed about 80% of posts: an argument between Nagesh and 3 or 4 people who somehow can't spot the worlds most obvious troll.
Admin
Admin
madarchod!!!
Admin
I like this one better, many interfaces can already grab this as an array.
Captcha UXOR = short for Unix-Administrator
Admin
Admin
Admin
yeah, that's what i would have done. The list approach seems like a bit of a detour actually, not a shortcut
Admin
FTFY
Admin
From the code I've seen, nope, not everyone has heard of split!
Admin
What would you know of best vodka, drinker of horse-piss?
Admin
The WTF is why is he asking how to parse a string into an array when he's the one creating the string. You don't need to parse something that's basically already parsed!
Admin
Admin
push(@ary,$email), maybe?
Or do you mean that everything in Perl is either a dirty hack or a shortcut? I agree with that.
Admin
HA!
Admin
Copy-pasWorks every time.te code.
Admin
Sure, Java's a "most user friendly REAL PROGRAMMING language" compared to... say... Python?
Same code: