Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Zen and Art of Refactoring

Lucas Mazza
September 24, 2016

The Zen and Art of Refactoring

Refactoring is often seen as a process where we make bad code better by waving our wands and casting our secret spells while facing our editors, which usually happens when things are on fire and the pressure is on.

Changing software should be easier and not scary, and one of the first steps to do it is not to try to write future-proof code, but we can adopt different steps to think about the changes we want to do and how we can do them.

In this talk we will discuss how we can approach the code to-be-changed and see our refactoring tasks as a common transformation process instead of a rescue mission and different questions we should ask ourselves before picking Design Patterns or architectural jargon for the changes we want to do on our software.

Lucas Mazza

September 24, 2016
Tweet

More Decks by Lucas Mazza

Other Decks in Technology

Transcript

  1. Bug Fixes Novas Features Prioridade Justin Searls - Surgical Refactors

    http://blog.testdouble.com/posts/2016-09-16-surgical-refactors-with-suture.html Custo/Risco
  2. Bug Fixes Novas Features Testes Prioridade Justin Searls - Surgical

    Refactors http://blog.testdouble.com/posts/2016-09-16-surgical-refactors-with-suture.html Custo/Risco
  3. Bug Fixes Novas Features Testes Refactoring Prioridade Justin Searls -

    Surgical Refactors http://blog.testdouble.com/posts/2016-09-16-surgical-refactors-with-suture.html Custo/Risco
  4. Bug Fixes Novas Features Testes Refactoring Prioridade Justin Searls -

    Surgical Refactors http://blog.testdouble.com/posts/2016-09-16-surgical-refactors-with-suture.html Custo/Risco
  5. Bug Fixes Novas Features Testes + Refactoring Prioridade Custo/Risco Justin

    Searls - Surgical Refactors http://blog.testdouble.com/posts/2016-09-16-surgical-refactors-with-suture.html
  6. “There’s so much talk about the system. And so little

    understanding.” Robert M. Pirsig Zen and the Art of Motorcycle Maintenance: An Inquiry Into Values
  7. Nomeie e renomeie sempre que precisar Guarde o jargão técnico

    de patterns para APIs privadas Evite sinônimos
  8. Nomeie e renomeie sempre que precisar Guarde o jargão técnico

    de patterns para APIs privadas Evite sinônimos Nomenclatura é um problema fullstack: models, controllers, views, CSS, etc…
  9. Nomeie e renomeie sempre que precisar Guarde o jargão técnico

    de patterns para APIs privadas Evite sinônimos Nomenclatura é um problema fullstack: models, controllers, views, CSS, etc… Pode parecer difícil, mas dá resultado
  10. “Toxic workplaces and processes are much more responsible for ball

    of mud Rails apps than Active Support. Maybe we should try fixing those?” Andrew White (@pixeltrix) https://twitter.com/pixeltrix/status/734613266094301185
  11. “Peace of mind produces right values, right values produce right

    thoughts. Right thoughts produce right actions and right actions produce work which will be a material reflection for others to see of the serenity at the center of it all.” Robert M. Pirsig Zen and the Art of Motorcycle Maintenance: An Inquiry Into Values
  12. “What we call workability of the machine is just an

    objectification of this peace of mind.” Robert M. Pirsig Zen and the Art of Motorcycle Maintenance: An Inquiry Into Values
  13. “organizations which design systems ... are constrained to produce designs

    which are copies of the communication structures of these organizations” Conway’s Law
  14. 340 360 380 400 420 Jul Ago Set Out Nov

    Dez Code Smells - acme-co/webapp
  15. 340 360 380 400 420 Jul Ago Set Out Nov

    Dez Code Smells - acme-co/webapp
  16. 340 360 380 400 420 Jul Ago Set Out Nov

    Dez Code Smells - acme-co/webapp powered by ebert
  17. Pamela Vickers - Your Company Culture is 'Awesome' (But is

    'Company Culture' a lie?) https://www.youtube.com/watch?v=h1UayuSXBcg
  18. “when this day is over and you look at how

    little you have accomplished - do not be bothered, it just means you get to do it again.” Austin Kleon
  19. “Real refactoring is comfortingly predictable, and saves brainpower for peskier

    challenges.” Sandi Metz & Katrina Owen - 99 Bottles of OOP