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 Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
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

Shipping Address

Billing Address

Shipping Methods

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
Estimated delivery fee Deliver to Austria

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

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 : 9781800563421
Vendor :
Microsoft
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
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

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Austria

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

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

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

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela