If anything needs to be repeated more than once it becomes a function. Quite possible the easiest way to decide. Either that or when things get too messy to read and I need to split it up into smaller chunks.
You are viewing a single comment's thread from:
That makes a lot of sense, actually. I'll try and follow that going forward. I've also noticed that repeated code lends itself to more errors popping up.
You get the nice and easy part of fixing it once means its fixed everywhere :)