How do you organize yourself before starting to write code? What works and what doesn't? Why? Or, is it just better to start coding and figure it all out on the fly?
Ask HN: Before I write a single line of code, I
1–10 of 27 posts
Re: Ask HN: Before I write a single line of code, I
#2Thankfully nowadays this is basically git init for me. In the past it involved much more.
Re: Ask HN: Before I write a single line of code, I
#3Re: Ask HN: Before I write a single line of code, I
#4Re: Ask HN: Before I write a single line of code, I
#5Re: Ask HN: Before I write a single line of code, I
#6Re: Ask HN: Before I write a single line of code, I
#7Yes it is. Write code towards the solution and see what it leads you. Then you might get into a "writers block" and can't decide whether data structure A or B is best. So you think about it some, decide which one you like and write more code. Then you might find out that you thought A was best but it turns out B was better. So you refactor your code base, write some more code and so on.
Re: Ask HN: Before I write a single line of code, I
#8The only thing I can suggest is that you put your notes aside, set up a repo, branch and just write some code.
Re: Ask HN: Before I write a single line of code, I
#9So now, whether it's on the job or on my home project time, I get the git repo and build scripts squared away with some awesome testing framework that constantly watches the file system and rebuilds and running my test suite as I'm working on the code. This way I can do TDD and get higher quality code more consistently.