Refactoring or gaining insight?
https://www.flickr.com/photos/julianpartridge/8468711416/

Refactoring or gaining insight?

Most developers have a natural resistance to appreciate someone else's code. This is especially true when developers have to maintain that code. I think we use refactoring partly to understand the code structure and it's intentions. By making small changes, adding tests, debugging, you learn to deal with the black box. Since you don't want to waste time, you enhance the code.

The big question I have: is the enhancement an improvement to your colleague? The funny thing is that after a couple of months, you most likely want to refactor your own code as well. So are we refactoring to improve the software or to understand the software?

Of course I'm not questioning the value of SOLID principles, test driven development, etc. But the only way to understand code is to change it, right?

要查看或添加评论,请登录

Theo Albers的更多文章

  • .NET 8 upgrade

    .NET 8 upgrade

    Today I decided it was time to upgrade one of our @dotnet projects from .NET7 to .

    1 条评论
  • Tussenstand 2020

    Tussenstand 2020

    Het is vandaag Bevrijdingsdag en daarom laat ik los. Ik laat los dat we begin januari een reis naar Thailand boeken…

    3 条评论
  • Oracle Soar to the Cloud...

    Oracle Soar to the Cloud...

    We all know upgrading a standard ERP implementation is hard, because of the unique integrations and customizations…

    1 条评论
  • Cross platform Edge?

    Cross platform Edge?

    After having installed W10 Fall Creators Update and Edge on Android, I gave continuum a spin. Soon I raised my eyebrows…

  • Mobile development, business decides

    Mobile development, business decides

    Once the business has identified the need to deliver functionality on mobile devices, the next question emerges: how…

  • Internet of Things - beveiliging

    Internet of Things - beveiliging

    Je wordt op een morgen wakker en dan is het zover: ook bij jou wordt het stuur plus airbag uit je auto gestolen. Ik…

  • SDK + Developer != AI

    SDK + Developer != AI

    IBM Watson, Microsoft Azure Machine Learning, Amazon Machine Learning, Google Cloud Machine Learning, er is geen tekort…

    1 条评论
  • Would I buy the Surface Book again?

    Would I buy the Surface Book again?

    November 2015, getting ready for my trip to Redmond. Last check: do they have the Surface Book in stock at the…

    6 条评论
  • Abstractions

    Abstractions

    How long until Google Translate For Programming Languages takes over? Here https://elementscompiler.com/elements/silver/…

    1 条评论

社区洞察

其他会员也浏览了