Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
TypeScript 4 Design Patterns and Best Practices
TypeScript 4 Design Patterns and Best Practices

TypeScript 4 Design Patterns and Best Practices: Discover effective techniques and design patterns for every programming task

eBook
€22.99
Paperback
€27.99
Subscription
Free Trial
Renews at €11.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • Identify common gotchas and antipatterns when developing TypeScript applications and understand how to avoid them
  • Discover expert techniques and best practices in developing large-scale TypeScript applications
  • Explore advanced design patterns taken from functional programming and reactive programming

Description

Design patterns are critical armor for every developer to build maintainable apps. TypeScript 4 Design Patterns and Best Practices is a one-stop guide to help you learn design patterns and practices to develop scalable TypeScript applications. It will also serve as handy documentation for future maintainers. This book takes a hands-on approach to help you get up and running with the implementation of TypeScript design patterns and associated methodologies for writing testable code. You'll start by exploring the practical aspects of TypeScript 4 and its new features. The book will then take you through the traditional gang of four (GOF) design patterns in their classic and alternative form and show you how to use them in real-world development projects. Once you've got to grips with traditional design patterns, you'll advance to learning about their functional programming and reactive programming counterparts and how to couple them to deliver better and more idiomatic TypeScript code. By the end of this TypeScript book, you'll be able to efficiently recognize when and how to use the right design patterns in any practical use case and gain the confidence to work on scalable and maintainable TypeScript projects of any size.

Who is this book for?

If you're a TypeScript developer looking to learn how to apply established design patterns to solve common programming problems instead of reinventing solutions, you'll find this book useful. You're not expected to have prior knowledge of design patterns. Basic TypeScript knowledge is all you need to get started with this book.

What you will learn

  • Understand the role of design patterns and their significance
  • Explore all significant design patterns within the context of TypeScript
  • Analyze, and develop classical design patterns in TypeScript
  • Find out how design patterns differ from design concepts
  • Understand how to put the principles of design patterns into practice
  • Discover additional patterns that stem from functional and reactive programming

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 15, 2021
Length: 350 pages
Edition : 1st
Language : English
ISBN-13 : 9781800565418
Vendor :
Microsoft
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Sep 15, 2021
Length: 350 pages
Edition : 1st
Language : English
ISBN-13 : 9781800565418
Vendor :
Microsoft
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€11.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€119.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€169.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 102.97
Mastering TypeScript
€41.99
The TypeScript Workshop
€32.99
TypeScript 4 Design Patterns and Best Practices
€27.99
Total 102.97 Stars icon
Banner background image

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1
(18 Ratings)
5 star 33.3%
4 star 55.6%
3 star 5.6%
2 star 0%
1 star 5.6%
Filter icon Filter
Top Reviews

Filter reviews by




