Jump to ratings and reviews
Rate this book

Programming with Types

Rate this book

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.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the technology

Common bugs often result from mismatched data types. By precisely naming and controlling which data are allowable in a calculation, a strong type system can eliminate whole classes of errors and ensure data integrity throughout an application. As a developer, skillfully using types in your everyday practice leads to better code and saves time tracking down tricky data-related errors.

About the book

Programming with Types teaches type-based techniques for writing software that’s safe, correct, easy to maintain, and practically self-documenting. Designed for working developers, this clearly written tutorial sticks with the practical benefits of type systems for everyday programming tasks. Following real-world examples coded in TypeScript, you’ll build your skills from primitive types up to more-advanced concepts like functors and monads.

What's inside

Building data structures with primitive types, arrays, and references
How types affect functions, inheritance, and composition
Object-oriented programming with types
Applying generics and higher-kinded types

About the reader

You’ll need experience with a mainstream programming language like TypeScript, Java, JavaScript, C#, or C++.

About the author

Vlad Riscutia is a principal software engineer at Microsoft. He has headed up several major software projects and mentors up-and-coming software engineers.

325 pages, Paperback

Published December 7, 2019

Loading interface...
Loading interface...

About the author

Vlad Riscutia

3 books5 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
14 (30%)
4 stars
19 (41%)
3 stars
11 (23%)
2 stars
1 (2%)
1 star
1 (2%)
Displaying 1 - 6 of 6 reviews
Profile Image for Mircea.
63 reviews7 followers
May 15, 2020
Book is short, sweet, structured and to the point. As a programmer you may have been exposed to some or all of the concepts in the book but the way they are explained and the examples using Typescript really consolidate everything together into what types are and what a type system should be. The explanations are technical enough for you to get it, but not over the top or math heavy as most materials that deal with this type of subject.
Profile Image for Daniel Gomez Rico.
21 reviews2 followers
June 15, 2021
Even if you don't have any experience with TypeScript (as I am) the examples in the book and how he explains it is not an issue at all. It shows a lot of concepts like "what is a monad" or "what is a closure" or "why it is cool to send functions as parameters" and how to apply them in many cases.

I would love to have more examples over monads itself, but I loved the book.
Profile Image for Ivan Koma.
338 reviews1 follower
October 24, 2021
Я был настроен очень положительно, но что то в этой книге не так. Возможно автор (как он сам пишет в начале) работал в основном на более сложных языках и брать TypeScript для примера было ошибкой, т.к. у автора опыт работы с более сложными языками.
По содержанию вроде тоже все хорошо, но возможно слишком затянуто, я бы предпочёл увидеть реализацию какого-то одного проекта, а не множества разных примеров (как раз совпало бы с концепцией автора о практической пользе книги)
Плюс вышло немного затянуто, но это скорее не минус, всё-таки если автор поделился всем своим опытом, то за это спасибо, но нужно понимать что обычным читателям всегда важно время, и один из главных факторов успешной книги, это её емкость, (за исключением худ.литературы, многие почему-то переносят это и на техническую) хотелось бы отметить что у автора есть свой блог, где как раз и соблюдается принцип - "краткость сестра таланта". может кому пригодится - https://vladris.com/blog/archive.html
Profile Image for William Darian.
35 reviews2 followers
March 8, 2022
A wide-ranging application of type systems, introduced via TypeScript.
If you want to understand more about functional programming, generic programming, monoids, monads, functors, and other higher kinded types coming from imperative or object oriented programming, this might just be the book for you.
Profile Image for Mike Harris.
91 reviews2 followers
April 2, 2022
Fantastic book. This book goes from simple types all the way to higher kinded types but it is not just about types it goes over the relationship between types and popular patterns that programs use every day. This is one of those rare books which by working through it will level up your skills and give you insight into deeper understanding of logic and programming.
Profile Image for Dmitry Marcautan.
21 reviews2 followers
May 20, 2022
Accessible entry-level introduction into type systems. Using Typescript for code examples was a great choice as it allowed to introduce many basic concepts without overwhelming reader with the novelty of idiomatic non-mainstream programming languages like Haskell etc.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.