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

Ask Dr. Web with Jeffrey Zeldman

If Ever I Should Leave You: Job Hunting For Web Designers and Developers

At the start of your career, you’re excited to have any job—but at some point you wonder if there’s a better job out there for you. Is it youthful restlessness, or are you learning to recognize the warning signs of career stagnation? There’s no sure-fire way to tell—but if you’ve stopped growing or feeling any passion for the work, it’s probably time to let go. So how do you find a better job without making it worse with your current colleagues and in your bank account? Jeffrey Zeldman has some tried-and-true tips to make your transitions smoother.

From the Blog

Developing Empathy

Everyone talks a lot about empathy, but distilling that theory-driven talk into practices for our day-to-day work can seem daunting. Susan Robertson shows how she's been able to practice empathy for users as a developer.

On Our Radar: Four-and-a-Horse Stars

This week's recommended reading list has bad news for icon fonts: we learn from Seren Davies' presentation that they present accessibility issues for people with dyslexia. Plus: our favorite tech TinyLetter, the NYSE computer glitch, an animal gif, and more.