A List Apart

Menu
Issue № 375

The care and feeding of JavaScript.

The Design of Code: Organizing JavaScript

by Anthony Colangelo · 31 Comments

Well-designed code is much easier to maintain, optimize, and extend, making for more efficient developers. Three high-level, language-agnostic aspects of code design are key to achieving this nirvana: system architecture, maintainability, and reusability. All three may be attained via the module pattern, whose extensible structure lends itself to a solid system architecture and a maintainable codebase. Anthony Colangelo shows how to craft our code into well-organized components that can be reused in projects to come.

Writing Testable JavaScript

by Rebecca Murphey · 32 Comments

As our JavaScript takes on more and more responsibilities, we need a reliable codebase—one that is thoroughly tested. Integration tests focus on how the pieces of an application work together, but don’t tell us whether individual units of functionality are behaving as expected. That’s where unit testing comes in. And we’ll have a hard time writing unit tests until we start writing testable JavaScript. Rebecca Murphey explains how to save time in the long run by writing cleaner application code and testing, testing, testing.

More from A List Apart

Columnists

Rachel Andrew on the Business of Web Dev

Software Audits for the Tiny Business

Routine software audits sound like just about the most boring thing in the world. But losing access to a DNS server, missing important alerts from a developer, or paying for a forgotten service are adventures nobody needs. Often, a contractor or an employee sets up an account or buys software for company use. When that person moves to another role, important license or login information can get lost in the shuffle. Rachel Andrew wants you to love the drab old software audit. It’s your best ally for preventing nasty surprises.

From the Blog

Feedback Phases and Personas

You want feedback in the early stages of any project, but how can you make sure you're getting the most out of it? Anthony Colangelo recommends a five-stage feedback process to gather input from unique feedback personas every step of the way.

On Our Radar: Precious Humans

There are plenty of links and a minimum of one (1) gif awaiting you, as always, in this week's On Our Radar. But first, we want to talk about someone who has inspired all of us: Molly Holzschlag, an influential web standards champion and dear friend.