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

  • Home
  • SEARCH
  • 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 74071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:18:03+00:00 2026-05-10T20:18:03+00:00

I have a colleague who insists that his code doesn’t need comments, it’s "self

  • 0

I have a colleague who insists that his code doesn’t need comments, it’s "self documenting."

I’ve reviewed his code, and while it’s clearer than code which I’ve seen others produce, I still disagree that self-documenting code is as complete and useful as well commented and documented code.

Help me understand his point of view.

  • What is self documenting code
  • Can it really replace well commented and documented code
  • Are there situations where it’s better than well documented and commented code
  • Are there examples where code cannot possibly be self-documenting without comments

Maybe it’s just my own limitations, but I don’t see how it can be a good practice.

This is not meant to be an argument – please don’t bring up reasons why well commented and documented code is high priority – there are many resources showing this, but they aren’t convincing to my peer. I believe I need to more fully understand his perspective to convince him otherwise. Start a new question if you must, but don’t argue here.

Also, those of you who are arguing against self documenting code -this is primarily to help me understand the perspective (ie, positive aspects) of self-documenting code evangelists.

  • 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. 2026-05-10T20:18:03+00:00Added an answer on May 10, 2026 at 8:18 pm

    In my opinion, any code should be self-documenting. In good, self-documented code, you don’t have to explain every single line because every identifier (variable, method, class) has a clear semantic name. Having more comments than necessary actually makes it harder (!) to read the code, so if your colleague

    • writes documentation comments (Doxygen, JavaDoc, XML comments etc.) for every class, member, type and method AND
    • clearly comments any parts of the code that are not self-documenting AND
    • writes a comment for each block of code that explains the intent, or what the code does on a higher abstraction level (i.e. find all files larger than 10 MB instead of loop through all files in a directory, test if file size is larger than 10 MB, yield return if true)

    his code and documentation is fine, in my opinion. Note that self-documented code does not mean that there should be no comments, but only that there should be no unnecessary comments. The thing is, however, that by reading the code (including comments and documentation comments) should yield an immediate understanding of what the code does and why. If the ‘self-documenting’ code takes longer to understand than commented code, it is not really self-documenting.

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

Sidebar

Ask A Question

Stats

  • Questions 85k
  • Answers 85k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check your Fonts and Colors preferences. Each color designates a… May 11, 2026 at 5:09 pm
  • Editorial Team
    Editorial Team added an answer PHPUnit_Framework_TestCase::$name gets set in the TestCase constructor, so you could… May 11, 2026 at 5:09 pm
  • Editorial Team
    Editorial Team added an answer First of all, many string functions – including strip and… May 11, 2026 at 5:09 pm

Related Questions

I have a colleague who insists that his code doesn't need comments, it's "self
I have a colleague who is looking into opcode caching/Zend Acceleration (I've always assumed
I have a situation where in a web application a user may need a
I have a Java project which will include a number of large SQL statements
I have a Windows forms project (VS 2005, .net 2.0). The solution has references

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.