Cathal Sep 19, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really like the approach taken in this book as it was very well structured and made sure not to overwhelm you with information too early on.Too many books these these also fail to provide good clear, real world examples and this book hit that nail on the head. It's not usual for a book to come with GitHub examples either so you code along, I really like that.I usually like to learn from free online resources but I can say for sure that my Typescript has improved after reading this book, worth every penny.
Amazon Verified review Amazon
Hannah Sep 18, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
At the end of each chapter of the book, there’s a Q&A section which is quite useful to read to recap information within the chapter. The book goes through the basics of using Typescript in VS Code, this would help a beginner in starting to code in Typescript. Further reading sections at the end of each chapter allows a person to explore topics covered in the book even further. The inclusion of the GutHub repo where the code examples are stored helps to ensure fewer errors occur if you were to type out the code manually. With all of the design patterns in the book, you learn when to use them, how to test, criticisms of the design pattern in question, UML class diagrams and how to implement the design pattern, with both classic and real-world implementation examples included. You also get to see how the likes of SOLID principles can be applied within Typescript. The inclusion of anti-patterns is definitely a plus. Some books covering design patterns don’t include anti-patterns so it’s good to see and read about them here.The book is ideal for beginner and intermediate Typescript developers. Expert developers in Typescript could also use it to refresh and learn more about design patterns.
Amazon Verified review Amazon
Cliente Amazon Sep 17, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author put together a very comprehensive collection of design patterns and took the time to introduce new comers to TypeScript 4. This books isn't simple a collection of patterns, but a rather nice guided tour through the topic at hand.But if you are an experienced developer, you can quickly jump to the topics that matter to you as the book is neatly divided by categories such as Creational and Structural, among several others.
Amazon Verified review Amazon
Priya R Shastri Dec 09, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In this book, the author describes effective programming practice for every programming task. The software used in this book is using VScode and typescript 4.2. So please use this book if you want to know about these technologies.The typescript files end with .ts just like javascript files end with .js. The similartity between typescript and java script ends there. Typescript 4 has different ways to declare variables and their types. This is described in chapter 1 “getting to know typescript”. Unified modeling Language (UML) is described in this chapter as a software architechting language as well as interaction between systems and deployment models. In chapter 2, Typescript core principles,Typescript core principles, working with advanced types, oop methods are discussed. A design pattern is a method to solve recurrent problems in software programming. In chapter 3 creational design patterns are discussed. singleton pattern, Creation pattern, builder pattern, factory pattern, abstract factory pattern are discussed. In chapter 4 structural design patterns are discussed. In chapter 5 behavioural design patterns are discussed. The strategy, iterator, mediator patterns are discussed. UML class diagram sfor each kind of desing are provided in the book for each chapter. In chapter 6 functional programming with typescript is discussed. In chapter 7 reactive programming with typescript is discussed. Modern and robust applications can be developed using the singleton and the iterator pattern. This is discussed with an example. SOLID principles for OOP design are described in this chapter as single reponsibility principle, open close principles, liskov substitution principle, interface segregation principle and dependency inversion principle are coined here. In chapter 9 antipattern principles are discussed.Overall,Excellent description for use of typescriptGreat content condensed in 10 chapters.can improve onDownload locations and paths. Provide a reference with all the websites and the code locations!Thanks,-priya
Amazon Verified review Amazon
Nick Sep 19, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
If you're familiar with design patterns, this book is the definitive reference to use them with TypeScript's flexible features in an idiomatic style. The guide is not just a translation of the Gang of Four Design Patterns book into equivalent object-oriented class-based TypeScript. Instead, the author uses features specific to TypeScript and its browser/Node.js/Deno targets to improve on classical patterns where appropriate. For example, the Singleton pattern is presented in a “classical” style (using classes/objects), using JS/TS module resolution (by exporting a new class instance as a variable), and using an IoC container with pros and cons presented for each.If you're new to design patterns or skeptical about their value, the book is an excellent introduction that may change your mind. Theo Despoudis is careful not to assume too much knowledge, providing short intros to running TypeScript in the browser and on the server. The language and examples don't feel academic or intimidating. Class diagrams help to present the patterns visually. Refreshingly, each pattern includes a summary of where you should look to use it and where it can be found in the wild. The author also talks about downsides so you know when not to use each pattern and what to consider instead.Theo is pragmatic about patterns and doesn't consider them a cure-all. It was good to find an admission that patterns won't “magically make programs better”. The author also recognises that patterns must adapt as business needs change, and is an advocate for not letting a codebase calcify around the wrong pattern. This is a healthy philosophy that shows you're in good hands and makes the book a great choice to learn from.The chapters on functional and reactive programming were welcome to give a more rounded feel to TypeScript best practices, as TS codebases tend not to follow pure OOP patterns and paradigms, particularly for frontend apps. Both sections seem as if they could be broken out into their own books, and I'd like to read more from the author on the topics.I would have preferred a more active teaching style with worked exercises at the end of chapters, but that is a personal preference rather than a criticism. It would also be interesting to see the author take a small codebase and refactor it using patterns to demonstrate the impact they can have, or lean more on patterns in use in popular open source TypeScript codebases to show them outside of a theoretical context. But the accompanying GitHub repo provides plenty of examples to play and experiment with, and the book will continue to serve as a useful reference for me.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.