A little over a year ago I left my job at a company I had worked for for over 11 years to pursue a new opportunity. In the month of so leading up to my departure, I tried to think of all the nuggets of wisdom I could remember getting or giving over those 11 years, and added them to a text file, and then on my last day I emailed out the best of the bunch with the subject "Hoss'ss Last Words"

Cleaning up some files on my laptop today, I found that text file and figured I might as well share them with the world at large....

Replies are listed 'Best First'.
Re: Hoss'ss Last Words
by davido (Cardinal) on Jul 17, 2011 at 02:07 UTC

    Pearls of wisdom. I love these. Sound advice interspersed with humor and common sense.

    However, the times I've worked in cubes I've seemed to have the misfortune of having a loudmouth nearby, which isn't conducive to concentration.


    Dave

      a loudmouth nearby, which isn't conducive to concentration.

      Noise canceling headphones + anonymous complaint to the supervisor to remind everyone to keep a pleasant working environment (ie STFU)

Re: Hoss'ss Last Words
by AnomalousMonk (Archbishop) on Jul 18, 2011 at 00:19 UTC
    When you write equality comparisons, get in the habit of putting the constant on the left side.

    You may have intended that the word 'equality' include them, but this advice applies also to 'not equal' comparisons:  someVariable =! true is usually a valid expression, so
        if (someVariable =! true) { /* BUG!! */ }
    is a valid statement.

Re: Hoss'ss Last Words
by locked_user sundialsvc4 (Abbot) on Jul 18, 2011 at 03:56 UTC

    Nicely done.

    The best bits of programming wisdom that I ever caught were these:

    1. Above all else, capture the designer’s intent,” even if ... especially if ... that designer is you and there is no one else working with you.   Any fool can see what the code is.   No one can see why.   No one has a cucking flue why.
    2. Six weeks from now, even your own work will have become the work of a stranger.   See #1.

      Six weeks from now, even your own work will have become the work of a stranger.

      Words of wisdom, indeed. Just today i had to bugfix a project a colleage of mine based on some old, alpha-version of my web framework.

      My reactions where something like this:

      • Why has this file a timestamp of early 2010? Has it really been this long? Oh god, i'm getting old...
      • Why wont this jQuery command work? Whoops, that was before i started using jQuery...
      • How the f..k do i install this? Where is the Makefile.PL? Oh, yes, that was before i made it into a module...
      • Uhm, i managed to accidently kill the running instance. Now how do i start it again???

      On the plus side, i realized that all the hard work in the 2 years since then really paid off. I even managed to document all uhm most of ok, well part of some of my codebase. And the double-plus side, nowadays hardly any configuration file requires misspelling keywords for the program to actually work...

      "You have reached the Monastery. All our helpdesk monks are busy at the moment. Please press "1" to instantly donate 10 currency units for a good cause or press "2" to hang up. Or you can dial "12" to get connected directly to second level support."
Re: Hoss'ss Last Words
by perl.j (Pilgrim) on Jul 18, 2011 at 02:11 UTC
    Great Advice : )
    perl.j-----A Newbie To Perl