Refactoring

w/ Siman & Thomas

Outils/Formation#load_results


It's going down !


Were we left


Membre > SujetContext

MetasujetDecorator
PackvideomembreDecorator

Were we are now ?


Sandi Metz should be happy ! 

Super clean controller
Super clean view

So, where is the code ?

So, where is the code ?


  • To what objects this button is linked ?
  • Let's look in the models if this is a data-related bug
  • Let's look in the decorator if this is a looking-related bug


Not fully convinced ?


  • It was easy to debug ...
  • ... but I don't understand how the code works ...
  • ... and how or when this method is called ?

well...

SRP FTW !



What next ?



Push to prod ... to continue.

Refactoring w/ siman

By Thomas Petrachi

Refactoring w/ siman

  • 615
Loading comments...

More from Thomas Petrachi