Async:

A JavaScript meetup for Brighton & Hove

This Event

Modular JavaScript with RequireJS on Lanyrd

@ The Skiff 6 Gloucester Street, Brighton, BN1 4EW Map of The Skiff
legos by huladancer, on Flickr

In this session, Kyran Dale gives a practical introduction to RequireJS, an open-source library for creating modular JavaScript applications. With RequireJS, code can be organised into separate modules that can be loaded asynchronously in the browser, without polluting the global namespace.

Unlike more traditional programming languages, JavaScript has no built-in ability to import modules of code with protected namespaces. Scripts are strung together on the DOM in a global soup, and namespaces are usually described by the convention of having a single global object contain the functionality for a library or API. Naming collisions and messy code architecture can be the result.

As programmers start to craft large JavaScript libraries and applications, and as JavaScript development moves server-side with projects like Node.js, the need for a way to structure code in a modular form becomes more pressing.

We'll take a look at how to use RequireJS, the questions it raises, some proposed alternatives and the motivation for having modular code shared by the client and server.

RequireJS is an open source project created by Mozilla and Dojo's James Burke and can be forked on GitHub. For more information, see requirejs.org

Previous Event:

View all events

Following Event:

View all events

About:

Async meets twice a month in Brighton & Hove, UK, to learn, discuss and play with JavaScript and related technologies.

We host talks, hack nights, show n' tells and community events, all of which are free. Please sign up to each event you want to attend.

Doors open 7.15pm, main session begins 7.45pm, we end around 9.30pm and continue nearby for an evening social.