Want to take your JavaScript knowledge to the next level?

Have you dabbled with JavaScript for a long time but feel that you don’t really know how to get to the next level? Or are you one of the recent converts that till only recently only knew HTML and CSS, but has come to the realization just how cool and funky things you can achieve with JavaScript?

If you want to get really good at JavaScript and definitely move on to the next level, I have something for you to read.

Maybe many of you already read it, or didn’t find the topic as interesting when you saw it (if that’s the case, you seriously need to rethink). My friend Jonathan Snook, who I soon realized is a very smart and competent web developer, recently wrote the outstanding article Objectifying JavaScript for Digital Web Magazine.

It deals with objects, objected-oriented approaches and different ways to write and understand such code. Once you’ve grasped what he’s saying, you can design your JavaScript code/JavaScript objects in a far more professional and efficient manner.

So, go read! And if you don’t get it the first time, read it again, because this is important. This is exactly the sort of thing that separates mediocre web developers from the genuinely talented ones.

7 Comments

  • Chris says:

    Thanks!

  • That article is really sexy. πŸ˜€ I’ve read it when it was released, but you’re right, I should probably read it once or several times again.

  • Thanks for the link! πŸ™‚

  • Robert Nyman says:

    Chris,

    No problem.

    SilentWarrior,

    Do it; it's the real stuff. πŸ™‚

    Jonathan,

    No problem, you're my hero! πŸ™‚

  • Hakan Bilgin says:

    I have seen this article previously and have glanced through it. He has earlier also earlier asked, at his blog, the preferences of developers; "object literal or new keyword".

    Since I read the question, it has bugged me because, to me, it seems wrong in web-context.

    In my opinion and in web-context, JS-objects and functions shouldn't be instantiated. Instead, DOM-objects should be instantiated and global-handlers should take care of event-based execution. Subsequently, DOM-elements can be added/removed/altered without falling into the pitfalls of memory leaks.

    Objects and functions can be instantiated as described but I think beginners especially can make the mistake not to clean up. For this purpose, there are more sutiable OOP-languages than Javascript as it is today.

  • Robert Nyman says:

    Hakan,

    Well, there are definitely better suited languages for it, but taking JavaScript to the object-oriented level can make your web site and structure much better and flexible.

  • Hakan Bilgin says:

    Ok…good tips.

    Thanks.

Leave a Reply to Hakan Bilgin Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.