Good C# Habits can Encourage Bad JavaScript Habits

Date
17-18 May 2011 (Add to calendar) GMT
Venue
(Exact location not available) , Washington, US
Cost
Free

It seems that far too many people come to jQuery thinking that their previous C# knowledge will help them be successful at client-side scripting. In many cases, you can be successful with this approach, however, the more JavaScript you write you will inevitably find yourself uncovering strange bugs because you didn't take time to learn JavaScript properly.

This session is targeted for developers that use jQuery, but haven’t invested adequate time to learn some of the foundational JavaScript concepts that differ from C#. If you would like to avoid some of these common mistakes when moving from C#, then please join me as I try to explain some of the differences.

Some of the topics that will be discussed in this session are:

• Having Variables & Functions in Global Scope • Not Declaring Arrays & Objects Correctly • Not Understanding False-y Values • Not Testing & Setting Default Values Correctly • Using the Wrong Comparison Operators • Not Using the for…in Statement Correctly • Misunderstanding Scope in JavaScript • Not Knowing Variable and Function Hoisting • Not Using Closures Correctly or at All Since jQuery is a library that is built with JavaScript and used alongside JavaScript, it is important that you, as a developer, understand what you are doing. jQuery helps alleviate many of the DOM frustrations that you may have, but you should still take time to be proficient as a JavaScript developer. By doing so, it will increase your jQuery code quality, make it more efficient, and easier to maintain.

Speaker Bio: Elijah is a Christian and a family man. He develops at appendTo as a System Architect providing corporate jQuery support, training, and consulting. He is an ASP.NET MVP, ASPInsider, and specializes in ASP.NET MVC and jQuery development. He is passionate about pushing the boundaries of front-end development. In addition to blogging, tweeting, and speaking he's also contributed numerous articles to leading developer publications and was

You might also like...

Comments

Other nearby events

Map

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson