作者:VladRiscutia
出版社:ManningPublications
出版年:2019-9-1
页数:325
定价:USD49.99
装帧:Paperback
ISBN:9781617296413
内容简介
······
Programming with Types teaches you to design safe, resilient, correct software that’s easy to maintain and understand by taking advantage of the power of strong type systems. Designed to provide practical, instantly-useful techniques for working developers, this clearly-written tutorial introduces you to using type systems to support everyday programming tasks. In it, you’ll explore the impact types have on functions, inheritance, and composition, and you’ll take a close look at generics, which enable greater abstraction. You’ll also discover folding data structures and applying functions to containers with higher kinded types. Along the way, you’ll explore real-world use cases and practical examples in TypeScript as you build your skills from primitive types up to more advanced concepts like functors and monads.
what's inside
An introduction to type systems and their benefits
Designing functions that don’t return values
Encoding text
Building data structures with arrays and references
Type composition
Function types
Type safety
Asynchronous functions
Subtyping
Object-oriented programming with types
Generic data structures and algorithms
作者简介
······
Vlad Riscutia is a principal software engineer at Microsoft with over 10 years of experience in the software field. He has headed up several major software projects and mentored many up-and-coming software engineers.
评论 ······
很基础的 TypeScript 使用,没做类型体操,可以从第九章开始看下范型和迭代器。
作为讲 type theory 的书来说有些浅了,但算是对 TypeScript 的类型系统的一个较全面的介绍。后面几章讲 generics 的可以重点看看。
作为讲 type theory 的书来说有些浅了,但算是对 TypeScript 的类型系统的一个较全面的介绍。后面几章讲 generics 的可以重点看看。
很基础的 TypeScript 使用,没做类型体操,可以从第九章开始看下范型和迭代器。
评论前必须登录!
注册