Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Code Maintainability

by johndageek (Hermit)
on Dec 04, 2008 at 17:04 UTC ( #728035=note: print w/ replies, xml ) Need Help??


in reply to Code Maintainability

Nice Meditation!

My additional comments:

Please be consistent. At least in a given program or series of programs. We all improve over time, please use those gains, but if you use variables like $companyName, or $company_name, or $co_nm please feel free to stick with approximately the same naming standard. This also applies to formatting and general ways of accomplishing given tasks like printing, calling subroutines and so on

If you modify/maintain a program that uses a standard you HATE please make the choice re-write the whole thing based upon your standards (the boss will love your time sheet) or much more reasonably, use the existing ugly standard.

I very much agree that many people believe that all programs should be written so an untrained person can step in and become a programmer this is wrong Wrong WRONG. Use the language effectively, as you say, use all of the power of the language skip using arcane little side effects as a method to accomplish anything in your program.

Yes I have broken all of these rules, sometimes on purpose for fun like Obfu code. Other times I have broken the rules without thinking, and generally lived to regret it, or more than likely lived to regret the same problem in someone else's code.

Always remember the basic rule : there is nothing so permanent as a temporary fix

Enjoy!
Dageek


Comment on Re: Code Maintainability

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2014-07-10 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (209 votes), past polls