Book

Clean Code in JavaScript

Clean coding is an important skill in the portfolio of any developer willing to write reliable and intuitive code. This book presents principles, patterns, anti-patterns, and practices supported by use cases and directions for writing clean JavaScript code. It helps you refactor your legacy codebase in JavaScript and modernize your web apps.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

18h16m

Language

English

About Book

Who Is This Book For?

This book is for anyone who writes JavaScript, professionally or otherwise. As this book does not relate specifically to any particular framework or environment, no prior experience of any JavaScript web framework is required. Some knowledge of programming is assumed to understand the concepts covered in the book more effectively.

Book content

chapters 18h16m total length

Setting the Scene

The Tenets of Clean Code

The Enemies of Clean Code

SOLID and Other Principles

Naming Things is Hard

Primitive and Built-In Types

Dynamic Typing

Operators

Parts of Syntax and Scope

Control Flow

Design Patterns

Real-World Challenges

The Landscape of Testing

Writing Clean Tests

Tools for Cleaner Code

Documenting Your Code

Other Peoples' Code

Communication & Advocacy

Case Study

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required