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


In reply to Using strict and dressing for the weather by talexb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.