Posts Tagged ‘JavaScript’
Emulating classical inheritance in JavaScript destroys the purity of the language
I wish I could say that was an exaggeration, but after a lot of thought, I believe that is the current state of the language. Some might consider it progress to push JavaScript that much closer to a pure object-oriented (OO) language, but I think it continues to bring with it false expectations. There are too many other limitations (which is not necessarily a bad thing), and a classical inheritance structure only serves to confuse beginners who are unable to learn JavaScript responsibly.
40+ JavaScript and jQuery resources that will make you a better Web developer
I have been using JavaScript since version 1.1, and learning the language has been a rewarding experience. It probably would have been a more frustrating ordeal had it not been for the hard work and dedication of a few very talented Web developers. More than any other resource over the years, QuirksMode by Peter-Paul Koch was a priceless source of knowledge. However, all of these resources share a common usefulness that is unparalleled elsewhere.
Accessible News Slider plugin for jQuery is making a comeback
After more than a year in retirement, and what I thought would be the final release, Accessible News Slider is back. This is release version 1.4, and I have made some significant improvements. The slider now supports themes, and it can easily be adjusted to slide any number of news items. The CSS, XHTML and JavaScript have all been completely revamped, and even the plugin page got a new look.
I am looking for Mac testers for the most current releases of Safari 2, Firefox 2 and Opera 9. If you could give the news slider a trial run in OSX on those browsers, and then report back your findings it would be appreciated. I would also appreciate feedback from anyone who can test the slider on a screen reader. I am most concerned that it is functioning as described, and that the source code is ordered in such a way that it makes sense.
The facade design pattern in JavaScript
I started to think about design patterns recently while working on a big project. I realized I could probably benefit from one or more of these patterns as the complexity of the client-side portion of my application began to grow. After a little investigation I stumbled across the facade design pattern. This pattern promotes readability by grouping common tasks, and it can simplify a complex API by providing a single point of access. Especially with JavaScript it can help to reduce the size of the code base.
If you can’t make assumptions, then don’t bother with JavaScript
If you have not already, then I suggest you read The seven rules of Unobtrusive JavaScript. There are some great code samples, and solid points of interest. However, there is one rule among the rest that I want to address because it has such lofty expectations. It is the first rule, which states “Do not make any assumptions”, and is subtitled, “JavaScript, the unreliable helper”. This is a rule I must admit that I break every day I am programming on the client-side.
Guest post over at Nettuts on JavaScript, jQuery and XML
Thanks to Jeffrey Way at Nettuts for posting my tutorial Create an Amazon Books Widget with jQuery and XML. If you have not already, head on over and subscribe to the RSS feed. There are some great tutorials each week, and I have enjoyed watching Nettuts progress over the last month.
The JavaScript language limitations that every programmer should learn
If you have used Java as a programmer, then you have likely tried to make comparisons to JavaScript. As comfortable as it is to stick to what you know, it can get you into trouble quickly. After thinking through a problem carefully, you begin programming, only to realize what you want to do is impossible. I thought I would touch on a few of these limitations within JavaScript with the hope that you are spared the same frustrations that I endured.

