- 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
I registered now. Ha ha
Admin
Admin
BRAAAAAM If you see that your task becomes a 14 layers deep loop - or similar monstrous pattern, the first thing to ask yourself is - "am I taking the right approach?" and answer immediately with a "no."
Admin
Admin
Admin
Unless of course your on an embedded system with no database. Even so, there's probably an open source library to create a fake in-memory-only database and query that, but why bother when you could write your own in six weeks?
Did I miss anything? Oh yeah, Grow up, Darth Irish Girl.
Admin
तुम खुद को ज्यादा शहाणा समाज रहेला है क्या?
Admin
I did almost exactly the same thing at my last job. Fortunately for me the previous code had been written by an Oracle consultant who cost four times my rate and took four times as long to write the original report as I took to rewrite it ... so nobody had any particular affection for my predecessor. I got a raise and his contract wasn't renewed.
Captcha: "appellatio" ... I'm not even going to go there.
Admin
I have seen ABAP code very similar in general structure to that in SAP. And I'm not talking about what some junior ABAPer did--I'm talking about SAP-created functions.
Loops within loops--and functions within those inner loops--and inside those functions--more loops. I am not making this up. And before Google-Translate it was almost impossible to decipher the sparse German comments that tried to explain the madness.
I bring this up because I too often hear about the 'glory' of SAP and how some people think it's some sort of mecca system for n-tier development. It's one of the most ugly things you could ever want to see once you get under the hood. --Kang
Admin
Hello? What? Well if you can't work as a team you're all fired. That's it, you heard me, fired! Get your things and go.
Hello, security? Everyone on floor 4 is fired. Escort them from the premises. And do it as a team. Remember, you're a team and if you can't act as a team, you're fired too.
Dom, get on to recruitment. Get them to look for a security team that can work as a team. They may have to escort the current security team from the building for not acting like a team.
Team! Team, team, team, team, team. I even love saying the word 'team'. You probably think this is a picture of my family? No! It's a picture of The A-Team. Bodie, Doyle, Tiger, the Jewellery Man.
Admin
Admin
That made no sense at all! You fail.
Admin
I myself am guilty. I've written a kind of for loop over a lot of Articles and places. It has run fast here, but at the customer site it was terrible. I was so disappointed with it that I had to fix it. And after a few rounds of "wrong-doing" I got it. Runtime down from a few minutes to 10 seconds or so. It could be a bit better with better SQL, but it's currently good enough for a one-timeer ;-(
Admin
How exactly do you replace a logic that iterates over tables, rows and columns, with a join?
Admin
Admin
Yo dawg, I herd u liek loops so I put a loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop inside ur loop so u can loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop while u loop.
In other news, I herd u liek copypasta...
Admin
wow,just wow, put down the keyboard and go back to making my burger. I will take a liter of cola with that.
Admin
Thanks for sharing.
Admin
Admin
U R WC
Admin
Optimator is a German Beer..
Admin
Admin
Optimator Is a German Beer... hehehe
Admin
+1 for the insheeption reference
Admin
Hai guys! What are you doing? Quit fighting over my name!
Admin
Admin
Admin
Admin
He should have taken the opportunity to create a Speedup Loop to ensure that these "accolades" keep showering down with every revision.
Admin
Requisite XKCD: http://xkcd.com/853/
Admin
Admin
each layer has and odd mesmerizing 4/10 type of beat if you read the lines out loud. Until that last foreach statement where he just destroys the whole rhythm.
Admin
That I haven't really used Perl in several years, and remember the parsing rules this well says a lot about the language...
I think Perl would interpret it as:
$BOSS->&$BOSS()->Offspring()->[1]
So, given a reference to the object $BOSS...
Find a method named $BOSS, call it with no arguments...
Call the method Offspring() on that returned value...
Get the 2nd item from the returned list.
I think the overload module lets you override how an object stringifies, so this isn't entirely unrealistic.
Admin
Admin
Admin
Admin
XD That's terrible.
Admin
Impressive. Typically, my queries only go 8 or 9 layers deep.
Admin
WTF? I don't think that it is necessary to go that deep.
Admin
Admin
If they ever go back to putting the data in a flat file, he's screwed ;-)
Admin
Admin
During the verbal praise, management mispronounces your name or says the wrong department or job title.
My 5 year service award indicated I had worked 17.5 years. I wonder if I could get that vacation time?
Admin
Foreach is the new Smurf.
Admin
They did say you worked 17.5 years. And management never likes to admit that they were wrong.
Admin
Appleseed's stats are much better [or about the same, depending on the time]
Buuuuut... zimbobway's stats are quite a bit worse!
Admin
I'm ForEaching your ForEach. Pray I don't ForEach it any further....
I'm amazed none of you guyz came up with that.... I mean with such a sh..load of ForEaches.... :)
Admin
As you mentioned, it won't compile as was originally commented, and depends on strict vars being off, but a few braces and some poor programming practices fixes all of that. ;)
Admin
Show us your SQL or GTFO!
Admin
I wonder just how many memes one could apply this to.
the "y u no" guy: FOREACH Y U NO RUN QUICKLY
Asian father: "Why do you foreach? You should for-H. Wait, no, you should foray."
Paranoid Parrot: Foreaches keep looping back. They're stalking me.
"I bet you can't run this foreach loop in less than a working day!" "CHALLENGE ACCEPTED."
Manager troll: "If you want to make this run fast, just write it in half a page or less of code and run one of your compiler optimizer thingies. Then it will be condensed into less lines of code. Do this repeatedly until you have 0 lines of code, and it will run instantly. Problem time complexity? You jelly?"
etc. etc.