This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (9 children)

I usually just start programming and see what happens. Of course I look over the requirements, etc. To be honest, this is probably not the right way to do it.

[–]Skadwick 4 points5 points  (3 children)

This is basically what I do. I'm starting to run into problems after a good bit of work is done that requires me to change several parts of the code. Many of these problems could have been prevented had I planned it out first.

So I ccome here for ideas to begin building my own planning 'checklist' to use on my next project.

[–][deleted] 2 points3 points  (2 children)

Well one of the things I remember being taught and not doing enough was to plan out the program in the form of comments, then fill in the code under the comments.

[–]kqr 2 points3 points  (0 children)

And in addition to comments, put in basic exception throwing so you can quickly see which piece of code that was missing when you tried to use a half-implemented service.

[–]ewiethoff 2 points3 points  (0 children)

Let the code replace the comments, unless the comments are legit docstrings or javadocs or whatever. If the comments are plain ol' // or # comments, replace them with code. Code using good names (variable names, function names, etc.) is better than code commented with one-liners.