I'm fairly new to programing, though I have been in the computer industry
That shows. Go off and spend a few years learning how to program then
come back with some useful comments. In the meantime shut your
cake-hole.
Welcome to the newsgroup Bruce! I'm sure this goes without saying, but
this guy is nothing more than a wannabe programmer who gets a rush out
of flaming others. So believe it or not your opinions are welcome here,
dispite what this "Master Programmer" says. I promise - most of us here
are nice
Oh and Master Programming, if you want to prove you're not a wannabe
please provide us with some proof - perhaps posting your real name, and
some projects and companies you've worked on/for would help. As for
right now all you are is talk, and nothing else.
Good code is easy to read - bad code needs comments - end of story
You know, I would love to see how you pull this off when dealing with
complex problems. Again, do you even have any of your source code
published anywhere that we could take a look at? And I don't mean small
"Hello World" programs or database frontends, I want to see something
complex - something that we meager programmers would "need" to use
comments for.
As far as my opinion on the issue, I dislike using comments inside my
routines, and use them only sparingly (like complicated loops or some
API calls). Placing comments inside the procedure itself (imo) makes it
hard to follow whats going on in the code (mainly from switching from
the code reading mindset to the english reading mindset) To me, using
the '''<Summary>...></Summary> tags on any routine that does something
out of the ordinary is a great way to let others (or yourself 6 months
later) know immediately what the purpose is.
Any programmer can figure out any code if he/she is given enough time.
If that same programming is given good comments they will be able to
figure that same code in much less time. This is what comments are for
- they are not excuses for bad code, they are for getting others up to
speed on the code faster. Why would you force someone to read through a
page of code to figure out what is going on when one or two lines of
comments code explain it? The time saved in not reading through the
page of code is more enough reason to include well structured comments.
Thanks,
Seth Rowe