Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Maintence vs. Programming style

by toolic (Bishop)
on Jan 28, 2008 at 18:24 UTC ( [id://664740]=note: print w/replies, xml ) Need Help??


in reply to Maintenance vs. Programming style

I admit that I do refactor other's working code, but only if:
  • We are using a version control system,
  • The change is small and contained, and
  • We have a decent test suite.

For example, one change I am forever making is to get rid of escaped quotes within a quoted string. I consider this hard to understand:

print "I said \"Hi\". You said \"Bye\".";

But, this is much easier to understand.

print qq{I said "Hi". You said "Bye".};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found