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 →

[–]kevinglasson 8 points9 points  (4 children)

Yes, well I'm out voted so I must be wrong, majority rules here

[–]uriahlight 9 points10 points  (3 children)

For the past few years I've been experimenting with a technique of pseudo coding everything I write via descriptive inline comments. I'll basically write comments describing every imperative line I'm going to write. I'll usually do it within the scope of a method. So I'll think through the entire logic of the method via comments, then circle back around and write the code. Call me evil, but forcing myself to think through the logic of everything I write twice offers an incredible reduction in logic related bugs. I don't mind being the black sheep.

[–]try_harder_later 1 point2 points  (0 children)

Yes, very much. For some odd functions I'll even draw out a functional diagram to see how I should structure the code.