• top 10 list of questions to ask when some code doesn’t work

    Unfortunately I have never seen such a list. But I’m prepared to start one.

    If you’re the asker

    – find the “stupid question asker” and start explaining the problem to them.
    You’ll realise your mistake quite quickly

    – if you’re worried that that it could be a silly mistake, and not worth being awarded “the plank”
    if it becomes public, then start adding debug statements.
    In the PL/1 days I used to write “put skip list” statements
    In C you write printf’s or the equivalent macro or function call.
    In my experience you’ll notice the problem the minute you’ve finished writing the debug lines,
    even before the code has been compiled and run.

    – ask yourself the following:
    has it ever worked
    did it actually work last time
    what have you done?
    did you recompile the program
    did you relink the program
    did you actually change the program
    are you running the program you thought you’d changed
    are you looking at the right output
    have you changed the inputs
    does the code match the comments. if not, which is wrong
    is it repeatable. if not, give up until it is

    You can ask these questions in whatever you order you feel necessary and
    as many times as you like until you find the solution


    If you’re the askee

    – do the google search that the askee should have done
    – ask them if they have reduced the problem to the simplest version that exhibits the bad behaviour
    – ask them if they have you compared the results with the most recent regression test
    – ask them to repeat the problem on another machine


    If you’re the “stupid question asker”, ask the asker
    – “Can you explain it to me again?”
    – “Are you sure that’s the problem?”
    – “Does it make any difference what day of the week you run it”
    – “Did you reload the data from yesterday’s dump”
    – “Does it work on Windows?”
    – “Would you expect it to work when ‘whatever’ is not available?”


    If you happen to be the project manager you can add these
    – “When will you have a fix for it?”
    – “If this went into production what severity would it be?”
    – “Do you have a work around?”
    – Ask them if they have asked the expert. This is a particularly good question if you know the programmer IS the expert.



    If you’re just earwigging someone else’s conversation, tell them
    – “It’s not possible, you have to rewrite it”
    – “I had that problem yesterday but it went away when I upgraded to version blah of thingummy”
    – “It works fine on Windows”
    – “You need to get trace output”
    – “Ask them for a dump”

    [Read more…]



    Published:

    Last updated:

    September 28, 2009
  • My real name is Robert Peter Gordon Miller


    So why am I called Herb?

    When I was a schoolboy at Portsmouth Grammar we were initially all called by our surnames. Being too dumb to ask each others Christian names (
    in those days we all had Christian names, even those who weren’t C of E ) we invented nicknames for each other e.g. Gasser, Blossom and Ipse.
    As I was a reasonably speedy but small cross country runner, rather than being called Dusty or Windy, they called me Mick; after Mick the Miller.

    I didn’t like it, so at the age of 13 or 14, when my best mate George Miles
    decided he’d like to be called G, I put about that I’d like to be called
    Herb – after Herb Alpert and the Tijuana Brass.

    The name stuck. Even my parents called me Herb. So when I first started at IBM I asked for that name to be put on my badge. Many years later, when I first got a Notes ID, the P for Peter got inserted into my name. I’ve never liked it.

    And did I know about Glenn Miller’s brother in those days?
    Answer: No

    [Read more…]



    Published:

    Last updated:

    September 28, 2009

Categories

Tide times from tidetimes.co.uk

Tide Times & Heights for Langstone Harbour on
Monday, 29 November 2021
High Tide:06:29 ( 4.20m )
Low Tide:12:19 ( 1.80m )
High Tide:18:54 ( 4.10m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
29th November 2021
06:48 High Tide ( 4m )
12:15 Low Tide ( 1.67m )
19:11 High Tide ( 3.92m )