August 2022
Beginner to intermediate
424 pages
10h 19m
English
Representing data with generic data structures fits naturally in dynamically-typed programming languages like JavaScript, Ruby, or Python. However, in statically-typed programming languages like Java or C#, representing data as string maps with values of an unspecified type is not natural for several reasons:
Accessing map fields requires a type cast.
Map field names are not validated at compile time.
Autocompletion and other convenient IDE features are not available.
This appendix explores various ways to improve access to generic data in statically-typed languages. We’ll look at:
Value getters for maps to avoid type casting when accessing map fields
Typed getters for ...
Read now
Unlock full access