- 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 figured as much, but I just know that other people will see that and OMFG LOL ROTFL, that is soooooo kewl! That is so going to be my new handle!
kthxbai
... I feel so, dirty...
vomits uncontrollably for 15 minutes and has a shower
Admin
Admin
Admin
Admin
+1 for being pure genius...
Admin
Everybody who said split() is wrong. The data is already in memory, so why copy it to a string and then parse that? Just use it already. That's why this story is wtf-worthy, not because the guy couldn't split().
Admin
The approach of that mroot guy resembles to me very much the "wooden table" meme, you see, like
Or some such...
Admin
Admin
I came up with the following, after someone "complained" about all the "unnecessary" story lines in Harry Potter:
Same story, no "flavor".Admin
Admin
Admin
Why do people let N00bs do things?
Kill the n00bs!
Admin
Admin
Could still be done pretty easily the super wrong way... try splitting this!
and yes, that first one could be a valid IBM Canada employee... named "foo". Probably first name starts with an 'F' and a last name of "oo".
Yep, good old "Frank Oo". Hasn't been the same since he got back from Afghanistan. Bastards shot off the rest of his last name!
I can't believe the filter thinks this is spam! After all Frank has done for us. What is wrong with you Akismet you insensitive clod!
Admin
I see a lot of Harry Potter references on this site. Forgive my naiveté, but do adults actually like that stuff?
Admin
Admin
He probably copied/pasted from some example on the interwebs
Admin
Not so many interfaces, once you realise that "&" is a valid character in an email-adress but is a reserved character in XML which must be encoded specially.
Admin
Actually, the supplied code showed that the question in itself was completely wrong, and the suggested solution was unnecessary.
When you have a collection of objects and you want a collection of objects, you do not recursively loop through it, print out a string and then parse the string into a collection.
Admin
Sorry I totally don't believe this ... it just seems too far fetched, who should care if it's an array or a list? They both conform to the Iterable interface ... hence sending and email is as easy as
for (String emailAddress : addresses) ...
As for the guy having to cool down, seriously dude, you need to learn to roll with the punches ... I have worked with idiots who blow their cool all the time, bruised and overinflated egos are just as detrimental to IT as idiots with no idea ... if something so little makes you annoyed, just wait until you start getting more senior and having to deal with management!
Admin
Zone transfer against a root DNS server . . .
Admin
Also as a side note ... just use the LinkedList collection class as you wouldn't have the issue of the resizing the array in the while(rs.next()) loop such that:
Collection<String> addresses = new LinkedList<String>(); while (rs.next()) { addresses.add(rs.getString("email")); } return addresses;
see really not hard!
Admin
Had some of that the other day. Tasted like a cow's arse.
Admin
What, the horses piss or the beef that bogus boris is speaking of killing?
Admin
Admin
lol i think that was a snippet ... so many ways to skin a cat ... according to a well known book there is a 101 ways ...
Admin
Also that's a ResultSet not a connection ... ;)
Admin
Admin
Probaly been posted already but what about using In-Line SQL with a wildcard SELECT. The table could be huge and returning all fields is very bad form...
Admin
RoseIndia is good site for programming tutorials.
Admin
Admin
HAHAHAHAHAHAHHAHAHAHHAHAHHAHHAHAHAHHAHAH....
sorry, I'm don.. no wait..
HAHAHAHAHAHAHHAHAHAHHAHAHHAHHAHAHAHHAHAHhahahahaAhahAHAHahAHA
Admin
Admin
Erecticus! Onanius! Ejaculaticus!
Admin
Admin
I doubt bogus boris has killed anything bigger than a fly or moskito. BTW, do you have moskitoes in North America?
Admin
jbanic (11:26 AM): You can just put it in a List and then convert it to an array. mroot: (11:26 AM): Duhhh: What'll they think of next?
Admin
I like interesting stories, not stupid or boring ones. This site needs better stories.
Admin
So the question is how to take a list of things and turn it into a list of things?
Admin
Dear God, yes. Mosquitoes so big you need to brace yourself if they land on you. You need to hit them twice, once to stun, then again, better aimed, to kill. They fly off, guts so huge and full of blood, will turn the river red when they go to lay eggs.
Admin
Yeah, kind of a lame story. Don't mind the Emma T nipslip though.
Admin
Given the context of this story.... my automatic assumption is that this list of emails really do not belong in an array at all. The list (or heck maybe just the datareader?) is most likely the final solution, not a stop along the way. The array requirement was a mis-specification the same as the string splitting was. What do you think the programmer will do with the array of email addresses once he has it? Most likely just iterate over it sending one email at a time
Admin
This was in one Phantom or Mandrake comic. I read Indrajal comics when I grow up in India.
Admin
What is this? I don't even...
Admin
Nagesh, you dumn fuck.
Admin
Admin
It has come to point where if I make any single comment, everybody want to jump and say "Troll".
Admin
Admin
You finally got it, Troll.