Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Re: Simplicity vs. Doing It Right

by joe++ (Friar)
on Oct 14, 2002 at 11:25 UTC ( [id://205034]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Simplicity vs. Doing It Right
in thread Simplicity vs. Doing It Right

It's generally best to assume that the software will need to be maintained and that you should code with that in mind.
What's more, even a oneliner tends to break in a hard to find way if no strict and warnings are enabled. My experience is that especially in "duct tape mode" I tend to shuffle around scripts, paths and files.

Taking the effort of enabling warnings and declaring my variables saves me a lot of debugging effort, even for scripts that solve one ad-hoc problem in an ad-hoc way.

Many times such a "proof of concept" later became part of a more serious project. Then it pays to have a more robust start.

(on a side note, I'm currently really interested in the eXtreme Programming method, where you start to design testcases rather than jumping at solving a problem by hacking away).

--
Cheers, Joe

  • Comment on Re: Re: Re: Re: Simplicity vs. Doing It Right

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found