Mardan Azat / Мардан Азат - 50 TypeScript F*ck Ups / 50 ошибок в TypeScript [2024, PDF/EPUB, ENG]

Reply to topic
DL-List and Torrent activity
Size:  10 MB   |    Registered:  2 months 12 days   |    Completed:  0 times
Seeders:  824  [  0 KB/s  ]   Leechers:  3  [  0 KB/s  ]   Show peers in full details
 
   
 
 
Author Message

Download WYSIWYG ®

Gender: Male

Longevity: 10 years

Posts: 1526

Post 03-Feb-2025 11:05

[Quote]

50 TypeScript F*ck Ups / 50 ошибок в TypeScript
Год издания: 2024
Автор: Mardan Azat / Мардан Азат
Издательство: Leanpub
Язык: Английский
Формат: PDF/EPUB
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 216
Описание: Insider knowledge on recognizing common bugs, errors, and pitfalls in the TypeScript code.
The best mistakes are the ones you avoid in the first place. 50 TypeScript F*ck Ups makes it easy to identify errors before you even make them! It’s packed with over a hundred anti-patterns, common slip-ups, and complex technical points that can trip up even the most experienced JavaScript or TypeScript developer.
In 50 TypeScript F*ck Ups (Mistakes) you’ll learn about:
JavaScript and TypeScript for frontend and backend
Resolving persistent, dangerous, or frustrating issues
How to write safer code
Increase code quality, reusability, and maintainability
Industry best practices
Open up 50 TypeScript F*ck Ups and you’ll instantly find practical, reliable ways to improve your JavaScript and TypeScript code. Make your code safer, improve readability and reusability, and become the go-to JS and TypeScript guru on your team!
Инсайдерские знания о том, как распознавать распространенные ошибки в коде TypeScript.
Лучшие ошибки - это те, которых вы избегаете в первую очередь. 50 Советов по работе с TypeScript позволяют легко выявлять ошибки еще до того, как вы их допустите! В нем содержится более сотни способов устранения шаблонов, распространенных ошибок и сложных технических моментов, которые могут сбить с толку даже самого опытного разработчика JavaScript или TypeScript.
Из 50 ошибок в TypeScript вы узнаете:
JavaScript и TypeScript для интерфейса и серверной части
Решение постоянных, опасных или вызывающих разочарование проблем
Как писать более безопасный код
Повысьте качество кода, его возможность повторного использования и сопровождения
Лучшие отраслевые практики
Откройте 50 разделов TypeScript, и вы сразу же найдете практические и надежные способы улучшения вашего кода на JavaScript и TypeScript. Сделайте свой код более безопасным, улучшите читаемость и возможность повторного использования и станьте гуру JS и TypeScript в своей команде!

Примеры страниц (скриншоты)

Оглавление

Welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1. Why TypeScript and Why This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Why TypeScript? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. How does TypeScript work? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3. How this book is structured . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.4. How to use this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5. For whom this book is intended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.6. Why this book will help you . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.7. Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2. Basic TypeScript Mistakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1. Using any Too Often . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2. Ignoring Compiler Warnings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3. Not Using Strict Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4. Declaring Variables Incorrectly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.5. Misusing Optional Chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.6. Not Using Nullish Coalescing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.7. Not Exporting/Importing Properly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.8. Not Using or Misusing Type Assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.9. Checking for Equality Improperly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.10. Not Understanding Type Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3. Types, Aliases and Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.1. Confusing Types Aliases and Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.2. Misconceiving Type Widening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.3. Ordering Type Properties Inconsistently . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.4. Extending Interfaces Unnecessarily . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.5. Missing on Opportunities to Use Type Aliases . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.6. Avoiding Type Guards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.7. Overcomplicating Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
3.8. Overlooking readonly Modifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
3.9. Forgoing keyof Utility Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
3.10. Underutilizing Utility Types Extract and Partial When Working with Object Types . . 82
3.11. Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
4. Functions and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
4.1. Omitting Return Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
4.2. Mishandling Types in Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
4.3. Misusing Optional Function Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
4.4. Inadequate Use of Rest Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
4.5. Not Understanding this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
4.7. Not Knowing About globalThis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
4.8. Disregarding Function Signatures in Object Type . . . . . . . . . . . . . . . . . . . . . . . 121
4.9. Incorrect Function Overloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.10. Misapplying Function Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
4.11. Ignoring Utility Types for Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
4.12. Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
5. Classes and Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
5.1. Understanding When to Implement Interfaces for Classes . . . . . . . . . . . . . . . . . . 144
5.2. Misusing Abstract Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
5.3. Misuse of Static Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
5.4. Incorrectly Applying Access Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
5.5. Not Initializing Class Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
5.6. Overriding Methods Incorrectly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5.7. Inconsistent Getters and Setters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
5.8. Not Knowing About Composition Over Class Inheritance . . . . . . . . . . . . . . . . . . 193
5.9. Mishandling Promises in Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
5.10. Not Leveraging Decorators in Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
5.11. Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Advanced Patterns (Work in Progress) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
[solely-soft.top].t207114.torrent
Torrent: Registered [ 2025-02-03 11:05 ] · 6F548E2316DE0731F8E8BB38F66F35091649FE3A

13 KB

Status: checked
Completed: 0 times
Size: 10 MB
Rate: 
(Vote: 0)
Have thanked: 0  Thanks
Mardan Azat / Мардан Азат - 50 TypeScript F*ck Ups / 50 ошибок в TypeScript [2024, PDF/EPUB, ENG] download torrent for free and without registration
[Profile] [PM]
Forum Topic Author Size
Web design and programming Barklund Morten, Mardan Azat / Баклунд Мортен, Мардан Азат - React Quickly, 2nd Edition / React быстро, 2-е издание [2023, PDF, ENG] Download WYSIWYG 29 MB
Display posts:    
Reply to topic

Current time is: 16-Apr 10:01

All times are UTC + 2



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum