if ($TIME==free) then {make_cool_stuff}

Sometimes, free time is a good thing.
Anne is finally home, and I can walk away from the computer for a few hours. Hooray!

71 thoughts on “if ($TIME==free) then {make_cool_stuff}”

  1. Walk, and keep walking. Mr. Computer can take over a life if you let it. It’ll be waiting for you when you come back.

  2. “Anne is finally home, and I can walk away from the computer for a few hours.”
    We’ll understand if you’re gone for awhile. :)

  3. Go on! Walk away!
    But just remember, you’ll never be free. You’ll never have a life without it.
    It’s inside you.
    Hear the Primal scream of the Geek!
    Embrace it!!!!
    Live for the sounds of the clattering keyboard!!!!
    Mwahahahahahahahahahaha!!!
    …………………….sorry
    That keeps happening.
    Ignore me. I’m just jealous.

  4. Not to nitpick but shouldn’t it be $TIME==free (double equals sign)…
    >
    Sorry, didn’t mean to crash the party…. I’m a CS student… pitty me ;-)

  5. Once you get computers in your blood, you can’t escape. You can walk away for a little while..maybe a few hours, maybe a week, but you can’t get away for good.
    Computers are addictive.
    The internet is worse.
    Resistance is futile.
    :)

  6. Go have some good family time Wil. Enjoy every moment with your wife. Life is short so enjoy every minute.
    Best to you and your family
    Ozzy.

  7. Wil,
    I hope you do not go through computer withdraw. Remember that life has many other things to offer. She is only your wife. Dude,turn off the machine for a while.
    FG

  8. I know that feeling.. that feeling of having an imblical cord from you to the computer.
    Must… Cut.. cord.. must.. get.. a .. life!
    There are times I think the mouse is actually another part of my body. Hmm Darn.
    At least from the sound of it, I am not the only one. YEAH!
    Hope you have a good evening with you family tonite, Wil. Everyone deserves some good quality family-bonding time.

  9. DOH!
    “==” is should be . . . and I probably should have defined make_cool_thing as a function, but then I’d have to get into including libraries, and that’s just way over my head.
    /geek

  10. Wil,
    We could all use some time to step away, take a deep breath and enjoy the family. Hugs to Anne and the boys!
    Me — I just spent the day on the phone with siblings after our dad was injured in an accident. He’s okay — but for a few hours there all us far-flung brothers and sisters were burning up the cell phone lines trying to find out how he was doing. Just spoke to him; he’s tired and in pain but going to be okay.
    Reminded me that they won’t always be there to talk to — so we have to savor our loved ones while we have them.

  11. ASSHAT TROLL ALERT! ^^^^
    So anyway Wil, since you mentioned walking away from the computer, I decided to do the same. So I slipped ST II:TWOK into the DVD player. About a third of the way through the movie and I found myself right back on the computer looing something up. Specificly I thought I read that Checkov (Walter Koenig) was not in the TOS episode “Space Seed”, yet in STII, Kahn specificly “remembers” Checkov, stating that he “never forgets a face”.
    I know that is completely irrelavent to your post. Sorry *embarassed monkey-do-bad look*
    Incidently, I found these links, for all of my fellow Anti-Berman ST fans out there ;}
    http://www.trekfansunited.bravepages.com/
    http://www.startrekcampaign.com/index.html
    Probably old news but I figure what the hell…since I’m stuck to this computer like the ice on the streets outside, might as well read something I find interesting…

  12. Damn! Wil got that Asshat Troll’s post out of there before I could finish my post. Wil! I thought you were walking away from the ‘puter?! LOL

  13. perl -e ‘if ($TIME=free) then {make_cool_stuff}’
    Bareword found where operator expected at -e line 1, near “) then”
    (Missing operator before then?)
    syntax error at -e line 1, near “) then ”
    Execution of -e aborted due to compilation errors.
    Dang it.
    Hm.
    #!/usr/bin/perl
    if ($TIME eq “free”) { make_cool_stuff(); }
    Or what about:
    #!/usr/bin/perl
    if($TIME == “free”) { make_cool_stuff(); }
    Or…heyyy…
    #!/bin/sh
    if [ $TIME = ‘blah’ ]; then
    make_cool_stuff
    fi
    Oh. No. Wait. I’ve got it…
    #!/bin/sh
    if [ $blog_reader = ‘total geek’ ]; then
    correct_blog_headline_with_persnickety_code
    fi
    Ahhhhh. The pause that refreshes!

  14. ‘=’ could be correct. Some languages use ‘=’ for comparison and ‘:=’ for assignment. There’s not really enough context to know the language for sure, and the intent seems clear enough for the intended audience.
    Although in Java it might look more like:
    if( this.getTime().getCost().equals(Cost.FREE) ) {
    Stuff s = new Stuff();
    try {
    s.setCool(true);
    } catch( UncoolException e ) {
    System.out.println(“TODO: Get a job tomorrow.”);
    throw e; }
    return s;
    }

  15. Wil,
    sad thing is – we (or is it us? i hate that…) nerds are a dying breed – the machines are getting too plug-n-pray and the code is getting too wordy….
    sometimes i sit back and remember my cassette tape memory and my 17K pages of code to write a simple calculator prog on my TI-99 4/a. *sigh*
    I’ve been workin with Dell after movin to Pennsylvania, and the machines are so simple to set up for these companies…. ghost image on the server – toss in a floppy – turn machine on – hit enter when complete… *shrug* and they want people with multiple $5,000+ certifications to do this….
    ok. i’m ranting. i’m jealous – you’re spending time with yours – I should be doing the same…
    hasta.
    Rob
    (m0ppy from fark)

  16. Although in C# it would look like:
    if( this.GetTime().GetCost().Equals(Cost.FREE) )
    {
    Stuff s = new Stuff();
    try
    {
    s.SetCool(true);
    } catch( UncoolException e )
    {
    Console.WriteLine(“TODO: Get a job tomorrow.”);
    throw e;
    }
    return s;
    }
    Now that’s innovation!

  17. Couldn’t resist…
    package net.wilwheaton.time;
    import java.util.Date;
    import net.wilwheaton.coolstuff.Util;
    import net.wilwheaton.coolstuff.CoolStuff;
    import net.wilwheaton.coolstuff.StuffFactory;
    public class TimeAllocator
    {
    private final long enoughTime = 1000*60*15; // fifteen minutes enough?
    public static void main(String argv[])
    {
    CoolStuff somethingNeat;
    String nextThingToDoTime = argv[0];
    Date time = null;
    try {
    time = Util.dateFromString(nextThingToDoTime);
    } catch (Exception e) {
    System.out.println(“Time not acceptable to do stuff”);
    }
    if (time!=null)
    {
    long freeTime = time.getTime() – System.currentTimeMillis();
    if (freeTime > enoughTime) {
    somethingNeat = StuffFactory.makeSomething(freeTime);
    somethingNeat.make();
    System.out.println(somethingNeat.getResult());
    } else {
    System.out.println(“Not enough time.”);
    }
    }
    }
    }

  18. Hey wouldn’t it be more common to use
    somethingNeat = StuffFactory.getInstance(freeTime);
    somethingNeat.make();
    instead? More like the Factory pattern then? ;-)

  19. I got one of ‘em done
    ++++++++++++++++++++++++++++++++++++++
    package net.wilwheaton.coolstuff;
    public class StuffFactory {
    // Partner is a concrete class
    // that implements the CoolStuff interface
    private static Partner wife = null;
    // there can be only one ;-)
    public static CoolStuff getInstance(long pFt) {
    if (null == wife) {
    wife = new Partner();
    }
    return wife;
    }
    // but there is this new technology
    public static CoolStuff getMoreCoolStuff(long pT) {
    Partner anne = (Partner) StuffFactory.getInstance(pT);
    return anne.clone();
    }
    }

  20. You deserve a break. Now take some time and thourghly enjoy and pleasure your wife, in the only way Uncle Willy can pleasure a female.

  21. Tony: hee hee. You physicists … er, I mean skiers … er, I mean software engineers. You’re all alike :-).
    btw, I don’t think 15 minutes is long enough ;-).
    Enough sed. Code beckons.

  22. Then again, I might prefer:
    while( this.getTime().getCost().equals(Cost.FREE) ) {
    this.getBankAccount().deposit((Money)getTime());
    }
    You know, since time is money…

  23. Hey, is there an erotic perl stories page out there somewheres? Or just erotic code?
    That one above got me all HOT!
    “perlnecklace.com?”
    um,
    “how’s your Python?”
    Ha a ha a ha a ha. Whew. Gotta find some tissues…

  24. Hello,
    For I have not read Wil’s website for a week I didn’t read that he is not in the best of moods, and I would love to join in and make his mood a bit better then it is right now.
    For Wil,
    If it wasn’t for your website I wouldn’t know what I would have done to pass my time. For a while my life sucked big time. I didn’t know what to do with my life till I found your website. To read how your life was going and your thoughts made me to look for a job and go to school again. Now I am a bookkeeper and although it does not sound like a cool job I love it and enjoy it. And even right now I am trying to join the Army to make my life more purposefull but I and other people need you to cheer up and start enjoying life more. Spend some quality time with your stepchilderen and your wife. Get a fix done on your book. Everyone may say the book sucks, but that is a small group of people. Send out the book, and stop worrying and start enjoying.
    Those are my 2 cents worth of telling you that you are a great guy
    Alinda van der Kooi
    Netherlands

  25. ok Wil you can’t have gotten very far with Ann…you keep commenting on your comments (grins) Take a break and Lay Lady Lay or something.

  26. I have to use a disclaimer before posting this: I’m going to sound TOTALLY out of touch, because I AM totally out of touch…I listen to too much Howard Stern in the morning, on my way to work, because he’s pretty damn funny, at least when he’s insulting celebrities in his own not so subtle yet still subversive way. His central message when commenting upon the impending war is simply “Bomb Sadaam,” “Kill Osama” and “What are we going to do, let the terrorists win?” He’s pretty much a Bush athletic supporter, which makes him come off as a simpleton, or at least a fatcat who is too comfortable in his millions to look deeper into the real issues we are facing. I have to admit, because I just stumbled upon WWDN last week, I’m realizing how many people are speaking out against the war, and am trying to become more informed and involved. Thanks for all of your insights, and thanks for the great movies, Wil. I’ve printed out your filmography from a Google search, and am going to make a point of trying to rent as many of them as possible. Maybe the general public IS totally being snowed. When I was in college, during the Gulf War, I was listening to “Die For Oil, Sucker” by Jello Biafra, and believing in it. Now, I’ve become complacent in my rat-race mentality. What the HELL is going on? I feel so stupid, sometimes. Thanks for letting me add my two utterly confused, humbled cents.
    Wil Wheaton Filmography:

  27. Thank you Wil, for putting an end to the long “voice and fist” comment box. – At least I think thats what you have done.
    have a nice day
    sjr

Comments are closed.