I always say: If you are refactoring code and you see as the code is every time, more and more simple without lost functionality, you are in the right path!
Stefan Glienke Yeah, that's right. Had some hard times to get my UnicodeString ShortString substitute to work like supposed. This feature definitely would have helped a lot.
that you might enjoy. In the first, Jack Diederich's company gets a commercial library that has 14 classes and in the end it gets refactored down to 3 functions, 0 classes. :-)
"I deleted a thousand lines of code today. It was a good day."
ReplyDeleteGenerics can do that your code base. The eradication of duplicate scaffolding.
ReplyDeleteI always say: If you are refactoring code and you see as the code is every time, more and more simple without lost functionality, you are in the right path!
ReplyDeleteApprobed!
Lars Fosdal
ReplyDeleteOr sometimes some clever include file trickery. ;)
Udo Sommer If the code editor just would support that better (by directly blending in the code from the include file)
ReplyDeleteStefan Glienke I wish it was feasible to write a plugin that did that. Is there a QP for that feature?
ReplyDeleteStefan Glienke
ReplyDeleteYeah, that's right. Had some hard times to get my UnicodeString ShortString substitute to work like supposed.
This feature definitely would have helped a lot.
Lars Fosdal Yeah, and if only we had proper generics collapsing in the compiler, that would be 100 times more useful.
ReplyDeleteYes, be brave to delete unwanted/unused codes, we have version control system nowadays :)
ReplyDeleteThere are two great (non-Delphi) talks,
ReplyDelete"Stop Writing Classes"
https://youtu.be/o9pEzgHorH0
and
"Deleting Code Is Hard And You Should Do It"
https://www.youtube.com/watch?v=Ajln82vwycs
that you might enjoy. In the first, Jack Diederich's company gets a commercial library that has 14 classes and in the end it gets refactored down to 3 functions, 0 classes. :-)