Archives
- ► 2012 (8)
- ► 2011 (157)
- ► 2010 (174)
- ► 2009 (12)
Which topics would you like us to cover more?
Latest comments
- How to reset you Kindle
3, eve...
Thanks for this article and the related "Inside th...
By H K - How to reset you Kindle
3, eve...
How do you drain power on the board? I dont have r...
By Grace - How to reset you Kindle
3, eve...
You're welcome!
By Bas - How to reset you Kindle
3, eve...
Thanks man....removing the battery worked like a c...
By DaveMan - nHapi
example
Hi Slypete, Thank you for your comment. This way w...
By Bas - nHapi
example
Hello, Employing .Net dynamics, one can implement ...
By slypete - Implementing MLLP in C#
Hi Mayura, I'm not sure I understand your question...
By Bas - Implementing MLLP in C#
I have used SSL stream to secure the MLLP transact...
By Mayura
Latest tweets
| 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." "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. Tags:
|
Professionals built the Titanic. Amateurs the ark. - Unknown





