Archive for the ‘javascript’ category

JavaScript Best Practices for Beginners

September 8th, 2012 Leave a comment 6 comments
JavaScript Best Practices for Beginners

When you are just learning a new programming language it can be daunting to think you may be picking up bad habits or not learning something the right way. With JavaScript, there are a lot of quirks and different ways to accomplish things that you may not realize. In this article I am going to discuss some best practices for beginners so you can start gaining knowledge of JavaScript without having to worry you are doing something wrong. 1. Remove the “language” attribute from the <script> tag. Years ago, the language attribute was required on the <script> tag to ensure… View full post »

JavaScript Tricks You May Not Know

August 29th, 2012 Leave a comment 15 comments
JavaScript Tricks You May Not Know

JavaScript has been around for a long time now and on the surface it shares some similarities with Java and C and is a fully-functional Object-Oriented language. However, at the core, JavaScript is more like a functional programming language with some obscure twists. In this article I will show you some tips and techniques you may not be aware of that simulate C-like features and help you write more powerful JavaScript. Deeply Nested Objects JavaScript can do operations on a deeply nested object but if you need to do this, it is better to store it as a reference in a temp… View full post »