3 ms·
This was one lesson I had to learn to progress faster both at home and at work. Start building now and don't be afraid to refactor later. The caveat to that i
by godshatter 9y ago
This was one lesson I had to learn to progress faster both at home and at work. Start building now and don't be afraid to refactor later. The caveat to that is to refactor frequently as things progress. If a function is now misnamed because it's code changed too much, rename it. If your carefully thought out code structure just isn't going to work, change it now before it's a major pain to do so. Don't assume you will get back to it later, you won't.
I don't know how others work, but I had a tendency to try to code the whole thing in one go. Now I build the skeleton and start fleshing it out piece by piece, with an end goal in mind. It's very iterative. Do the next thing, whatever it is, large or small. Build and test. Refactor if needed. Rinse and repeat. I have to have it roughed out before-hand, but it will almost always change a bit as I get into the nuts and bolts of it unless it's trivial. Now I adapt as I go. The design reveals itself :)