My favorite refactoring key!


My favorite refactoring key!

Comments

  1. "I deleted a thousand lines of code today. It was a good day."

    ReplyDelete
  2. Generics can do that your code base. The eradication of duplicate scaffolding.

    ReplyDelete
  3. 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!

    Approbed!

    ReplyDelete
  4. Lars Fosdal
    Or sometimes some clever include file trickery. ;)

    ReplyDelete
  5. Udo Sommer If the code editor just would support that better (by directly blending in the code from the include file)

    ReplyDelete
  6. Stefan Glienke I wish it was feasible to write a plugin that did that. Is there a QP for that feature?

    ReplyDelete
  7. 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.

    ReplyDelete
  8. Lars Fosdal Yeah, and if only we had proper generics collapsing in the compiler, that would be 100 times more useful.

    ReplyDelete
  9. Yes, be brave to delete unwanted/unused codes, we have version control system nowadays :)

    ReplyDelete
  10. There are two great (non-Delphi) talks, 

    "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. :-)

    ReplyDelete

Post a Comment