A List Apart

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


Ask Dr. Web with Jeffrey Zeldman

Looking for Love: Standing Out from the Crowd of Web Job Seekers

You have a solid resume, but can’t seem to connect with the right job. Maybe it's not you. Jeffrey Zeldman suggests reconsidering your career niche or refocusing your work persona. It could open fresh hiring tracks just waiting for the right candidate—you.

From the Blog

Career Consultation with Dr. Web—Live

Your career is alive, complex, and trying to grow in the right direction—but finding that path can be confusing. When you don’t know what you don’t know, or need just a nudge to kickstart your next step, a healthy dose of guidance can do the trick. In a live Q&A this December, Jeffrey Zeldman brings “Ask Dr. Web” to ALA events, answering viewer questions in real time with cohost Sarah Parmenter.