
- 336 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
Summary 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 technologyCommon 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 typesAbout the readerYou'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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
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