08.05.2012, 01:41
(
Last edited by JaTochNietDan; 08/05/2012 at 10:10 AM.
)
Quote:
I generally write hacky code to get something working, then optimise the hell out of it. If I try to do something nice and maintainable the first time, I find myself taking much longer to get a result (no fun there), and skipping the optimisation step, which is probably still necessary once the code is actually functional.
IMO: 1. Get it working. 2. Optimise. 3. Prettify. |
I tend to plan ahead myself these days though and optimize as I'm going along rather than get it working first, I personally find it easier and more efficient instead of going back. I like to spend a lot of time thinking before actually doing it, making a plan in my head of how I'm going to do it.