Wednesday, April 05, 2006

How to Comment AJAX Code

Lately I've been perusing some of Oracle's Javascript code from its ADF Faces. I see that it's extraordinarily well commented.

I'm looking at it in OpenOffice, so just for fun, I tell OOo to do a regex-search on

//.*$

and globally replace that with zilch, thereby wiping out all comment lines.

The result? With comments, Oracle's Core.js file is 140 KB. Without comments: 95 KB. Imagine: almost 50K of comments in a 140K file.

I don't think I've ever seen such well-commented code in any language, ever.

Kas

6 comments:

  1. Why does all languages use a different symbols. They need to be unified! Check this article for mroe

    ReplyDelete
  2. Now and again friends or maybe family can be using this services of any cleaning company that they may recommend. By means of asking these individuals, one might get an idea if at all a good service agency or definitely not. It is additionally a smart idea to ask many people if they be aware of the clean-up business found on the internet. Most commonly it is good to take into consideration the judgment of many people and for getting their tips before deciding which clean-up company to settle on. deep cleaning services dubai

    ReplyDelete
  3. This is actually similarly a brilliant substance I truly enjoyed checking The Falcon and The Winter Soldier Baron Zemo Black Trench Coat. This isn't constantly which I have potential to work out an issue.

    ReplyDelete
  4. Are you looking for Best Assignment Writers ? Then you need to visit this site Law Assignment Writing Service and get help.

    ReplyDelete
  5. Some sort of full-time house maid is trained to face versatile work. Starting from attending to the elderly people or children in your residense, they are devoted to keeping your job life and lifestyle in harmony. They assist you with preparing meals, cleaning in addition to organizing the property, taking health care of children, helping people with washing laundry, etc. Entire, you are able to spend time with all your family, while not having to worry about anything.

    ReplyDelete
  6. you can get help from our affordable writing services online And improve your overall grades.
    All Assignment Help

    ReplyDelete

Add a comment. Registration required because trolls.