Thread: nerd gifts???

  1. #1
    Registered User
    Join Date
    Oct 2006
    Location
    Omaha, Nebraska
    Posts
    116

    nerd gifts???

    Hey, I was wondering if anyone had ever written some piece of code and given it to some one as a gift? I thought about learning the required languages and building a search engine and giving it to some one on a thumb drive as a gift. I know it sounds nerdy, but I wanted to make something for some one and I'm not conventionally crafty. I just wanted to see if anyone else had done anything like that and how the other person liked it?
    Thanks!
    -M.I.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Sure, if written some code for others. Mostly examples, though.
    But if they want your end product, it's no different than giving a real gift, so hey, why not?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Sounds nerdomantic
    Would easily do it for the right person.
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    I wouldn't mind offering delete you; to a few people I know.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Mario F. View Post
    I wouldn't mind offering delete you; to a few people I know.
    Good one.
    Here's how to make peace in your house.
    Code:
    void shutUp(PPERSON per, PPERSON me)
    {
       if(per == me) return;
       delete per->cells->voice_box;
       long a, am = getDecendents(per);
       BOOL sex = getGender(per);
       for(a = 0; a < am; a++)   {
          PPERSON mate = getParent(per->child[a], !sex);
          shutUp(per->child[a], me);   }
       return;
    }

  6. #6
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355

    Cool

    And as far as the gift is concerned i had a small idea...
    Code:
    #include "boxes.h"
    #include "ribbons.h"
    #include <stdmetal.h>
    #include <socket.h>
    
    extern money_t credit;
    
    int main() {
        au18_k *link, *t;
        gem_t *gem;
        jewel_t jewel;
        money_t cost_per_link = AU * sizeof(au18_k);
        int nlinks, sockfd;
    
        credit = bank(getPid(), BANK_WITHDRAW);
        if(credit/2 > DIAMOND)
            gem = new_diamond();
        else
            gem = new_opal();
        credit -= gem->money_cost;
        if(credit < 0 )
            return 1;
        link = new_link();
        for(nlink = credit/cost_per_link, t=link; nlink >0 ;nlink--) {
            t->next = new_link();
            if(nlink>1) t = t->next();
        }
        t->next = link;
        jewel = meld(link, gem);
        boxwrapf("%j", jewel);
        ribbonize(stdbox, "%Hr %Vr %Dr", 
            INIT_RIBBON(1 | RIBBON_RED), 
            INIT_RIBBON(2 | RIBBON_GOLD, 
            INIT_RIBBON(3 | RIBBON_BLUE | A_BOLD));
        sockfd = socket(AF_ILOVE, SOCK_PACKET, 0);
        connect(sockfd, LOVE_ADDR, sizeof(socklen_t));
        rewind(stdbox);
        send(sockfd, stdbox, boxlen(stdbox) + 1, 0);
        dream(1000);
        free(love);
    
        return 0;
    }
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  7. #7
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    I would do it, but then again how many girls would like a program as a gift ?

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    If she wants a program as a gift, then go ahead and do it. Otherwise, you can get something else.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Quote Originally Posted by Elysia View Post
    If she wants a program as a gift, then go ahead and do it. Otherwise, you can get something else.
    How often does one tell someone what they are giving as a gift?

  10. #10
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    You should make sure that they like it before giving it
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Quote Originally Posted by Elysia View Post
    You should make sure that they like it before giving it
    That's the difficult bit

  12. #12
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    But isn't it with all gifts?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #13
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Quote Originally Posted by JFonseka View Post
    How often does one tell someone what they are giving as a gift?
    You obviously are not married!
    Mainframe assembler programmer by trade. C coder when I can.

  14. #14
    Cogito Ergo Sum
    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    463
    Quote Originally Posted by Todd Burch View Post
    You obviously are not married!
    Ah well, that will be remedied with age, or maybe not.

  15. #15
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    One is the lonliest number that you'll ever do ...

    Beautiful.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OBFUSCATED C CODE t-shirts and gifts!!!!!
    By CoDeR2 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-20-2005, 03:10 PM
  2. Computer Nerd......Oxymoron?
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 01-24-2003, 01:46 PM
  3. Are you a hippie or a nerd?
    By QuesOfTheDay in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 01-03-2003, 11:37 PM