Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Avoiding silly programming mistakes

by GrandFather (Sage)
on Aug 20, 2008 at 10:11 UTC ( #705465=note: print w/replies, xml ) Need Help??

in reply to Re: Avoiding silly programming mistakes
in thread Avoiding silly programming mistakes

Golly! At least 2/3 of those errors are caught by using strictures or a decent syntax highlighting editor!

Perl reduces RSI - it saves typing
  • Comment on Re^2: Avoiding silly programming mistakes

Replies are listed 'Best First'.
Re^3: Avoiding silly programming mistakes
by JavaFan (Canon) on Aug 20, 2008 at 10:23 UTC
    Your point being?

    Sure, when I make them, they are quick to fix. But I still make them. Over and over again.

    strict and warnings detect (some) errors. But they don't prevent from making them.

      Read the documentation carefully, pay attention, sleep well, take pauses and don't drink. Those may help in preventing making mistakes, but does not guarantee they won't happen. I'm a bit far from 22 years of experience in programming and still make silly mistakes. Good practices like the ones pointed by GrandFather will help spotting errors faster.

      In your comments I don't see you helping missingthepoint either not making mistakes nor figuring them out.

        Sleep well

        Absolutely (and to help acheive this, don't have children till you're in management).

        don't drink

        Unless you'd like to return to your work to be dumbstruck by the arcane working of your mind when augmented with alcohol. Perhaps it could be used to help obfuscation?

      The OP was concerned about problems that can be slow to find and quick to fix. My point is that an early heads up about typos and other similar errors can save a lot of time.

      Perl reduces RSI - it saves typing

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://705465]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2018-06-21 18:43 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.