Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Maintainance vs. Programming style

by moritz (Cardinal)
on Jan 28, 2008 at 18:18 UTC ( [id://664736]=note: print w/replies, xml ) Need Help??


in reply to Maintenance vs. Programming style

When I make only small modifications, I try to adapt to the current coding style with respect to indentation, naming of variables (CamelCase or no_camel_case or whatever), placement of else (on a new line or not?) etc.

When the code is horrible, for example no indentation at all (or only on two levels :/), one-lettered variable names etc., then I make my code look ok, and refactor the rest according to my time constraints.

Of course that depends on whether I'll end up maintaining the code - the more I have to deal with it, the more it will converge to my notion of programming style.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found