nerd gifts???

This is a discussion on nerd gifts??? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hey, I was wondering if anyone had ever written some piece of code and given it to some one as ...

  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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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
    Portugal
    Posts
    7,467
    I wouldn't mind offering delete you; to a few people I know.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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
    1,627
    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;
    }
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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
    Katy, Texas
    Posts
    2,309
    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!
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  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
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,703
    One is the lonliest number that you'll ever do ...

    Beautiful.

Page 1 of 2 12 LastLast
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, 12: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, 10:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21