• (cs)
    Also, let me know if you have any complaints/issues with the new RSS feed(s) -- I can tweak them as necessary.


    Can you make them so that my RSS reader (RSS Bandit) can show the comments with RSS Bandit itself?
  • (cs)

    Cool!

    I wish I could list something as important as inventing arrays on my resume.

  • (cs)

    <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>

  • (cs) in reply to skicow

    Just testing -- Why does the Rich Text edit toolbars appear to be editable when they are not?

    skicow:
    Cool!

    I wish I could list something as important as inventing arrays on my resume.

  • (cs)

    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 [;)]

  • (cs)

    <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>

  • (cs) in reply to jesper

    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.

  • (cs)

    oh my god.

    I just crapped blood when I saw this.

  • (cs) in reply to Ben Hutchings

    I am mistaken. Perl has always had arrays.

  • (cs) in reply to Ben Hutchings
    Ben Hutchings:
    If I'm not mistaken, Perl 4 didn't have arrays ...


    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.
  • (cs)

    Wow... Just... wow. I registered an account just so I could express my amazement at this WTF. Definately the best yet.

  • (cs)

    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!

  • (cs) in reply to utoxin
    utoxin:
    Wow... Just... wow. I registered an account just so I could express my amazement at this WTF. Definately the best yet.

    Thanks :)
  • (cs) in reply to Bustaz Kool
    Bustaz Kool:
    Where is Guayo's message stating that he disagrees with this being a WTF?


    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.
  • (cs) in reply to Guayo
    Guayo:
    [image] Bustaz Kool wrote:
    Where is Guayo's message stating that he disagrees with this being a WTF?


    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.
  • (cs) in reply to utoxin

    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.

  • (cs) in reply to utoxin

    No, Guayo's right.... you don't need the initial three zeros. Obviously the INITIAL offset is at zero.

  • (cs) in reply to utoxin

    Hmmm. Well, okay, I'll grant you that one.

  • (cs)

    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.

  • (cs)

    I'm still trying to figure out why old code of mine is posted on this website every day.

  • (cs)

    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.

  • (cs) in reply to Daniel Drucker
    Daniel Drucker:
    No, Guayo's right.... you don't need the initial three zeros. Obviously the INITIAL offset is at zero.


    For that matter, you could get by without the last 3 digits as well.
  • (cs)

    I just tried to send you a private message by clicking the "pm" button on the initial post. Here's what I got:

    Server Error in '/' Application.
    Object reference not set to an instance of an object. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
    
    Source Error: 
    
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 	
    
    Stack Trace: 
    
    
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       AspNetForums.Components.ForumPermission.AccessCheck(Forum forum, Permission permission, Post post) +313
       AspNetForums.Components.ForumPermission.AccessCheck(Forum forum, Permission permission) +7
       AspNetForums.Controls.CreateEditPost.DisplayPost(Control skin) +178
       AspNetForums.Controls.CreateEditPost.InitializeSkin(Control skin) +289
       AspNetForums.Controls.SkinnedForumWebControl.CreateChildControls() +64
       System.Web.UI.Control.EnsureChildControls() +100
       System.Web.UI.Control.PreRenderRecursiveInternal() +38
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Page.ProcessRequestMain() +1499
    
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
    
  • (cs) in reply to JoeNotCharles

    Ahem. Why is the are the <pre> tags both working and showing up in the output? Is this HTML or not?

  • (cs) in reply to JoeNotCharles

    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.

  • (cs)

    Only twice?  I'm now seeing them three times.

  • (cs) in reply to comwiz
    comwiz:
    [image] Daniel Drucker wrote:
    No, Guayo's right.... you don't need the initial three zeros. Obviously the INITIAL offset is at zero.

    For that matter, you could get by without the last 3 digits as well.


    That's not correct.
  • (cs) in reply to Guayo

    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

  • (unregistered)

    To be fair, Perl is usually code by people in sheltered workshops so I don't think it's fair to criticise them unduly.

  • (unregistered)

    What exactly is a "sheltered workshop"?

Leave a comment on “The Guy Who Invented Arrays”

Log In or post as a guest

Replying to comment #:

« Return to Article