Book description
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.
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.
Quotes
Well-presented, valuable knowledge on type systems, data structures, algorithms, and programming paradigms (functional and OO).
- Fred Heath, Faria Education Group
A triumph of types exploration, with concise examples of how types can make programs more robust and sound.
- Theo Despoudis, Teckro
Everything you need to know about types, from Booleans to monads. This book has you covered.
- Desmond Horsley, NSW Health Pathology
Finally, a book that fills the gap between theory and practice in type systems.
- Domingo Sebastián, Fundació Bit
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About This Book
- About the Cover Illustration
- Chapter 1. Introduction to typing
- Chapter 2. Basic types
- Chapter 3. Composition
- Chapter 4. Type safety
- Chapter 5. Function types
- Chapter 6. Advanced applications of function types
- Chapter 7. Subtyping
- Chapter 8. Elements of object-oriented programming
- Chapter 9. Generic data structures
- Chapter 10. Generic algorithms and iterators
- Chapter 11. Higher kinded types and beyond
- Appendix A. TypeScript installation and source code
- Appendix B. TypeScript cheat sheet
- Types and possible values
- Common algorithms
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Programming with Types
- Author(s):
- Release date: November 2019
- Publisher(s): Manning Publications
- ISBN: 9781617296413
You might also like
book
Functional Programming in C#
Functional Programming in C# teaches you to apply functional thinking to real-world problems using the C# …
book
Data-Oriented Programming
Eliminate the unavoidable complexity of object-oriented designs. The innovative data-oriented programming paradigm makes your systems less …
book
Programming C# 10
C# is undeniably one of the most versatile programming languages available to engineers today. With this …
book
Build Your Own Programming Language
Written by the creator of the Unicon programming language, this book will show you how to …