TypeScript 4 Design Patterns and Best Practices: Discover effective techniques and design patterns for every programming task
P**I
Excellent resource for learning Typescript
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
A**I
Excellent for intermediate and advanced JS developers.
A book that delves into the various design patterns and illustrates how to apply them to the TypeScript Language. This is not for inexperienced learners. It is intended for advanced learners. I enjoyed, how the author used TypeScript to demonstrate Functional and Reactive programming while also addressing well-known design patterns like creational, structural, and behavioral.Despite the fact that this book is not ideal in some areas, the majority of the information is full of knowledge and divided into little chunks, which is lovely and easy to absorb.This book is appropriate for novice and intermediate Javascript programmers who wish to learn more about TypeScript or advance in their use of TypeScript.
S**Y
Good for beginner and intermediate JS developers
What I like about this book This book provides foundation of Typescript for someone who never used Typescript before, from all the basic types in Typescript, the configuration, integration with VSCode, and how to refactor or translate code from JS to TS. It also teaches Advance Typescript that I learned to utilize typescript advanced types effectively and confidently.What could be improved I found that some parts of explanations are confusing due to lack of information. For example, when they refer to something from the other section, it would be nice if they link to the part they refer to on another section to make sure the readers are on the same page with the writer. I also found some typo in the code examples, eg. a function declares one name and then use the other name when it gets invoked. This makes me confused and hard to understand because I have to guess what the writer is trying to communicate.Even though, this book is not perfect in some parts, but most of the content are full of knowledge and separated into small sections, which is nice and easy to digest. I think this book is good for beginner and intermediate programmers who use Javascript and want to learn more about TypeScript or get more advance in using TypeScript.
K**S
A Gentle Exploration of Design Patterns, with TypeScript
Caveat: Deepak Kumar, with Packt Publishing provided me with a copy to review.What I Particularly Liked:The author’s practical, real-world, experience – self-evident in his approach to this subject.Emphasis on using the well-established Gang-of-Four Patterns in the bookThe usage of UML – as a still relevant and valuable skillThe pattern used in describing the patterns covered in the book (i.e., When to use; Class diagram; Classic implementation; Modern implementations; Variants; Testing; Rel-World examples)The discussions on Classic and Modern implementations of a given pattern.The inclusions of some key Functional programming conceptsThe inclusion and discussion in Chapter-8 of SOLID design principles.The citations of the book’s corresponding github repository folders, associated with a given chapter.The inclusion of “Further Reading” links at the end of the chapters.Suggestions for Future EditionsExpand the “Criticisms” discussion to include examples of anti-patterns.Expand the Functional programming chapterBetter attention to ensure that links in the book are correct.
C**N
Must have
Great book.good explanations, well detailed, concrete use cases
J**Y
A Good Collection of Patterns and Practices for Mid-level TS Developers
This is a good book. I'm glad I bought it, and my biggest complaint is actually that there's not MORE of it (at 315 pages it's still too short)! The 1st half is terrific. Unfortunately it's not as good in the 2nd half - and this is really where it just needed to be longer - the author covers too much ground, but just not nearly in enough depth.I would not recommend this book to new-ish TypeScript developers. The code samples are good overall - but while most of it is clear and straightforward to someone who really knows TS, it does take advantage of a lot of advanced features that may completely confuse those new to the language (generics, conditional types, etc.). Some of these are explained, but a lot are just used without any explanation at all - and if you don't know how that feature works you'll be lost.Roughly the first 2/3 of the book covers classic OOP design patterns, grouped into the 3 common general categories (Creational, Structural, and Behavioral patterns). If you've done OOP in other languages you'll recognize most (if not all) of these. I took issue with a few of the implementations along the way (I'd do them differently), but that's not unusual for an OOP design patterns book. For each pattern in the book the writing features clean UML diagrams, example TS code (often both the 'classic GoF implementation' as well as a more modern TS-fluent approach), explanations of how that code actually works, and notes on when that pattern would typically be helpful (i.e. what problems it solves).What I really enjoyed about this book, which is unusual, is that for each pattern the author also includes common criticisms of the pattern, as well as notes on how to write tests for your code - again, with sample code for TS using Jest....Which brings me to my complaints. First off - for some reason the author stopped including test code about 1/2 way thru the book. He did still include a quick paragraph of advice on how you might write good tests for each of those patterns, but that's really no help compared to the actual code he'd written before. To compound my disappointment, these were many of the more complex patterns that would have most benefitted from example test code. Oh well.Second - A glaring omission in the book is the failure to even _mention_ your friend and mine, MVC. The most popular pattern in the world (imho) didn't even get a passing mention, which is just bizarre. Oh well.Third - The final 4 chapters are where the author just moves way too fast, and doesn't go nearly deep enough. He totally switches gears from OOP to Functional and Reactive patterns, and then on to some more general programming topics (DDD, SOLID, anti-patterns, etc.). For the FP stuff, the author spends a page or 2 talking about the basics (purity, etc.), but then just dives right into the deep end (Recursion, Monads, Lenses, etc.). If you love FP you'll be disappointed he didn't include more. If you're new to FP, you'll be forgiven if your brain melts.And DDD - which is such a big and worthy topic in this modern age of microservices - barely even gets a passing mention. He spends a few quick pages in a fly-by summary of what it's all about, but barely even scratches the surface. In my view, the author shouldn't have even brought DDD up, since he really didn't give the topic it's due by any reasonable measure.Final word: This is a great book for any mid-level TypeScript developer who wants to enhance their code structure using many of the most popular OOP patterns. The quick look at FP and other topics covered are pretty good as well - I just hope the author adds 200 more pages to the 2nd edition.
R**N
Content is great but pages in the wrong order
This is a shame, as the content, which is what I should be reviewing, is great. I found this book very helpful in applying OOP Design princibles to typescript applications. But this is massively let down by the print, as you can see, I have a whole section of the book in the wrong place. I'll contact pakt directly before perhaps returning. It must be a bad print run, never seen this before.
M**S
Just 50 pages for functional programming.
Only 50 pages for functional programming.
TrustPilot
vor 3 Wochen
vor 1 Tag