Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: My habitual errors

by graff (Chancellor)
on Apr 05, 2007 at 02:43 UTC ( [id://608400]=note: print w/replies, xml ) Need Help??


in reply to My habitual errors

The mistake I seem to make most often -- especially when "patching" or "enhancing" code that was already running -- is forgetting to put the semi-colon at the end of a newly-added line. (Or forgetting the closing slash/bracket on a regex, or...)

That sort of thing always makes a compile-time error, and the error report always sites a line number somewhere later than the offending line. Drives me up a wall -- I should be habituated to typing ";" before the "return" key or whatever, but I still forget...

Since I use emacs, a forgetten close-bracket usually causes unexpected behavior with auto-indenting, so I catch it while editing, but the forgotten slash or semi-colon seems to squeak through fairly often.

Replies are listed 'Best First'.
Re^2: My habitual errors
by Gavin (Archbishop) on Apr 05, 2007 at 10:19 UTC
    Me too!
    It can then be very difficult to find, especially if you have been coding for a long time and your eyes are tired.
    My favourite gaff is to mix curly and round braces.
    Gavin
      My favourite gaff is to mix curly and round braces.

      That's one of mine as well. Fortunately xemacs has an option that high-lights the starting character of the clause that ends with the current curly or round brace -- green if the starting character matches, red if it does not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://608400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-29 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found