Clean Code & Refactoring in JavaScript Projects
Jason Nguyen
Instructor
Course preview
Khóa học tập trung vào viết mã sạch và tái cấu trúc trong dự án JavaScript. Bạn sẽ học SOLID, design patterns, kĩ thuật refactor và cách duy trì codebase dễ bảo trì.
Course description
Khóa học tập trung vào viết mã sạch và tái cấu trúc trong dự án JavaScript. Bạn sẽ học SOLID, design patterns, kĩ thuật refactor và cách duy trì codebase dễ bảo trì.
What you will learn
- Principles of clean code (SOLID, DRY, KISS).
- Common refactoring techniques.
- Code smells and anti-patterns.
- Design patterns in JS.
- Maintaining large codebases.
Course content
6 chapter • 42 lesson • 0 minutes
SOLID, DRY, KISS, YAGNI.
SOLID principles
Học về solid principles
DRY vs WET
Học về dry vs wet
KISS and YAGNI
Học về kiss and yagni
Naming conventions
Học về naming conventions
Code comments best practice
Học về code comments best practice
Functions & classes design
Học về functions & classes design
Bài tập: review messy code
Học về bài tập: review messy code
Extract method, rename, etc.
Code smells identification
Học về code smells identification
Extract function/method
Học về extract function/method
Rename variables and functions
Học về rename variables and functions
Replace magic numbers
Học về replace magic numbers
Introduce parameter object
Học về introduce parameter object
Refactor conditional logic
Học về refactor conditional logic
Bài tập: refactor legacy module
Học về bài tập: refactor legacy module
Creational, Structural, Behavioral patterns.
Singleton & Factory
Học về singleton & factory
Observer & Pub/Sub
Học về observer & pub/sub
Decorator & Middleware
Học về decorator & middleware
Strategy & State
Học về strategy & state
Adapter & Facade
Học về adapter & facade
Command & Iterator
Học về command & iterator
Bài tập: apply pattern to app
Học về bài tập: apply pattern to app
TDD and regression safety.
Writing unit tests
Học về writing unit tests
Mocking and stubbing
Học về mocking and stubbing
Integration tests
Học về integration tests
Using Jest snapshots
Học về using jest snapshots
Refactor with test safety
Học về refactor with test safety
Measuring coverage
Học về measuring coverage
Bài tập: write tests then refactor
Học về bài tập: write tests then refactor
Effective peer reviews.
Review checklist
Học về review checklist
Automating reviews (lint, CI)
Học về automating reviews (lint, ci)
Handling feedback
Học về handling feedback
Refactoring discussions
Học về refactoring discussions
Maintaining style guides
Học về maintaining style guides
Documentation best practices
Học về documentation best practices
Bài tập: conduct review session
Học về bài tập: conduct review session
Scaling teams and modules.
Modular architecture
Học về modular architecture
Versioning and releases
Học về versioning and releases
Dependency management
Học về dependency management
Monorepo vs polyrepo
Học về monorepo vs polyrepo
Automated refactor tools
Học về automated refactor tools
Continuous improvement
Học về continuous improvement
Final project: refactor large module
Học về final project: refactor large module
Course preview
Khóa học tập trung vào viết mã sạch và tái cấu trúc trong dự án JavaScript. Bạn sẽ học SOLID, design patterns, kĩ thuật refactor và cách duy trì codebase dễ bảo trì.