Using table-of-contents in code?

Posted by AareP on Stack Overflow See other posts from Stack Overflow or by AareP
Published on 2010-03-13T15:22:37Z Indexed on 2010/03/13 15:25 UTC
Read the original article Hit count: 297

Do you use table-of-contents for listing all the functions (and maybe variables) of a class in the beginning of big source code file? I know that alternative to that kind of listing would be to split up big files into smaller classes/files, so that their class declaration would be self-explanatory enough.. but some complex tasks require a lot of code. I'm not sure is it really worth it spending your time subdividing implementation into multiple of files? Or is it ok to create an index-listing additionally to the class/interface declaration?

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about tableofcontents