Looking through old code



  • I was just bored and I decided to look through a really old project of mine.  It was apparently last modified while I was in 9th grade, and has been downloaded at least 115 times.  I'm pretty sure that back then I must have known nothing about... wow, this actually violates so many principles I can't name one that covers it all.  Fortunately, I think that no one uses the version with this file anymore (if anyone uses any version anymore), but it was still on my harddrive for some reason.

        static void                                                //Hides a widget. Uh... self explainitory, I guess.
    hide (GtkWidget *w, GtkWidget *victim)
    {
    gtk_widget_hide (victim); //"Victim".
    }

    static void
        //Sends a signal to Foo's process.
    send_signal (std::string signal)
        //WARNING: This currently affects all instances of Foo, so DON'T HAVE IT RUNNING!
    {//Lol why am I only telling this to you in the comments of one of the source files? 0_o
    std::string command = "killall -s ";
            //I bet people are gonna complain to me when this function screws their projects up.
    std::string foo = " foo";
    command = command + signal + foo;
    system (command.c_str());
    }


     


  • Discourse touched me in a no-no place

    @TheChewanater said:

    and has been downloaded at least 115 times
    Which is sufficient to ensure that it is, statistically, in production within at least one hellish mission-critical ubersystem



  • @TheChewanater said:


    //I bet people are gonna complain to me when this function screws their projects up.

    So, did they? Old code is painful to look at. Unfortunately it often only takes a week or two before code gets old.


  • @Weng said:

    @TheChewanater said:

    and has been downloaded at least 115 times
    Which is sufficient to ensure that it is, statistically, in production within at least one hellish mission-critical ubersystem

     

    No, it was a small project made for a small group of people on another site.  If it was on some sort of mission-critical ubersystem I would never admit I made it.

     



  • I've gone back over old projects a few times, always came out the other end with a new kind of self-loathing.



  • @TheChewanater said:

    I was just bored and I decided to look through a really old project of mine.  It was apparently last modified while I was in 9th grade,
     

    The word that covers it is "whippersnapper".  Any code I wrote in the 9th grade might have been used in the OS kernel of the Magnavox Odyssey.



  • @da Doctah said:

    @TheChewanater said:

    I was just bored and I decided to look through a really old project of mine.  It was apparently last modified while I was in 9th grade,
     

    The word that covers it is "whippersnapper".  Any code I wrote in the 9th grade might have been used in the OS kernel of the Magnavox Odyssey.

     

     

    But I thought the Odyssey was completely solid state and software free? </pedant>

     



  • @BC_Programmer said:

    @da Doctah said:

    [quote
    user="TheChewanater"]I was just bored and I decided to look through a
    really old project of mine.  It was apparently last modified while I was
    in 9th grade,

     

    The word that covers it is "whippersnapper".  Any code I wrote in the 9th grade might have been used in the OS kernel of the Magnavox Odyssey.

     

     

    But I thought the Odyssey was completely solid state and software free? </pedant>

     

    [/quote] 


     Software free as in freedom.

     Software free as in price.

    Software free as in analog?



  • "Free" as "not present", I said "Software free" as opposed to "free software"; the difference is the same as saying "fat free" as opposed to "free fat". 

     To my understanding the system didn't have any programmability at all, either in the form of a ROM chip or otherwise. Just pure solid state "goodness" to move a white box on the screen.




  • @BC_Programmer said:

    "Free" as "not present", I said "Software free" as opposed to "free software"; the difference is the same as saying "fat free" as opposed to "free fat". 

     To my understanding the system didn't have any programmability at all, either in the form of a ROM chip or otherwise. Just pure solid state "goodness" to move a white box on the screen.


    I wasn't arguing, I was making a terrible pun.

     



  • @BC_Programmer said:

    "Free" as "not present", I said "Software free" as opposed to "free software"; the difference is the same as saying "fat free" as opposed to "free fat". 

     To my understanding the system didn't have any programmability at all, either in the form of a ROM chip or otherwise. Just pure solid state "goodness" to move a white box on the screen.


     

     

    Same as saying "shit code" instead of "code shit"

     



  • @Helix said:

    @BC_Programmer said:

    "Free" as "not present", I said "Software free" as opposed to "free software"; the difference is the same as saying "fat free" as opposed to "free fat". 

     To my understanding the system didn't have any programmability at all, either in the form of a ROM chip or otherwise. Just pure solid state "goodness" to move a white box on the screen.


     

     

      Same as saying "shit code" instead of "code shit"

     

     So if you went to Fry's to pick up a "cable modem", you'd be fine with them selling you a "modem cable"?



  •  yo i heard you like you food meat free, so i got you some free meat



  • @Helix said:


    Same as saying "shit code" instead of "code shit"

     

     

    I shit code, what comes out is code shit.



  • @KattMan said:

    @Helix said:

    Same as saying "shit code" instead of "code shit"

     

    I shit code, what comes out is code shit.

    One of my favourite lines on seeing a particularly awful specimen of WTFery, whether checked-in by a colleague or contractor, or browsing the source of some application, or on this site, is "I could eat alphabetti spaghetti and shit better code than this". 


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.