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 […]

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