DEV Community

Cover image for Washing your code. A book on clean code for frontend developers
Artem Sapegin
Artem Sapegin

Posted on

Washing your code. A book on clean code for frontend developers

After five years of writing, I’ve finally finished my book! It took a lot of energy (and coffee!) to complete, but it’s finally done, and I’m really happy with the result. When I started writing this book, I thought it would be a small thing — maybe 100 pages or so. I never expected it to end up being over 400 pages. I also didn’t expect writing a programming book to be such a huge effort. It involved more than just writing but a lot of tooling for text and code linting, custom unit testing, PDF/EPUB generation, and more. I learned a lot during this process and even changed some of my opinions along the way. I hope you’ll like it!

Washing your code book cover

We read code much more often than we write it — often to make a one-line change you have to read and understand hundreds of lines of code scattered among dozens of files. That’s why code readability is so important.

On dozens of examples, based on production code, I’ll show you how to make your code more readable and maintainable, and how to avoid hard-to-track bugs. I’ll show you code smells and antipatterns I often see during code reviews (and I review lots of code every day!) and will walk you through the refactoring process to make your code better.

Washing your code book spread

These techniques and patterns help me every day to write code that my colleagues will have no problems working with. All book’s examples are written in JavaScript with a bit of TypeScript, React, CSS, and HTML.

Get the book with 50% launch discount

Top comments (2)

Collapse
 
katy_wiwi_91b132f728c8d1a profile image
Morty777

wow!

Collapse
 
augustrogers profile image
Info Comment hidden by post author - thread only accessible via permalink
AugustRogers

This book on clean code for frontend developers looks like a fantastic resource! Writing clean, maintainable code is such an essential skill, especially for collaborative projects. On a related note, for anyone working on projects that involve generating clear and well-structured lab reports or documentation alongside your code, I’d recommend checking out academized.com/buy-lab-report-online. It’s been super helpful for ensuring that the supporting materials for my projects are as polished as the code itself. Great work sharing this book—can’t wait to dive in!

Some comments have been hidden by the post's author - find out more