Gelfand: Digression 1 - So When am I Done Refactoring?

January 19, 2017

There is an elephant in the room around all this factoring which I want to call out before we go any further. In a lot of the worked examples (and solutions) you’ll come across you’ll frequently see comments like “this could be factored further, but we’re not going as it requires techniques that haven’t yet been covered.” But when you’re learning, how do you know when you’ve reached this point in your solution?

Well there is a convention and that is to find the “highest common factor”, and it’s laid out nicely for us over at MathsIsFun. So nicely in fact I’ll just wait here while you head over and take a look.

It also bears repeating the fact that when factoring, there is typically more than one “right” answer, and typically more than one way to get there. That’s when debates about “best” come in, but we’ll leave those until we’re far more au fait with all this.

Gelfand: Digression 1 - So When am I Done Refactoring? - January 19, 2017 - {"name"=>"Andrew Harmel-Law", "github"=>"andrewharmellaw", "twitter"=>"al94781"}