Closed Thread
Results 1 to 6 of 6

Thread: Computer Stupidities

  1. #1
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Computer Stupidities

    This website collects some of the funniest things you will ever read:
    Computer Stupidities
    I would recommend you bookmark it and read it whenever you feel bored. Some of the things are out of date now, but it's still extremely funny!
    One of my favorites from the website:
    I tutored college students who were taking a computer programming course. A few of them didn't understand that computers are not sentient. More than one person used comments in their Pascal programs to put detailed explanations such as, "Now I need you to put these letters on the screen." I asked one of them what the deal was with those comments. The reply: "How else is the computer going to understand what I want it to do?" Apparently they would assume that since they couldn't make sense of Pascal, neither could the computer.
    Another one:
    This little bit of Java was written as part of a group project at university. The friend who passed it to me has been bouncing off the walls about the quality of the guilty party's code (silly things like defining error and success codes with the same value so you don't know what the return code means and stuff like that), but this is the most obviously stupid bit.

    public int convertItoi(Integer v)
    {
    if (v.intValue()==1) return 1;
    if (v.intValue()==2) return 2;
    if (v.intValue()==3) return 3;
    if (v.intValue()==4) return 4;
    if (v.intValue()==5) return 5;
    if (v.intValue()==6) return 6;
    if (v.intValue()==7) return 7;
    return 0;
    }
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2009
    Location
    Santa Clarita, CA
    Posts
    2,111
    Blog Entries
    47
    Rep Power
    31

    Re: Computer Stupidities

    My new signature just came from this site. Great find, Guest.
    Wow I changed my sig!

  4. #3
    Jordan Guest

    Re: Computer Stupidities

    lmao, good stuff! They should have used a switch statement:

    Code:
    switch (v.intValue()) {
        case 1:
             return 1;
        case 2: 
             return 2;
        ....
    }
    dummies.

  5. #4
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: Computer Stupidities

    lmao@Jordan
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  6. #5
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Posts
    9,547
    Blog Entries
    5
    Rep Power
    98

    Re: Computer Stupidities

    lol @ Guest
    lmao @ Jordan

  7. #6
    Join Date
    Sep 2009
    Location
    USA
    Posts
    3,400
    Blog Entries
    5
    Rep Power
    37

    Re: Computer Stupidities

    You know, someone was smart enough to use switch statements.
    switch (k) {
    case 9: printf("9\n");
    case 8: if (k==8) printf("8\n");
    case 7: if (k==7) printf("7\n");
    // and so on...
    }

    I wondered why he put the "if" clauses, but then I noticed that none of the cases has its "break" statement, so if he found that if k was 9, the program printed 9, 8, 7, etc. So I think he added the "if" clauses to fix that behavior.
    Root Beer == System Administrator's Beer
    Download the new operating system programming kit! (some assembly required)

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-08-2011, 02:31 AM
  2. Computer science vs Computer Engineering
    By jwxie518 in forum The Lounge
    Replies: 18
    Last Post: 03-09-2009, 12:39 PM
  3. The First Computer
    By littlefranciscan in forum Technology Ramble
    Replies: 2
    Last Post: 05-06-2007, 08:38 AM
  4. Computer Bug: the first
    By littlefranciscan in forum Computer Software/OS
    Replies: 5
    Last Post: 02-19-2007, 06:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts