Script Junkie: MooTools Class Creation and Organization

By  on  

My new blog post has debuted on Script Junkie: MooTools Class Creation and Organization!!

As web applications aim to become more dynamic, responsive, and feature-filled, they will inevitably need to include more JavaScript. As the amount of code increases, there is also an increase in the need to keep that code organized, extendable, and maintainable. The MooTools JavaScript framework provides you just that. This post will cover the basics of creating and organizing MooTools classes so that your web application's JavaScript will stay organized and extendable for years to come.

Click here to read the post and please vote for it on Reddit!

Recent Features

  • By
    How I Stopped WordPress Comment Spam

    I love almost every part of being a tech blogger:  learning, preaching, bantering, researching.  The one part about blogging that I absolutely loathe:  dealing with SPAM comments.  For the past two years, my blog has registered 8,000+ SPAM comments per day.  PER DAY.  Bloating my database...

  • By
    Serving Fonts from CDN

    For maximum performance, we all know we must put our assets on CDN (another domain).  Along with those assets are custom web fonts.  Unfortunately custom web fonts via CDN (or any cross-domain font request) don't work in Firefox or Internet Explorer (correctly so, by spec) though...

Incredible Demos

  • By
    Record Text Selections Using MooTools or jQuery AJAX

    One technique I'm seeing more and more these days (CNNSI.com, for example) is AJAX recording of selected text. It makes sense -- if you detect users selecting the terms over and over again, you can probably assume your visitors are searching that term on Google...

  • By
    Introducing MooTools ScrollSpy

    I've been excited to release this plugin for a long time. MooTools ScrollSpy is a unique but simple MooTools plugin that listens to page scrolling and fires events based on where the user has scrolled to in the page. Now you can fire specific...

Discussion

  1. Excellent tutorial David…

  2. nice entry David! bookmarked!

  3. Fantastic! Thank you

  4. Patric Nordmark

    Ive been reading blogposts from your blog from time to time.
    And I have to say this must be youre best article written so far.

    It really gives a good introduction, and makes people who are familiar with OOP immediately understand that there’s a really good alternative to using jQuery. (nothing against jQuery)
    Something that many developers out there are to lazy to even consider.

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!