Refactoring TypeScript (eBook)
120 Seiten
Packt Publishing (Verlag)
978-1-83921-841-5 (ISBN)
Discover various techniques to develop maintainable code and keep it in shape.
Key Features
- Learn all about refactoring - why it is important and how to do it
- Discover easy ways to refactor code with examples
- Explore techniques that can be applied to most other programming languages
Book Description
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.
What you will learn
- Spot and fix common code smells to create code that is easier to read and understand
- Discover ways to identify long methods and refactor them
- Create objects that keep your code flexible, maintainable, and testable
- Apply the Single Responsibility Principle to develop less-coupled code
- Discover how to combine different refactoring techniques
- Learn ways to solve the issues caused by overusing primitives
Who this book is for
This book is designed for programmers who are looking to explore various refactoring techniques to develop healthy and maintainable code. Some experience in JavaScript and TypeScript can help you easily grasp the concepts explained in this book.
With a background in creative arts, philosophy, and software development, James Hickey has been helping developers become software artisans and navigate their careers. He has worked professionally in web and mobile-based projects mentoring development teams and leading business-critical projects. His technical interests focus on software design and architecture.Discover various techniques to develop maintainable code and keep it in shape.Key FeaturesLearn all about refactoring - why it is important and how to do itDiscover easy ways to refactor code with examplesExplore techniques that can be applied to most other programming languagesBook DescriptionRefactoring 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.What you will learnSpot and fix common code smells to create code that is easier to read and understandDiscover ways to identify long methods and refactor themCreate objects that keep your code flexible, maintainable, and testableApply the Single Responsibility Principle to develop less-coupled codeDiscover how to combine different refactoring techniquesLearn ways to solve the issues caused by overusing primitivesWho this book is forThis book is designed for programmers who are looking to explore various refactoring techniques to develop healthy and maintainable code. Some experience in JavaScript and TypeScript can help you easily grasp the concepts explained in this book.
Erscheint lt. Verlag | 18.10.2019 |
---|---|
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Programmiersprachen / -werkzeuge |
Schlagworte | conditionals • dumping grounds • JavaScript • Methods • nested conditionals • null checks • objects • primitives • Refactoring • TypeScript |
ISBN-10 | 1-83921-841-X / 183921841X |
ISBN-13 | 978-1-83921-841-5 / 9781839218415 |
Haben Sie eine Frage zum Produkt? |
![EPUB](/img/icon_epub_big.jpg)
Größe: 1,0 MB
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: EPUB (Electronic Publication)
EPUB ist ein offener Standard für eBooks und eignet sich besonders zur Darstellung von Belletristik und Sachbüchern. Der Fließtext wird dynamisch an die Display- und Schriftgröße angepasst. Auch für mobile Lesegeräte ist EPUB daher gut geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich