Geeks With Blogs

News

Series

Add to Technorati Favorites


An Archived Managed World This blog has moved to http://www.managed-world.com/blog

Rory Blyth said so!!!! Rory has made a post about coding standards over at his site. Definitely a must read. This is one of my biggest pet peeves. I guess you could say that I am an extremely, A-R coder. Just ask one of my co-workers and they would definitely vouch for that.

Sometimes I swear that there should be some kind of programming restrictions put in place. It doesn't have to be anything complicated, just something like “You can only program if your IQ is higher than the number of letters in the Roman alphabet”. Sometimes I am flabbergasted at what I see in code.

A quick addition I will make onto what Rory said is the following style to comment an entire section of VBScript out

If 0 Then

code here is commented out but be careful because you can't tell when there are 400 lines of code between the If and the End If.

End If

Posted on Thursday, December 18, 2003 12:43 PM | Back to top


Comments on this post: And that's the bottom line cause.....

# re: And that's the bottom line cause.....
Requesting Gravatar...
I think that commenting practice is bad. I understand what you're going for, but to surround a block of text with an unexecutable IF block shouldn't be the answer. I'd say put ticks everywhere. Adding a tick is not that hard, and, if you have 400 consecutive lines of comments, you're doing something wrong, anyway.
Left by Michael Flanakin on Dec 19, 2003 4:40 AM

# re: And that's the bottom line cause.....
Requesting Gravatar...
Yeah, that's what I think. I understand where this behavior comes from in respect to mainframe programming but I still think a lot of it comes from pure laziness. Even in Interdev, where there was no mass commenting tool, I would perform all the steps needed to refactor the section into it's own function, and then comment the one-line function call. geez!
Left by Jason Olson on Dec 19, 2003 9:07 AM

Your comment:
 (will show your gravatar)


Copyright © Jason Olson | Powered by: GeeksWithBlogs.net