Jump to ratings and reviews
Rate this book

Clean Code in JavaScript: Develop reliable, maintainable, and robust JavaScript

Rate this book
Get the most out of JavaScript for building web applications through a series of patterns, techniques, and case studies for clean coding Building robust apps starts with creating clean code. In this book, you'll explore techniques for doing this by learning everything from the basics of JavaScript through to the practices of clean code. You'll write functional, intuitive, and maintainable code while also understanding how your code affects the end user and the wider community. The book starts with popular clean-coding principles such as SOLID, and the Law of Demeter (LoD), along with highlighting the enemies of writing clean code such as cargo culting and over-management. You'll then delve into JavaScript, understanding the more complex aspects of the language. Next, you'll create meaningful abstractions using design patterns, such as the Class Pattern and the Revealing Module Pattern. You'll explore real-world challenges such as DOM reconciliation, state management, dependency management, and security, both within browser and server environments. Later, you'll cover tooling and testing methodologies and the importance of documenting code. Finally, the book will focus on advocacy and good communication for improving code cleanliness within teams or workplaces, along with covering a case study for clean coding. By the end of this book, you'll be well-versed with JavaScript and have learned how to create clean abstractions, test them, and communicate about them via documentation. 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.

548 pages, Paperback

Published January 20, 2020

12 people are currently reading
66 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
6 (24%)
4 stars
11 (44%)
3 stars
6 (24%)
2 stars
0 (0%)
1 star
2 (8%)
Displaying 1 - 9 of 9 reviews
Profile Image for Mark Nenadov.
807 reviews44 followers
November 25, 2021
It didn’t blow me away, but it’s a reasonable read for someone who wants to learn more about JavaScript. I found a few sections very helpful. It’s far more broad (unfocused?) than Bob Martin’s book on clean code. That might be a better place to go if you want to learn general principles of clean code. A comparatively small portion of this book deals directly with clean code in JavaScript, it’s more about the JavaScript language and ecosystem in general with a bit of a slant towards clean code.
4 reviews
January 4, 2022
This book is more of an introduction to Javascript and Programming, rather than Clean Code. It touches very little of a Clean Code. The only good parts are Naming, SOLID, and writing clean tests. It explains all aspects of Javascript in detail, so I lost a desire to read this book multiple times. For example, in the Functions section, Uncle Bob's book is telling about arguments, a number of arguments, lines of code in a function, while this book is telling you how the function works in Javascript and what types of functions exist in Javascript. It could have way fewer pages with way more information about Clean Code. Not to mention that it barely touches Functional Programming at all.
Profile Image for Alberto Garcia Ariza.
210 reviews15 followers
September 30, 2023
Me parece un buen libro, sobre los principios del Clean Code, y más teniendo en cuenta que la referencia principal no es de Javascript sino de Java.
El principal fallo que le encuentro es que en la parte central, la más extensa que pierde la referencia de ser un libro sobre Clean Code para pasar a convertirse en un texto genérico más sobre el lenguaje.
Por otro lado, hay partes básicas en las que se detiene, y luego en otras muy complejas (y más importantes) como los patrones de diseño, pasa de puntillas sobre ellas.
Pero se aprende mucho, y es 100% recomendable
Profile Image for Zlatka.
7 reviews9 followers
December 25, 2021
To be honest, it took me about 11 months to finish this book. When I started coding, many programming concepts were unknown, abstract and scary to me, as I didn't study computer science. This book taught me to understand JavaScript and coding better. The author is like a teacher you wish you had, if you are teaching yourself to code. In the end, I got a job offer and will start as front-end developer soon. So big thanks to J. Padolsey.
Profile Image for Ulla.
53 reviews
July 19, 2022
The section on JavaScript itself focused on aspects of the language that are more obscure and which I find not so much use for in everyday programming, but missing many basic and core concepts even though I got the impression the book is meant to be beginner friendly.

I found the sections on clean code more interesting and useful. In general I found this book more approachable than some of the more famous books on this topic.
1 review
June 14, 2020
Good book. Delivers what it promises in the title. Can get lost in between with explanation of JS concepts itself rather than clean code but it quickly gets back on track. The tips and techniques for clean code are presented in a well organized way
Profile Image for William Darian.
35 reviews3 followers
July 30, 2021
A very good book for JavaScript developers. A recommended read. Unfortunately, the code examples are plagued with errors.
It is therefore suggested that you double check the example's correctness before blindly accepting it.
Profile Image for Jevgenij.
542 reviews14 followers
reject-after-initial-skim
March 30, 2022
Very basic, purely for beginners.
Displaying 1 - 9 of 9 reviews

Can't find what you're looking for?

Get help and learn more about the design.