Course · Training · Workshop

Clean Code with TypeScript

Write clean, maintainable TypeScript: SOLID principles, design patterns like Adapter and Strategy, plus best practices for functions, code reviews and testing.

Two or three days of intensive introduction to Clean Code principles and their application in TypeScript. Improve your skills with hands-on exercises and best practices. Discover why Clean Code is important, how to write readable and maintainable functions, apply SOLID principles, and use common design patterns like the Adapter and Strategy patterns.

What participants say

These customers booked courses in the same topic cluster.More customers →

Content

Clean Code is a crucial aspect of software development, ensuring that our code remains understandable, changeable, and extensible. In this course, we will learn the principles of Clean Code and how to apply them using TypeScript. We will cover best practices to make code more readable and maintainable, practicing these techniques through practical examples and exercises.

The workshop includes the following topics:

  • Introduction to Clean Code
    • Definition and importance of Clean Code
  • TypeScript and general best practices
    • Writing clean classes, methods and functions
    • Top-Down Programming
    • Type safety and type inference
    • Effective use of interfaces and types
    • Avoiding common pitfalls
    • Using TypeScript with modern JavaScript features
    • Setting up a robust TypeScript development environment
  • Naming Conventions
    • Meaningful naming of variables, functions, classes, and methods
  • Overview and Application of Design Principles
    • SOLID Principles
    • DRY Principle (Don’t Repeat Yourself)
    • KISS Principle (Keep It Simple, Stupid)
    • YAGNI Principle (You Aren’t Gonna Need It)
    • Composition over Inheritance
  • Overview and Application of Design Patterns
    • Adapter Pattern
    • Strategy Pattern
    • Factory Pattern
  • Clean Architecture
    • Modular architecture and project structure
    • Separation of Concerns
  • Testing
    • Basics and benefits of Test Driven Development (TDD)
    • Unit Testing
    • Integration Testing
  • Code Reviews
    • Best practices for effective code reviews
    • Giving and receiving constructive feedback

The actual course content may differ from the above depending on the trainer, delivery, duration and the composition of participants.

Request this course in-house

By submitting you accept our Privacy Policy.

Request a public date

No suitable public date? Register without obligation — once there is enough interest we schedule a new public date and let you know first.

Number of participants (approx.)

More than 3 participants? Best to request a dedicated in-house date directly.

By submitting you accept our Privacy Policy.

More about Clean Code with TypeScript

Clean Code in TypeScript combines Robert C. Martin's established principles with TypeScript's specific advantages. Static typing, interfaces, and modern JavaScript features make it easier than ever to write maintainable and extensible code.

Further resources:

History

The term "Clean Code" was popularized by Robert C. Martin (Uncle Bob), who published the book of the same name in 2008. The principles are based on decades of software development and were shaped by pioneers like Kent Beck, Martin Fowler, and others.

TypeScript was developed by Microsoft in 2012 and provides static typing for JavaScript. Combining it with Clean Code principles enables particularly expressive and safe code.

Today, TypeScript is one of the most popular languages for professional web development. Clean Code principles help developers unlock TypeScript's full potential.