Data type
A data type classifies values by their permitted forms or representations and the operations or interpretations applicable to them.
Data-Oriented Programming in Java
A data type is a classification of data that determines its representation, permitted values, and valid operations.
- How it is used
- Uses data types to make domain meanings, states, decisions, and workflow transformations explicit.
- How deep it goes
- Develops representation from primitive choices through validated wrappers, algebraic alternatives, and compile-time lifecycle constraints.
- Examples
- Illustrates retry decisions, temperature precision, contact-angle degrees, checklist statuses, percentages, and late-fee lifecycles.
- What you can do after
- Apply it via Java types to encode domain constraints, preserve meanings, and eliminate invalid states.
Read how Data-Oriented Programming in Java explains data type →
Type-Driven Development with Idris
A type whose values are defined by constructors that specify ways to build values of that type.
- How it is used
- Uses data types to describe program data and guide type-driven implementation.
- How deep it goes
- Explains constructors and pattern matching, classifies five forms, and defers dependent-type definitions to a later section.
- Examples
- Illustrates constructors with lists and Booleans, exclusive OR, natural numbers, and an interactive string data store.
- What you can do after
- Build data types and functions by inspecting constructors, splitting cases, and checking definitions.
Read how Type-Driven Development with Idris explains data type →
ScyllaDB in Action
A data type specifies the kind of values that a database column can store and the operations applicable to those values.
- How it is used
- Assigns column representations after query-first design identifies the fields required by restaurant-review tables.
- How deep it goes
- Explains basic, temporal, identifier, collection, and user-defined types with selection trade-offs, without detailing their storage internals.
- Examples
- Uses a Docker-backed types keyspace, a basic CQL table, integer inserts, an out-of-range error, and a scaled restaurant-review score.
- What you can do after
- Apply it via CQL by choosing column types whose value semantics, bounds, and operation behavior fit application requirements.
Learn SQL in a Month of Lunches
A data type classifies values and determines the operations and rules applicable to them.
- How it is used
- Guides table design, filtering, query combination, and parameter declarations by identifying the kinds of values SQL handles.
- How deep it goes
- Explains practical type selection and matching through tables, variables, and procedure parameters, without detailing type internals.
- Examples
- Uses CategoryID as int, changing a MySQL variable from 1 to a title string, and promotion procedure parameters.
- What you can do after
- Apply it by choosing column types and matching variable or procedure parameter types to the columns they evaluate.
Read how Learn SQL in a Month of Lunches explains data type →
Building User-Friendly DSLs
A specification of the kind of value or relation that a property can store.
- How it is used
- Defines permissible property values and relations, then supports type checking that prevents invalid DSL expressions.
- How deep it goes
- Develops domain value types into computed expression types and checking constraints, briefly deferring compatibility beyond equality.
- Examples
- Uses car-rental amount, percentage, and date-range attributes, plus a Number projection rendered with $ or %.
- What you can do after
- Build it from scratch by representing types, computing expression types, and comparing them in checking constraints.
Elasticsearch in Action, Second Edition
A data type is a mapping specification that determines how a document field's values are represented, indexed, and queried in Elasticsearch.
- How it is used
- Defines field behavior within mappings so indexing and search apply appropriate rules.
- How deep it goes
- Explains mapping behavior, storage structures, type categories, dynamic inference, and coercion, while deferring a complete type catalog.
- Examples
- Uses movie fields, an electrical-products schema, geospatial fields, and a car age supplied as a string.
- What you can do after
- Apply it via Elasticsearch mappings to select field types that support intended indexing and query behavior.
Read how Elasticsearch in Action, Second Edition explains data type →
Event Processing in Action
A classification that specifies the kind of value an attribute can hold.
- How it is used
- Defines the value kinds permitted for event attributes when designing event types.
- How deep it goes
- Distinguishes simple and complex types, details location representations, and compares flat and complex event structures.
- Examples
- Illustrates location types with vehicle GPS coordinates and roads, and contrasts flat events with purchase orders containing order details.
- What you can do after
- Evaluate and understand attribute types and platform constraints when designing event structures.
100 SQL Server Mistakes and How to Avoid Them
A data type defines the kind of value that a database column or expression can contain and how that value is interpreted.
- How it is used
- Guides column and expression design by matching stored values to suitable storage, interpretation, constraints, and workload requirements.
- How deep it goes
- Explains consequences, compares integer sizes, and demonstrates schema redesign, while deferring detailed treatment of most specialized types.
- Examples
- Uses an employee table, an oversized warehouse fact table, integer-size measurements, and revised T-SQL definitions.
- What you can do after
- Apply it via SQL Server schema design by selecting bounded, semantically appropriate types and reviewing oversized key columns.
Read how 100 SQL Server Mistakes and How to Avoid Them explains data type →
Build Python Web Apps with Streamlit
A data type specifies the kind of value that a database column can store and the operations applicable to that value.
- How it is used
- Defines the kinds of values columns can store when specifying a relational table schema.
- How deep it goes
- Explains string limits, automatic integer values, and timestamp defaults, without detailing type internals.
- Examples
- Uses user and haiku table columns, plus sales-data columns reported as object or float64.
- What you can do after
- Apply data types by defining PostgreSQL table columns with appropriate string, integer, or timestamp types.
Read how Build Python Web Apps with Streamlit explains data type →
Julia as a Second Language
A type is a classification of values that determines their representation and the operations applicable to them in a programming language.
- How it is used
- Uses types to model application objects, constrain their properties, and determine available behavior.
- How deep it goes
- Explains inspection, conversion, and fixed fields, with a rough account of dynamic-language overhead; defers a fuller treatment of Type parameters.
- Examples
- Uses REPL type checks, numeric conversions, a typed screw catalog, and a vector-scaling function.
- What you can do after
- Evaluate and understand type behavior, conversion failures, and the role of fixed fields in performance.
F# in Action: A Revised Edition of Get Programming with F#
A type is a language-level classification that specifies the kind of values an expression can represent and the operations applicable to them.
- How it is used
- Models application data with compiler-enforced rules that express business constraints and prevent accidental mixing of values.
- How deep it goes
- Explains domain modeling, validation, and an inference error without developing type-system internals.
- Examples
- Uses wrapper types for cities and countries, a validated email for sending, and an age function to expose type inference.
- What you can do after
- Apply types to encode invariants, require validated values before operations, and reduce redundant low-level tests.
Read how F# in Action: A Revised Edition of Get Programming with F# explains data type →
High Performance Unity Game Development
A specification of the kind of value a program element can represent and the operations and storage interpretation associated with it.
- How it is used
- Selects value ranges and storage representations for gameplay data, balancing runtime speed against memory and network needs.
- How deep it goes
- Compares type sizes, ranges, and device-dependent performance, then gives selection guidance; it does not prescribe one fastest type across devices.
- Examples
- Uses byte-versus-int cache density, device timing comparisons, and a short hit-point array for enemies.
- What you can do after
- Evaluate type choices by value range, storage needs, and profiling results on target hardware.
Read how High Performance Unity Game Development explains data type →
Starting Data Analytics with Generative AI and Python
A data type specifies the kind of value represented by a variable or column and the operations appropriate for that value.
- How it is used
- Uses data types to validate analytical data and prevent inconsistencies that could produce erroneous conclusions.
- How deep it goes
- Defines expected types and validation steps, but leaves acceptable values and thresholds to domain knowledge.
- Examples
- Uses informal date strings and a datetime64[ns] conversion as concrete validation examples.
- What you can do after
- Apply data-type checks, inspect deviations, and investigate or correct invalid values before analysis.
Read how Starting Data Analytics with Generative AI and Python explains data type →
Everyday Data Visualization
A data type is a classification that specifies the kind of value data can contain and the operations or representations appropriate for it.
- How it is used
- Guides how dimensions and measures are interpreted and visualized.
- How deep it goes
- Defines strings, numbers, dates, Booleans, null, arrays, and objects, but defers fine-grained numeric distinctions such as float32 and BigInt.
- Examples
- Uses fruit fields, date and fruit-type dimensions, and a million-number field containing one stray string.
- What you can do after
- Evaluate/understand field types before assigning data to a visualization.
Grokking Relational Database Design
An SQL data type specifies the kind of values that a database column can store and the operations supported for those values.
- How it is used
- Guides entity-and-attribute design, query filtering, and database implementation.
- How deep it goes
- Explains type groups and selection from sample data, but defers RDBMS-specific equivalents and exhaustive details.
- Examples
- Uses product prices and manufacturers, SQL WHERE filters, and serial_number column alterations to demonstrate typed values.
- What you can do after
- Build it from scratch by assigning suitable types to entity attributes from requirements and sample data.
Read how Grokking Relational Database Design explains data type →
Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI
A classification that specifies the kind of values a data field can contain.
- How it is used
- Classifies table columns so numeric, categorical, text, date, and binary values can be organized and processed appropriately.
- How deep it goes
- Defines common field types and illustrates mixed-type DataFrame construction, but stops short of detailed type conversion or validation procedures.
- Examples
- Uses a currency table and a four-person pandas dataset containing gender, age, education level, and income.
- What you can do after
- Apply data types via pandas by creating, labeling, selecting, and managing mixed-type tabular DataFrames.
Read how Machine Learning for Tabular Data: XGBoost, Deep Learning, and AI explains data type →
Effective Data Analysis
A data type specifies the kind of value a field can contain and the operations or representation associated with that value.
- How it is used
- Uses data types to clean, integrate, and query organizational data reliably.
- How deep it goes
- Explains types through cleaning and ETL examples, but stops short of cataloging type systems or implementation details.
- Examples
- Uses weather API records, zip codes, date fields, and a most_recent Boolean indicator.
- What you can do after
- Apply data types when correcting mismatched fields and preserving usable join keys across integrated datasets.
D3.js in Action, Third Edition
A data type is a classification describing the kind of values represented by data and the operations or interpretations appropriate for them.
- How it is used
- Guides data loading, cleaning decisions, scale selection, and conversion before binding values to visual elements.
- How deep it goes
- Explains nominal and ordinal categories, string-to-number conversion, and automatic typing, but stops short of comprehensive data cleaning.
- Examples
- Uses nominal and ordinal data, CSV and JSON files, and a weekly temperature dataset containing dates and temperatures.
- What you can do after
- Apply it via D3 by converting loaded values, inspecting inferred types, and supplying correctly typed data to a chart.
Read how D3.js in Action, Third Edition explains data type →
Essential TypeScript 5, Third Edition
A data type is a classification that determines the kinds of values a program can represent and the operations applicable to them.
- How it is used
- Uses data types to explain JavaScript behavior and the TypeScript checks that make value assumptions explicit.
- How deep it goes
- Explains built-in types, runtime inspection, dynamic coercion, and TypeScript controls, but does not detail advanced type-system internals.
- Examples
- Demonstrates reassignment, typeof output, built-in type descriptions, and a calculateTax function receiving numbers, strings, and booleans.
- What you can do after
- Diagnose unexpected results by inspecting runtime types and apply TypeScript features to restrict or narrow permitted values.
Read how Essential TypeScript 5, Third Edition explains data type →
Practical Automation with PowerShell: Effective scripting from the console to the cloud
A data type classifies the representation and permitted values of data, such as an integer, string, or binary value.
- How it is used
- Uses types to generate registry-resolution values and define SQL table schemas for operational automation.
- How deep it goes
- Explains practical type selection, string sizing, and nullability, then applies them to JSON properties and SQL column maps.
- Examples
- Uses DWORD and test values for registry remediation, plus an nvarchar-based Servers table with identity and nullable settings.
- What you can do after
- Apply it by generating typed JSON metadata and configuring SQL columns with type, length, nullability, and identity settings.
The Art of Code
A type is a specification of the values a program entity can represent and the operations permitted on those values.
- How it is used
- Guides domain-aware representation choices and makes program intent visible through appropriately cast variables.
- How deep it goes
- Connects type choice to precision, performance, memory usage, and concurrency, but stops short of explaining type-system internals.
- Examples
- Uses BigDecimal versus float for prices and typed Java-style variables in a promotional-email method.
- What you can do after
- Evaluate and choose types that represent domain values accurately and clarify each variable’s responsibility.
Go in Action, Second Edition
A type is a specification of the values and operations permitted for a piece of data in a programming language.
- How it is used
- Models real-world domains by combining primitive values into named, checked, and reusable structures.
- How deep it goes
- Explains named structs, composition, compile-time checking, runtime type checks, and array identity, but defers detailed type declarations.
- Examples
- Demonstrates a person struct, named person values, field access, incompatible array lengths, and len() calls.
- What you can do after
- Build it from scratch by defining named structs and recognizing how Go’s type rules constrain assignments and collections.
Also covered in
- Pandas Workout: 200 exercises to make you a stronger data analyst
- Learn PowerShell Scripting in a Month of Lunches, Second Edition: Write and organize scripts and tools
- Pro Angular 16
- Crack Any Codebase with AIIn early access (MEAP)
- Software Engineering for Data ScientistsIn early access (MEAP)
- .NET in Action, Second Edition
- Learn Haskell by Example
- Data Analysis with LLMs
- Rust Web Development
- Outlier Detection in Python
- Deep Learning with R, Third Edition
- Data Storytelling with Altair and AI
What to know first
- stringA string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
- booleanA Boolean is a logical value or data type representing truth or falsity, conventionally with the two values true and false.
- integerAn integer is a whole-number mathematical value, including negative numbers, zero, and positive numbers, with no fractional part.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
Related concepts
- stringincludes · A string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
- function typeincludes · A function type specifies the types of inputs and result that a callable value accepts and produces.
- type-driven developmentused by · Type-driven development is an iterative software development approach in which types guide modeling and implementation, with types and implementations refined as understanding grows.
- predicateincludes · A predicate is a condition or relation over values or entities that specifies whether a stated property holds.
Questions about data type
What is data type?
A data type classifies values by their permitted forms or representations and the operations or interpretations applicable to them.
Which Manning books explain data type?
Data-Oriented Programming in Java, Type-Driven Development with Idris, ScyllaDB in Action, Learn SQL in a Month of Lunches, Building User-Friendly DSLs, Elasticsearch in Action, Second Edition, Event Processing in Action, 100 SQL Server Mistakes and How to Avoid Them and 14 more.
What should I know before learning data type?
Manning books that teach data type usually introduce string, boolean, integer and JSON first.
What kinds of data type are there?
Kinds of data type include string, function type, integer data type, location data type and predicate.
What is data type also called?
Data type is also called dtype, datatype or types of data.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





















