Book Image

Refactoring TypeScript

By : James Hickey
Book Image

Refactoring TypeScript

By: James Hickey

Overview of this book

Refactoring improves your code without changing its behavior. With refactoring, the best approach is to apply small targeted changes to a codebase. Instead of doing a huge sweeping change to your code, refactoring is better as a long-term and continuous enterprise. Refactoring TypeScript explains how to spot bugs and remove them from your code. You’ll start by seeing how wordy conditionals, methods, and null checks make code unhealthy and unstable. Whether it is identifying messy nested conditionals or removing unnecessary methods, this book will show various techniques to avoid these pitfalls and write code that is easier to understand, maintain, and test. By the end of the book, you’ll have learned some of the main causes of unhealthy code, tips to identify them and techniques to address them.
Table of Contents (11 chapters)

This Is Just The Beginning!

Throughout this book, you've learned all about refactoring: what it is, why it's important, and how to do it!

But this book is just the beginning. There are still tons of code smells that haven't been addressed in this book. There are many more techniques, even for the issues covered in this book.

In addition to code health, there are many more areas where, as a professional software developer, you need to understand the warning signs of disease:

  • Application architecture
  • Business processes
  • Peer relationships
  • Product market fit
  • User impact

Ideally, as a professional business problem-solver (that's what you are, after all!), you will grow in your craft, impact, and career. As you grow, you'll find yourself having more influence and impact in terms of helping your teammates, managers, users, products, and organizations improve as a whole.

It's not all about code but solving tough and important...