Vote UpVote

The Value of Code Reviews

Rob's Technology Corner – I have recently seen code that that looked like this. try ... Lines of Code here ...exceptend;or procedure TCustomClass.MethodDoThis()begin ... 20 Lines of code ...end; procedure TCustomClass.MethodDoThis2()begin ... Same 20 Lines of code with slight modification ...end; Both produced code that may have passed end user testing. But both cause long-term problems. The first example was just hiding all exceptions, a bad practice. After the code review, it was determined that the try | except block was not even needed. The second example was refactored to reduce the need for duplicate code. ...
Favorite? Off-Topic? Robert Love @ 2017-03-28 17:04


Visits: 730
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Bruce McGee
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)