- 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
Can you make them so that my RSS reader (RSS Bandit) can show the comments with RSS Bandit itself?
Admin
Cool!
I wish I could list something as important as inventing arrays on my resume.
Admin
<font style="BACKGROUND-COLOR: #efefef">Yeah it would be so nice if comments could be included in the RSS feeds (like it used to be). I use SharpReader.</font>
Admin
Just testing -- Why does the Rich Text edit toolbars appear to be editable when they are not?
Admin
Sounds like too many WTF's!
12 thousand lines of code that are eventually brought back to 200? Wow, that must've been some nasty code. But then again, maybe this guy DID get paid per line of code [;)]
Admin
<font style="BACKGROUND-COLOR: #efefef">That code makes sense. I mean, if he wrote 12k lines of code you can't really blame him for saving a few lines by not initializing arrays. Of course he could have done something like this:
@roles = split(/\t/, "user\tsuper user\tadministrator\tdenied");
But then you wouldn't be able to use tabs in the role names.</font>
Admin
If I'm not mistaken, Perl 4 didn't have arrays, hence the need to bodge them somehow. It would surely have been easier to define $role0..$role3 and index them with ${role$i} though.
Admin
oh my god.
I just crapped blood when I saw this.
Admin
I am mistaken. Perl has always had arrays.
Admin
http://history.perl.org/PerlTimeline.html
As you can see, in 1988 (back in version 2.0) there were already improvements being made to Perl array implementation. Perl was designed to crunch large amounts of text, and I doubt necessity for arrays was ever questioned. I mean, arrays are intrinsic to the Perl experience, otherwise you wouldn't be able to do l337 stuff like: [code language="javascript"]$hey = shift;[/code] to get parameters from function calls.
Admin
Wow... Just... wow. I registered an account just so I could express my amazement at this WTF. Definately the best yet.
Admin
Where is Guayo's message stating that he disagrees with this being a WTF?
Also, we need a separate thread just to keep up on the doing of our favorite Oracle consultant. The latest is to be found on http://www.dbdebunk.com/page/page/606457.htm
The weekly quotes there are a hoot!
Admin
Thanks :)
Admin
I would post about the wisdom of this is if it wasn't by the waste of memory that is putting 000 at the start of $roles_offsets, well, even geniuses make mistakes.
Admin
Admin
Er... That was odd. My message disappeared. What I said was this:
But he has to zero-pad the indexes, so that he knows where to find them! If he didn't, he would have to make another index variable to tell him where to find the indexes is the first variable.
Admin
No, Guayo's right.... you don't need the initial three zeros. Obviously the INITIAL offset is at zero.
Admin
Hmmm. Well, okay, I'll grant you that one.
Admin
My morbid cusiosity wants to know what he did with $roles.
Is there anything that justifies (ha ha - 11998 lines of crap) not having 4 variables for the 4 roles. He/she would have to change both the roles and the offsets to make any change.
They can't compare to this, but I really should send in the stringBuilder.Append(String.format()) stuff.
Admin
I'm still trying to figure out why old code of mine is posted on this website every day.
Admin
In the absense of any other helpful information, my aggregator uses the entry URL as a key to see if an item it sees is an item it saw before. The Daily WTF feed keeps changing between using thedailywtf.com, www.thedailywtf.com and the site's IP address as the hostname part of the URL, meaning I see each unique article at least twice and sometimes three times.
Please standardize on a particular URL style for the feed. Seeing the same entries repeatedly is starting to get frustrating.
Admin
For that matter, you could get by without the last 3 digits as well.
Admin
I just tried to send you a private message by clicking the "pm" button on the initial post. Here's what I got:
Admin
Ahem. Why is the are the <pre> tags both working and showing up in the output? Is this HTML or not?
Admin
Since the pm button doesn't work, I'll just post this: using bloglines.com (with the RSS url http://thedailywtf.com/rss.aspx, which I believe is the one you said to use the other day) I see today's post twice, and for some reason I see the tblCode entry again.
Admin
Only twice? I'm now seeing them three times.
Admin
That's not correct.
Admin
Yeah, I was wondering about that too. I thought maybe comwiz was just a lot smarter than me!
On the other hand, I wonder why the guy didn't use a delimiter so that he didn't need to pad his indices? That would have saved a bit of space.
indices = "3:..." for instance.
Kelly
Admin
To be fair, Perl is usually code by people in sheltered workshops so I don't think it's fair to criticise them unduly.
Admin
What exactly is a "sheltered workshop"?