← All freeCodeCamp videos

JavaScript Clean Code Course – Fix Code Smells & Refactor

27,053 views 895 likes 2025-11-18 1:03:25 Watch on YouTube ↗ freeCodeCamp ↗
Web DevelopmentJavaScript

Chapters (22)

Show the creator's full description
Learn how to transform messy, hard-to-maintain JavaScript code into clean, readable, and professional-quality code that scales. In this course from @tapasadhikary you’ll understand what Code Smell is, why it matters, and how to refactor step-by-step using proven clean code principles, real examples, and modern tooling like ESLint + Prettier. ⭐️ Important Links ⭐️ - Source Code and Tasks: https://github.com/tapascript/code-smell-to-clean-code - Prettier: https://prettier.io/docs/ - ESLint: https://eslint.org/docs/latest/use/getting-started - Clean Code Book: Search Clean Code Book by Robert C Martin - Martin Fowler Blog: https://martinfowler.com/bliki/CodeSmell.html - Clean Code Cheatsheet: https://www.tapascript.io/books/js-clean-code - Join Tapas' Discord: https://discord.gg/ux9BchWEW3 📚 Join free courses by @tapasadhikary: ✅ Start 40 Days of JavaScript Course: https://www.youtube.com/playlist?list=PLIJrr73KDmRw2Fwwjt6cPC_tk5vcSICCu ✅ Start 15 Days of React Design Patterns Course: https://www.youtube.com/playlist?list=PLIJrr73KDmRyQVT__uFZvaVfWPdfyMFHC ❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp ⭐️ Contents ⭐️ - 0:00:00 Intro - 0:01:34 Agenda - 0:03:55 Why Clean Code Matters? - 0:04:58 Learning Objectives - 0:06:38 SDLC & Coding Phase - 0:09:02 What is Code Smell? - 0:13:01 Why Code Smell is Bad? - 0:16:20 What is Clean Code? - 0:17:59 How to Detect Code Smells? - 0:21:36 Common Code Smells - 0:24:03 Formatting & Readability - 0:27:03 Naming & Structure - 0:29:29 Code Complexity - 0:31:42 Logic & Maintainability - 0:33:19 Design & Architecture - 0:34:27 Error Handling & Resilience - 0:34:56 Performance & Efficiency - 0:36:32 Refactoring - 0:49:57 Tools - 0:59:20 Best Practices - 1:00:41 Further Resources - 1:01:46 Tasks & Ending 🎉 Thanks to our Champion and Sponsor supporters: 👾 Drake Milly 👾 Ulises Moralez 👾 Goddard Tan 👾 David MG 👾 Matthew Springman 👾 Claudio 👾 Oscar R. 👾 jedi-or-sith 👾 Nattira Maneerat 👾 Justin Hual -- Learn to code for free and get a developer job: https://www.freecodecamp.org Read hundreds of articles on programming: https://freecodecamp.org/news

Description and video by freeCodeCamp.org. This page is an independent companion view; the video is embedded from YouTube.