LibCoder

TypeScript Cookbook. Real World Type-Level Programming

1C Agda JavaScript
TypeScript Cookbook. Real World Type-Level Programming
Автор: Baumgartner Stefan
Дата выхода: 2023
Издательство: O’Reilly Media, Inc.
Количество страниц: 784
Размер файла: 2,3 МБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
ContentsIntroductionSection 1: AuditingWhat's Covered?Planning Your Auditing StrategyGetting Into the Right MindsetRecording Your FindingsAutomated ToolingPHP InsightsEnlightnLarastanStyle CICode CoverageManual AuditingInvestigating "raw" Database QueriesFinding Incorrect AuthorisationChecking ValidationFinding "Fake Facades"Finding Business Logic in HelpersFinding N+1 QueriesFinding Controllers That Use Other ControllersFinding Logic and Queries in Blade ViewsFinding Hard-Coded CredentialsCheck Open Package RoutesReviewing Project DocumentationSection 2: TestingWhat's Covered?Planning Your Testing StrategyThe Benefits of Writing TestsSpotting Bugs EarlyMaking Future Work and Refactoring EasierChanging the Way You Approach Writing CodeTests-As-DocumentationProve That Bugs ExistStructuring Your TestsDirectory StructureChoosing What To TestTest StructureData ProvidersWriting the TestsPrioritising Mission-Critical Tests FirstWriting the Rest of the TestsBenefits of Writing the Easy Tests FirstPreventing Test FatigueTesting Your UI with Laravel DuskInstallationTesting a Simple FormDusk Pages and SelectorsRunning Failed Tests and GroupsCreating a CI Workflow Using GitHub ActionsUsing an .env.ci FileRunning the Test SuiteLarastanLaravel DuskOutputSection 3: FixingWhat's Covered?Planning Your Fixing StrategyUsing an Error Reporting SystemTypes of ErrorsThe Benefits of an Automated Error Reporting SystemError Reporting Using FlareUptime Checking, Queue Monitoring, and Scheduler MonitoringUptime Monitoring with Oh DearScheduler Monitoring with Oh DearQueue Monitoring with Oh DearUpdating PHP, Laravel, and PackagesUpgrading in Small IncrementsAutomating the Upgrade Using Laravel ShiftPlanning Upgrades EarlyUsing a Suitable Local Development EnvironmentUsing Tests to Fix BugsWhat is Test-Driven Development?The Advantages of Test-Driven DevelopmentThe Disadvantages of Test-Driven DevelopmentFixing a Real Bug Using Test-Driven DevelopmentSafely Removing Dead CodeChecking the Version Control HistoryScream TestLogging or Reporting the UsageRemoving the Code with an Atomic CommitSection 4: ImprovingWhat's Covered?Planning Your Improvement StrategyMaking the Most of PHP's Type SystemUsing Type Hints and Return TypesUnion TypesType Hints and Return Types in ClosuresDRYing Up Your CodeAdvantages of DRYing Up Your CodeWhen to DRY Up Your CodeRefactoring ConditionsReducing Indented CodeReplacing if and elseif with matchUsing the Nullsafe OperatorUsing Database TransactionsAdding the Database TransactionsManually Using Database TransactionsTips for Interacting with Third-Party ServicesUsing Automatic or Manual TransactionsDispatching Queued Jobs inside Database TransactionsImproving the Testability of Your CodeUsing Objects Over ArraysFinal WordsDiscount CodesFlareOh DearStyleCILaravel Security In Depth

Описание

Коротко и по делу о том, что важно знать про typescript.

Still, even experienced developers wonder why the TypeScript compiler is throwing squiggly red lines at them. TypeScript is one of the most important tools for JavaScript developers. Enter TypeScript Cookbook. With this practical guide, author Stefan Baumgartner provides senior engineers with solutions for everyday TypeScript problems.

If you're conversant with TypeScript as well as JavaScript basics, this book provides actionable recipes to help you tackle a wide array of issues. From setting up complex project structures to developing advanced helper types, each self-contained recipe guides you through the problem and discusses why and how a solution works.

The ideal companion for your ongoing TypeScript journey, this cookbook helps you:

Dive into the inner workings of the TypeScript type system

Integrate TypeScript into a variety of projects

Craft advanced type definitions that allow for flexible scenarios

Create useful helper types that function across projects

Ensure readability along with type safety

Create robust APIs for helper types and their coworkers

Strongly type function signatures that rely on string types

Work around limitations of the standard library

Integrate TypeScript into advanced React projects

Если материал оказался полезен — сохраните страницу.

typescript type cookbook this advanced helper types into

Частые вопросы

Можно ли скачать «TypeScript Cookbook. Real World Type-Level Programming» бесплатно?

Да, «TypeScript Cookbook. Real World Type-Level Programming» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 2,3 МБ.

Кто автор и когда вышла книга?

автор — Baumgartner Stefan, издательство O’Reilly Media, Inc., год выпуска 2023, 784 страниц.

О чём книга «TypeScript Cookbook. Real World Type-Level Programming»?

TypeScript is one of the most important tools for JavaScript developers.

Похожие материалы