Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Usually I first get a high level model working either in my head or on paper/whiteboard. I don't really care about the details, is more a general idea of the algorithm (iterative? recursive?), data access (I will need this, go to a cache or database?) and fitting it in the current environment.

Then I start working to code it. I start with the main functionality, I wrote it as I want it to be inventing the required methods. When I'm happy with it I code the required extra-methods. Write tests for them. Write tests for the main functionality. When it works as excepted, a couple iterations of reviewing and re-factoring.

I'm not sure about the details about how I code the methods, it seems I'm so focused doing it I cannot recall the how. (I guess many of us have the sensation of "OMG! How I did it?" or seeing we've wrote much more code than we thought).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: