Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Sounds frustrating. Perhaps you just wanted to vent (understandable enough ;-), but here are some practical suggestions that might make your life easier:
  • Use source control.
  • Use bug-tracking tools.
  • Build (and use!) automated test cases.

Source control is absolutely indispensible when the PHB says "put it back the way it was before", or when you realize your change broke something, or that you mistakenly nuked some important comments. CVS isn't the most user-friendly solution IMHO, but it's in widespread use and is free.

Bug-tracking tools help you keep track of change requests -- whether they come from the boss, from one of your users, or from yourself ("I know this will be a maintenance nightmare later") -- in a logical way. If Bugzilla or something like that is overkill, at least open up a spreadsheet so you have all the bug/change requests in one place and can prioritize them.

Automated test cases will let you sleep soundly at night -- and will likely give you a huge productivity boost too. Assuming you do eventually get around to cleaning up the messy code created in the urgency of the moment, how do you know it still works properly? (For that matter, how do you know it worked right in the first place?) If you have solid tests, though, you can feel confident replacing the hacks in your code with better-thought-out solutions -- and doing things like refactoring, too.

Sorry if I'm preaching to the converted here, but I suspect there are at least some monks lurking around here who haven't yet experienced the thrill of adopting these techniques and seeing them mitigate what could've been a really painful situation...


In reply to Re: Bad Karma = Bad Code by seattlejohn
in thread Bad Karma = Bad Code by frankus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-03-28 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found