Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 733087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:12:59+00:00 2026-05-14T07:12:59+00:00

When I’m writing it? After I got a part done (Single class/function/if-elses)? After I

  • 0
  • When I’m writing it?
  • After I got a part done (Single class/function/if-elses)?
  • After I got the whole thing working?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:12:59+00:00Added an answer on May 14, 2026 at 7:12 am

    The short answer

    The short answer is anytime something is non-obvious relative to whose going to be reading it. If its code that is still in flux so you are the only consumer, just comments for you (hours and days). Ready to check in for others to try out – comments for you and your team (days and weeks, possibly months). Ready for wide release – comments for the immediate and future public (months and years). You have to think of comments as tools, not documentation.

    The long answer:

    • When I’m writing it? – Yes
    • After I got a part done (Single class/function/if-elses)? – Yes
    • After I got the whole thing working? – Yes

    When I’m writing it? – Yes

    Drop comments anytime you hit a place where the code isn’t immediately clear. For example, describe the class when the class name isn’t clear or could be interpreted too widely. Another example is if I’m about to write a non-obvious code block, I’ll first add a comment reminding me of what I want/need. Or if I just added some code and I immediately realized there was a gotcha in there, drop a comment to remind yourself. These comments are implementor comments, less to help future maintainers, but rather to help yourself in the coding process.

    Drop FIXME - explanation and TODO explanations reminders as you go.

    Code is still in flux, so I’m not yet documenting every and all method and parameter.

    After I got a part done (Single class/function/if-elses)? – Yes

    When I’m reasonably done with a method or class, now is the time to review it. Along with checking scopes of methods, ordering methods, and other code cleanup to improve understandability, now’s the time to begin to standardize it against your team standards. Consider what comments are need based on the audience it will be released to (future you is part of the audience too!) Does the class have a header block? Are there non-obvious conditions under which this method should not be called? Does this parameter have any conditions on it, e.g. should not be null?

    Check the FIXME and TODO items – still valid? Any you should address now before moving on?

    These are still notes for you and your team, but the beginnings of standardized notes for future maintainers.

    After I got the whole thing working? – Yes

    Now is the time to review everything and finalize comments against your standards.

    All FIXME and TODO items addressed (fixed or captured as known issue)?

    These notes now are for future maintainers.

    Now the dirty little secret

    More is not always better. Like unit tests, you have to balance use of your tools weighing costs vs benefits. The fact is that a coder can only type so many physical lines per hour – what percent should be comments? A low percentage means I’ve got a lot of code, but its confusing and difficult to understand and use correctly. A high percentage means that, in an hour when someone changes a method signature or redefines an interface, all the time is spent fully commenting every parameters of those methods just got trashed.

    Find the right percentage based on the stability of the code, how long it will live, and how widely it will be released. Not stable yet – minimal comments to help you and your team. Stable and ready for project – fully commented. Public release? – fully commented (check again!) with copyrights (if applicable). As you gain experience, adjust the percentage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.