3 ms·
Have you considered that you can structure your code with something else than "header comments"? For example, if you find that you need to split a function into
by kyberias 9y ago
Have you considered that you can structure your code with something else than "header comments"? For example, if you find that you need to split a function into multiple steps and you end up adding "header comments", you could also split that code into subroutines and name those functions accordingly?
Also, I usually find that just adding one or two line feeds between code blocks helps to add enough structure.
- w4rh4wk5 9y agoI often consider that in languages like Python or Haskell. There you can easily do this in very few lines of code and with limited scope (inner function, Haskell's where). In C this is often too much overhead in my opinion.