Daily using/supporting

Get Firefox browser!
Get Thunderbird!
Get Opera browser!
Get The Gimp!
Get Inkscape!
Get LibreOffice!
Get Videolan!
Get Linux!
Get Mandriva!
Get Joomla!
Hacker Emblem

Archives

Which topics would you like us to cover more?

Latest comments

Latest tweets

about 1 day ago Using REDIPS.drag to add drag and drop to your .Net webapplication #li #dib0 http://t.co/n8zY3s7d
about 7 days ago http://t.co/cknQcDbo #Kindle
about 15 days ago Freedom isn't the ability to choose what to do or say, but the ability to choose what not to do or say #freedom
about 29 days ago http://t.co/61KTQknI #Kindle
12 Apr 2012 Force the use of a networking adapter using C# #li #dib0 http://t.co/ZTJOPzOz
9 Apr 2012 Mandriva 2010.2 and USB devices in Virtualbox http://t.co/fwq9gbHB
9 Apr 2012 Execute a http request to you own site with PHP http://t.co/DIvWPrpd
Home Architecture, security and coding This code should be removed
This code should be removed
Written by Division by Zero   
Tuesday, 04 May 2010 09:03

You probably have seen comments like this. "This code should be removed. (following out commented code)." "This should be re-factored." "This is a hack, we should find a better solution."Trashbin

"Should" is the trigger here. When talking code, there is no should. You'll have to replace should with must.You must re-factor this piece of code. You must delete this code and not just comment it out (you're working under source control, aren't you?)

To keep your code maintainable you have to maintain it. This sound obvious, but there aren't many developers who practice this. Constant re-factoring, keeping the code clean and readable and simplify complexity. You can do this while working on a piece of code. By doing guerrilla re-factoring you are able to keep your software maintainable.

If you are writing new code, keep maintenance in mind. Don't write hacks, you're not rewriting it any time soon. Yes it saves you a few minutes now, but it'll cost you a lot more later on. It's easier to invest a little bit time now: it'll pay back. Re-factoring will cost exponentially more after time.

So: produce clean code now and re-factor wherever you can. This will keep your code maintainable and therefore cheaper. It is a small investment, but it'll give you great benefit.

 

Add comment


Security code
Refresh

Professionals built the Titanic. Amateurs the ark. - Unknown


© 2009 - 2012, Division by Zero

Template based on the empire template by joomlashack 

Valid XHTML 1.0 Strict  Valid CSS!  Creative Commons License
This work by Division by Zero is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.