Paul Mendoza C# blog
Monday, December 05, 2005
  Commenting in code
Tonight I was at server class with Chris waiting for class to start and so I decided to show him before class started how the SAJAX worked inside of the Glicky project we've been working on. Since I've spent the last weekend ripping my hair out at times because of SAJAX, I've got a pretty good understanding of how it works and such so I start showing him the way it works and while it now seems pretty simple to me, I realized quickly its actually pretty complex.

Midway through he's like "And Ruby on Rails wouldn't have been better than this?"

"No" I say but then I started thinking, why wouldn't Ruby on Rails have been as good as this. I realize now the reason is that I'd have to learn a whole other language to do the same thing and what I've got now seems to work just fine. Granted, it does seem to have some hiccups if I miss something.

But then Chris notices something else.

"Paul, you don't have one comment." Chris says to me.

I look at it and I'm like "Yeah, there's one." that's when I realized I'd written a whole list of PHP functions and a whole list of Javascript functions and I'd only put in one comment and that comment was only 8 words. My philosophy lately has been to just write things as fast as I can and figure out whet's wrong later. I guess I forgot to include comments because I know what my code does.

At least for now...

Later Chris goes, "You might not need the comments Paul, but I'm going to need them when I'm going over your code."
 
Comments: Post a Comment





<< Home
I am currently an ASP.NET, C# developer working on MangosteenNation.com, a XanGo website for helping people build their businesses. I am also pursuing a degree at CSU San Marcos in Southern California.

XanGo at Mangosteen Nation

Archives
October 2005 / November 2005 / December 2005 / January 2006 / February 2006 / March 2006 / April 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / April 2007 / May 2007 / June 2007 / August 2007 / February 2008 / August 2008 /


Powered by Blogger

Subscribe to
Posts [Atom]