diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)

Aug192006

JavaScript Tricks And Good Programming Style

Alexander Kirk has coded some nice JavaScript tips. Snippet from Alexander’s post — “I have been programming for about 10 years now, and I am always longing for improving my code. Throughout time I added a few habbits that I consider to be good practices and increase the quality of my code”.

In a loose series I’d like to point out a few of them. As I am currently mostly programming in JavaScript, I will write most of my samples in that language; also some of the tricks I mention only apply to JavaScript. But most of them apply to most programming languages around.

Here is the list of his tips:

Optional parameter and default value
Parameters Hints
Search JavaScript documentation
The self variable
Reduce indentation amount | read here in detail…

Alexander | ajaxian

JavaScript Tricks And Good Programming Style

Share This Story, Choose Your Platform!

Do NOT follow this link or you will be banned from the site!