Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Using strict and dressing for the weather

by talexb (Canon)
on Dec 31, 2008 at 17:16 UTC ( #733513=perlmeditation: print w/ replies, xml ) Need Help??

The wind chill was -20C this morning as I walked from my home down to the Pape TTC station in Toronto. I was wearing my usual winter parka (down-filled), shell, wool scarf, sweater, wool cap, gloves, wool socks and work boots. I was toasty, and didn't even have my hood up.

On my way to Pape station, I passed a young man waiting for the bus. He was dressed in a hoodie with the hood down, a thin scarf, no sweater, no hat, no gloves, and just sneakers. He looked cold. I pondered that as I crunched my way to work and use strict bubbled up from my sub-conscious.

Writing software without warnings is like going out in the winter without being dressed properly. You'll survive, but it's going to be uncomfortable pretty quickly, and possibly later on as well (dealing with a cold, or with long-term bugs that could have been found early by using strict).

If you live in Canada long enough, you learn to start wearing proper clothing -- the Canadian winter can be bloody cold. And if you write software long enough, you start using warnings.

Trust me -- it may not look as fashionable, but you'll have a warm feeling at the end of the day. :)

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Comment on Using strict and dressing for the weather
Select or Download Code
Re: Using strict and dressing for the weather
by kyle (Abbot) on Dec 31, 2008 at 17:34 UTC

    I have this hat I got from an uncle for Christmas when I was a little too old for toys but still too young to have had a girlfriend. It's the warmest hat I've ever owned, and I love it like I love Perl.

    On the other hand, like Perl, it's kind of ugly. I've had to defend it from replacement by every woman I've ever been with. Shortly after I met the woman who would become my wife, her dog thought the hat would be a good chew toy, so it's only gotten uglier (but, remarkably, no less warm). My loyalty to the hat has not wavered.

    I hold on tightly to things that work.

      Non-ugly warm hats for men seem to be non-existent. That is a huge problem for me every winter. As I grow older, however, I'm beginning to care more and more for warmness and less for good looks.

      That "as I grow older" may not be quite appropriate for a 22-year old man, but I live in Russia and warm clothes seem to become a priority earlier in life for me than for people in warmer climates.

        I just got back from spending New Year with family in Edinburgh where it is a lot colder than where I live on the South Coast of England. I noticed a lot of guys in warm hats while we were out and realised that when you really need something to do a job you aren't as concerned about how it looks or what conventions it adheres to.

        This signature will be ready by a Christmas
Re: Using strict and dressing for the weather
by ww (Bishop) on Dec 31, 2008 at 18:18 UTC
    Excellent, ++

    But, a quibble:

    s/You'll survive, /You may survive, /
Re: Using strict and dressing for the weather
by MidLifeXis (Prior) on Dec 31, 2008 at 18:19 UTC

    I always boggled at why some students would wear shorts all year round in a "just-about-as-cold" area of Wisconsin. You were walking across campus for 10-20 minutes to get to class. Why not be comfortable.

    I am more comfortable with strict and warnings because it keeps me from having some class of bad things from happening with my code. By butt has been saved many a time by strict and warnings, much like my fingertips and head-with-less-hair-than-before are saved from frostbite by gloves and a hat.

    Then again, attire and hairstyle were really not a big concern for me. Comfort was.

    --MidLifeXis

        I always boggled at why some students would wear shorts all year round in a "just-about-as-cold" area of Wisconsin. You were walking across campus for 10-20 minutes to get to class. Why not be comfortable.

      Strangely, with my Scottish heritage, I get wearing shorts in cold weather. Physiologically, as long as the head, trunk, hands and feet are warm, insulation for the rest of the body doesn't matter that much, especially if you're walking somewhere and generating heat.

      Within reason. :)

      Alex / talexb / Toronto

      "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      For those of Nordic descent, shorts are comfortable down to about 25 degrees. It's only when the snow is on the ground for a few days that jeans are recommended. :-)

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

        25 I can buy. I have been accused of being a poor example for my kids when I am outside shoveling in just a hat and shirt sleeves update: (well, pants too). I am talking near zero (deg F) temps with windchills below that. :-)

        --MidLifeXis

Re: Using strict and dressing for the weather
by zentara (Archbishop) on Dec 31, 2008 at 18:56 UTC
    I got used to the cold camping in Alaska, and I find I can do Ok with just a hooded sweat shirt most of the time. I'm beginning to believe in the stories of monks in the Himalayas, who have learned to generate infrared energy, and can actually melt snow around them. There are deep secrets of human capabilities that are lost to those who live in warm houses...... I miss hibernating, that's for sure. :-)

    I'm not really a human, but I play one on earth Remember How Lucky You Are

      "I find I can do Ok with just a hooded sweat shirt most of the time"

      Yes, but we don't all have the added thermal insulation!

        Urhm...are you talking about the fur or the thick fat layer? :-)

        I'm not really a human, but I play one on earth Remember How Lucky You Are
Re: Using strict and dressing for the weather
by McDarren (Abbot) on Jan 01, 2009 at 03:09 UTC
    I was wearing my usual winter parka (down-filled), shell, wool scarf, sweater, wool cap, gloves, wool socks and work boots.
    wow... with all that, you must spend half your life getting dressed and undressed? ;)

    With an annual temperature range here of around 25-30 deg C (77-86 F), I find your analogy a little difficult to relate to.

    But I do use strict ;)

        wow... with all that, you must spend half your life getting dressed and undressed? ;)

      It's one of those things you learn to do pretty quickly and efficiently. And you have to respect the environment you live in -- you ignore it at your peril. :)

      And I spent seven months living in California -- I know it's warm there. But I love the change of seasons.

      Alex / talexb / Toronto

      "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

        I don't think he lives in California. :)

        ---
        It's all fine and dandy until someone has to look at the code.
Re: Using strict and dressing for the weather
by SilasTheMonk (Chaplain) on Jan 01, 2009 at 22:08 UTC
    I live in England but increasingly I find it too hot for me. Even in this Winter I go to work with no vest, a single shirt and a coat, no hat or gloves etc. When going out to lunch I do not bother with the coat. It feels great but now I fear what this says about my programming -- I do try to use strict and warnings. Honest!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://733513]
Approved by kyle
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-08-29 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (287 votes), past polls