JavaScript Coding Guidelines for ASP.NET

Recently for work as part of our sporadic push to create coding standards, I contributed by writing a draft of our JavaScript coding guidelines document. I've probably been the most active developer at work JavaScript and Ajax, and this combined with me having recently finished Douglas Crockford's excellent Javascript: The Good Parts book made me the most likely candidate to do so. Here is what I came up with.

The document is written from an ASP.NET developer's perspective, and since the direction for JavaScript that Microsoft is pushing now is a mix of its own ASP.NET Ajax library and jQuery, those are the libraries I focused on. Also, I didn't write much into strict coding standards per se (i.e. variables should be named and cased this and this way...), but instead focused on general guidance for the JavaScript language and some key best practices.

Here are several resources I used to come up with the standards (these are also in the references section at the end of the document):

Comments

May 26. 2009 06:49

remote workforce

yeah i got this one, thanks for the help

remote workforce

May 29. 2009 12:22

Daniel Meeks

Great stuff, I'm writing a doc control web app using .NET MVC, JQuery, Web Services, and Linq to Object so I will probably reference for guidance.

Daniel Meeks

July 4. 2009 01:29

SEO

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

SEO

July 4. 2009 04:14

Life insurance

Anyone using ASP.NET and Javascript combo should consider this to prevent code injection attacks... ...

Life insurance

July 25. 2009 10:03

cam chat software

Your JavaScript Coding Guidelines are cropping. Keep on developing.

cam chat software

July 30. 2009 13:09

web marketing

Nice article. i’m using jqgrid with asp.net in a project right now and it works great. there are some tweaks you have to do to the serialization/deserialization of json for it to work properly with .net, but everything else is smooth (and faster than flexigrid).

web marketing

August 1. 2009 18:19

online poker

Hi,

Good post....What is the procedure to connect MYSQL with ASP.NET?

online poker

August 5. 2009 10:00

emo hair

Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. Keep up your work.

emo hair


emo hair

August 6. 2009 09:44

Antivirus firewall

Hi,

Nice article....What is the procedure to connect MYSQL with ASP.NET?

Antivirus firewall

August 8. 2009 14:13

Best antivirus

Hi,

Good post.....how to display information from database in pop up using AJAX in asp.net ?

Best antivirus

August 13. 2009 08:07

asp.net books

thanks for this, its hard to know what the best way to use ajax.net and jquery together

asp.net books

August 23. 2009 18:44

Auto Insurance for College Students

Anyone using ASP.NET and Javascript combo should consider this to prevent code injection attacks

Auto Insurance for College Students

August 28. 2009 11:40

costa mesa web designers

You are a real professional and I will show your site to my developers.

costa mesa web designers

September 2. 2009 05:42

ugg boot

Thanks for the coding guidelines - keep up the good work.

ugg boot

September 5. 2009 10:46

Philadelphia cosmetic surgery

Many people aren't really that familiar with Javascript and Asp. Net. Thanks a lot for the information. It was really of great help.

Philadelphia cosmetic surgery

September 9. 2009 01:09

buy laptop

How to make asp.net applications work without visual studio platform?

buy laptop

September 12. 2009 02:45

Hemorroids

I love your illustrations used. Keep up the excellent work.

Hemorroids

September 22. 2009 22:35

weight loss pills

There is very good information here. The references are extremely useful. Although, I think this is a little over my head as a beginning IT student. Thanks for sharing!

weight loss pills

September 25. 2009 00:41

wine club

Nice post to hang on..I really loved it the way of the stuff provided in this article..This has given very useful information..

wine club

September 25. 2009 18:04

Tiffany Bracelets

Nice article. i’m using jqgrid with asp.net in a project right now and it works great. there are some tweaks you have to do to the serialization/deserialization of json for it to work properly with .net, but everything else is smooth (and faster than flexigrid).

Tiffany Bracelets

September 26. 2009 13:14

fap revolution review

Ya, I am newbie for web designing, even though I am into SEO field for past 1 year, I have no much ideas about web design, your post helps me to get more ideas. Thxs for share..

fap revolution review

September 28. 2009 23:23

sugar daddy dating

Thanks for the help dude.

sugar daddy dating

September 29. 2009 21:58

Designer handbags

When the fight begins <a href="http://www.supershandbag.com/">luxury handbags on sale</a> within himself, a man's worth something <a href="www.supershandbag.com/...o-c-3.html">jimmy choo handbags</a>.If a <a href="www.supershandbag.com/...-46.html">bottega veneta</a> jewel falls into the <a href="http://www.supershandbag.com/">cheap handbags</a> mire, it remains as precious as before; and though dust should ascend to <a href="www.supershandbag.com/chanel-c-8.html">chanel handbangs</a> heaven, its former worthlessness will not altered.

Designer handbags

September 29. 2009 21:58

Designer handbags

When the fight begins luxury handbags on sale within himself, a man's worth something jimmy choo handbags.If a bottega veneta jewel falls into the cheap handbags mire, it remains as precious as before; and though dust should ascend to chanel handbangs heaven, its former worthlessness will not altered. http://www.supershandbag.com/

Designer handbags