Slashdot Mirror


How to Keep Your Code From Destroying You

An anonymous reader writes "IBM DeveloperWorks has a few quick tips on how to write maintainable code that won't leech your most valuable resource — time. These six tips on how to write maintainable code are guaranteed to save you time and frustration: one minute spent writing comments can save you an hour of anguish. Bad code gets written all the time. But it doesn't have to be that way. Its time to ask yourself if its time for you to convert to the clean code religion."

1 of 486 comments (clear)

  1. Re:That was just terrible... by dkf · · Score: 0, Troll

    Breaking all of those [5 or 6 line segments of functions] into independent functions leaves you with hundreds of 5 or 6 line functions, which is even harder to understand how they interact.
    This is the essence of Ravioli Code. Some people claim that it is good style. Some people are dangerous idiots.
    --
    "Little does he know, but there is no 'I' in 'Idiot'!"