惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
LangChain Blog
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园_首页
T
Tailwind CSS Blog
P
Proofpoint News Feed
雷峰网
雷峰网
D
Darknet – Hacking Tools, Hacker News & Cyber Security
IT之家
IT之家
V
Vulnerabilities – Threatpost
阮一峰的网络日志
阮一峰的网络日志
C
CERT Recently Published Vulnerability Notes
Attack and Defense Labs
Attack and Defense Labs
S
Schneier on Security
Security Archives - TechRepublic
Security Archives - TechRepublic
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
WordPress大学
WordPress大学
The Register - Security
The Register - Security
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
Project Zero
Project Zero
博客园 - 叶小钗
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
Latest news
Latest news
S
SegmentFault 最新的问题
C
Cyber Attacks, Cyber Crime and Cyber Security
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
L
LINUX DO - 最新话题
Google DeepMind News
Google DeepMind News
P
Privacy International News Feed
I
InfoQ
F
Fortinet All Blogs
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Threatpost
T
Tenable Blog
B
Blog RSS Feed

oida.dev | TypeScript, Rust

TypeScript's `erasableSyntaxOnly` Flag Unsafe for work Tokio: Macros Tokio: Channels Tokio: Getting Started Network Applications on the Tokio Stack Remake, Remodel, Reduce. The `never` type and error handling in TypeScript 5 Inconvenient Truths about TypeScript Refactoring in Rust: Introducing Traits Refactoring in Rust: Abstraction with the Newtype Pattern TypeScript: Iterating over objects The road to universal JavaScript 10 years of oida.dev Rust: Tiny little traits The TypeScript converging point How not to learn TypeScript Getting started with Rust Introducing Slides and Coverage TypeScript: The humble function overload TypeScript + React: Children types are broken TypeScript: In defense of any Rust: Enums to wrap multiple errors Dissecting Deno Error handling in Rust TypeScript: Unexpected intersections Upgrading Node.js dependencies after a yarn audit TypeScript: Array.includes on narrow types TypeScript + React: Typing Generic forwardRefs shared, util, core: Schroedinger's module names Learning Rust and Go TypeScript: Narrow types in catch clauses TypeScript: Low maintenance types Tidy TypeScript: Name your generics Tidy TypeScript: Avoid traditional OOP patterns Tidy TypeScript: Prefer type aliases over interfaces Tidy TypeScript: Prefer union types over enums My new book: TypeScript in 50 Lessons Go Preact! ❤️ this in JavaScript and TypeScript TypeScript and ECMAScript Modules TypeScript + React: Why I don't use React.FC TypeScript + React: Component patterns TypeScript: Augmenting global and lib.dom.d.ts Vite with Preact and TypeScript TypeScript: Union to intersection type 11ty: Generate Twitter cards automatically Are large node module dependencies an issue? TypeScript: Variadic Tuple Types Preview TypeScript: Improving Object.keys Remake, Remodel. Part 4. TypeScript + React: Typing custom hooks with tuple types TypeScript: Assertion signatures and Object.defineProperty TypeScript: Check for object properties and narrow down type Boolean in JavaScript and TypeScript void in JavaScript and TypeScript Symbols in JavaScript and TypeScript Why I use TypeScript TypeScript + React: Extending JSX Elements TypeScript: Validate mapped types and const context TypeScript: Match the exact object shape TypeScript: The constructor interface pattern Streaming your Meetup - Part 4: Directing and Streaming with OBS Streaming your Meetup - Part 3: Speaker audio Streaming your Meetup - Part 2: Speaker video Streaming your Meetup - Part 1: Basics and Projector TypeScript and React Guide: Added a new styles chapter TypeScript and React Guide: Added a new render props chapter TypeScript and React: Styles and CSS TypeScript and React TypeScript and React Guide: Added a new prop types chapter TypeScript without TypeScript -- JSDoc superpowers TypeScript: Mapped types for type maps JAMStack vs serverless web apps The Unsung Benefits of JAMStack Sites TypeScript: Ambient modules for Webpack loaders My most favourite talks in 2018 TypeScript and React Guide: Added a new context chapter TypeScript: Built-in generic types TypeScript: Type predicates JSX is syntactic sugar TypeScript and React Guide: Added a new hooks chapter Getting your CfP application right FAQ on our Angular Connect Talk: Automating UI development TypeScript and Substitutability Debugging Node.js apps in TypeScript with Visual Studio Code From Medium: Deconfusing Pre- and Post-processing From Medium: PostCSS misconceptions Saving and scraping a website with Puppeteer Cutting the mustard - 2018 edition Wordpress as CMS for your JAMStack sites My most favourite podcast episodes in 2017 My most favourite talks in 2017 My most favourite books in 2017 The Best Request Is No Request, Revisited Not so hidden figures - Organizing ScriptConf My podcast journey to ScriptCast Grid layout, grid layout everywhere! #scriptconf and #devone Object streams in Node.js
Announcing the TypeScript Cookbook
2022-11-07 · via oida.dev | TypeScript, Rust

