DEV Community

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

Posted on

1

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

Google AI Education track image

Build Apps with Google AI Studio 🧱

This track will guide you through Google AI Studio's new "Build apps with Gemini" feature, where you can turn a simple text prompt into a fully functional, deployed web application in minutes.

Read more →

Top comments (1)

Collapse
 
augustrogers profile image
AugustRogers
Comment hidden by post author

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more

👋 Kindness is contagious

Discover fresh viewpoints in this insightful post, supported by our vibrant DEV Community. Every developer’s experience matters—add your thoughts and help us grow together.

A simple “thank you” can uplift the author and spark new discussions—leave yours below!

On DEV, knowledge-sharing connects us and drives innovation. Found this useful? A quick note of appreciation makes a real impact.

Okay