Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Common Beginner Mistakes

by Dominus (Parson)
on Dec 15, 2000 at 09:38 UTC ( #46796=note: print w/replies, xml ) Need Help??


in reply to Common Beginner Mistakes

Great article, thanks. A lot of this is really excellent advice.

Interested persons might want to take a look at my "red flags" articles, which are in a similar vein: "If you find yourself writing code like this, try to change it so that it looks like this instead."

Briefly, a red flag is an early warning sign that you might be doing something wrong in your program. Whenever you see a red flag, you should pause and wonder if there isn't a better way to accomplish the same thing.

chromatic's Repetition Without Abstraction is a great example of this; I think in one of the articles I called it "The Red Flag of All Red Flags" or something.

Thanks again for a great post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46796]
help
Chatterbox?
[Corion]: marto: How's things? I hope the kids are fine and you too!
[Corion]: Oh yay. I wonder why a very simple change in a program doesn't elicit a diff, and now I see that my diff program seems to have a bug ;)
[1nickt]: marto thanks for asking, so far so good. A pretty modern stack and decent procedures, although rather too much home-built stuff (e.g. a logging role that should tries to duplicate Log::Any).
[Corion]: No. It's just that I'm comparing the same output file twice, instead of comparing the output files of the two runs %-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2017-12-11 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (289 votes). Check out past polls.

    Notices?