Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LordElectro

Are many programmers mentally ill?

This topic is 6050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve noticed a lot of programmers (myself included) comment code using statements such as // now we load the data into the surface or // calculate our position in the file Shouldn''t it be: // now I load the data into the surface // calculate my position in the file Who is the person/people that we speak to in these comments? Yea, in a commercial project, people might actually read your code, but this trend also applies to code that people never expect anyone but themselves to read. So do those of us that do this have some deep psychological problems?

Share this post


Link to post
Share on other sites
Advertisement
Programmers only comment to explain to other programmers, not to themselves.
I''ve noticed most programmers who code alone can''t stand comments in their code.

Share this post


Link to post
Share on other sites
lol! Yeah, I do this constantly. I''m not sure if I''m speaking from my and other coders point of view, my and users point of view, or my and the computer''s point of view. We''ve been good my precious, here''s a nice new mouse pads fors us. Yes, my precious. Anyway, can''t wait for LOTR''s movie. Now I''m tending toward colder no point of view at all.

// load the data into the surface
// calculate position in the file

Share this post


Link to post
Share on other sites
quote:
Original post by Caffeine
Programmers only comment to explain to other programmers, not to themselves.
I''ve noticed most programmers who code alone can''t stand comments in their code.


I think those people simply haven''t yet had the joy of having to come back to code they wrote half a year ago and have no clue what is going on. Now I put huge time and effort into properly documenting code that another human being will likely never read. So what about those of us lone coders that still comment? Are we simply developing a good habit for when actually getting a programming job, or are we simply whacked out?

Share this post


Link to post
Share on other sites
Oh, and I code for myself as much as for other''s. When you have to render player 2 before player 1 for some nuince of prediction code, that little comment from 3 months ago comes in handy.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The code speaks the truth, the comments are just someones perception of the code.

Force people to learn to read code and forget the comments!
muahhahaha


Share this post


Link to post
Share on other sites
I think both forms are a sign of mental illness actually. Is it the programmer her/himself who is performing the action, or is it the program?

I generally use the third person in my comments, for example:

# this code loads the data into the surface

or

# calculates the current position in the file.

Only use first person when making a note to myself:

# this is an awful hack, I should take another look at this after I get a full night of sleep.

(Also use this as a safety check before checking my code into version control. If I do a search on the module for "hack" or " I ", and get something back, I know that it''s not ready to be checked in.)

I''m actually kind of curious now - is it more common for people to use first person (either single or plural) or third person in their comments? In my experience, I tend to see either third person or no comments at all (unfortunately).

-pwd

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
As for real mental issues.. spending hours alone thinking to yourself doesn''t help you become less introverted... =)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!