Oops, I did it again! I’m writing another book, and it’s again about TypeScript. I’m happy to announce The TypeScript Cookbook, to be published in 2023 by O’Reilly. You can check it out in Early Release on the O’Reilly website.

A couple of months ago I have been contacted by Amanda Quinn from O’Reilly. She has read my articles and seen my book TypeScript in 50 Lessons, which was published by Smashing Magazine roughly two years ago. She told me that my writing style and my content would fit greatly to a book they have been thinking about, the TypeScript Cookbook, and if I would be interested in writing it.

Originally, I was a bit hesitant as I thought I already had said everything about TypeScript that fits into a book, and knowing that TypeScript in 50 Lessons took me a year of planning, I feared that a new book on the same topic would be either too similar or lack significant content.

Thankfully, Amanda put a great deal of work to tell me about the concept of an O’Reilly cookbook, what to expect, and how my content would fit in. The goal of a cookbook is to provide assistance for everyday problems with a programming language. Something that works in the context of a chapter and in the scope of an entire book, but is so self-contained people can refer to it over and over again, whenever need guidance or troubleshooting advice. This sounds a lot like my guides on this blog.

I read a couple of reference books Amanda was involved with and set out to outline a table of contents of what I would love to see in a TypeScript cookbook.

As it turns out, I still have a lot to say. Within a couple of hours, I managed to describe over 100 items (or lessons, or recipes), that I considered relevant, helpful, new, and fun. With TypeScript in 50 Lessons I had one specific reader in mind: A JavaScript developer who tips their toes into TypeScript and wants to get from beginner to expert. I focussed a lot on the type system as an extension to JavaScript and wanted to develop a mental model so developers were prepared for all situations to come. This tight focus and the sharp direction not only meant that I was able to establish a common thread from start to finish, catering to a broad range of developers, but it also meant that I had to leave out a lot of things that are important for your day to day work.

This is what The TypeScript Cookbook will be all about. You will find

  • Solutions and configurations to different setups for your project.
  • Strategies on how to react when your types are either too loose or too strict.
  • Recommendations on when to use annotations vs. when to rely on inference.
  • Use cases for string template literal types, variadic tuple types, and conditional types.
  • Helper types that go where the built-in helpers aren’t going, including testing and validating your custom-made types.
  • Support for developing complex types for your entire team.
  • Workarounds when dealing with limitations of the standard library.

Furthermore, I will look into things that I have intentionally omitted from all my work on TypeScript like … classes! And as an added bonus, you will find some guides that help you work with React and similar libraries.

If you would compare it to TypeScript in 50 Lessons, I would say 95% are completely new. The other 5% are re-imagined to fit better to the context of the cookbook, which is 5 lessons out of 100. You can think of it as both a sequel and an addendum. If you liked TypeScript in 50 Lessons, you will also like the TypeScript Cookbook.

To be honest, I’m quite excited about this project. I had no idea that I still have so much to say about this topic, and I really enjoy how the chapters turn out. Right now I’m at more than 50%, and still writing. You can watch my progress on the Early Release page.

Related Articles