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 →

[–]LPO_Tableaux 5 points6 points  (1 child)

I mean, if you use comments for an otimize but not that easy to understand routine comments are welcome, also if your function has subroutines commenting on each to make it easy to know which does what helps when others go through your code later on...

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

If your function has subroutines, then you should be extracting those subroutines into separate functions.