The Eric Normand Podcast

Can you use types with Data Orientation?

4 snips
Sep 12, 2019
Dive into the fascinating world of types and data orientation. Explore the delicate balance between untyped and typed languages like Clojure and JavaScript. Discover how maps and data types can transform data manipulation practices. The discussion examines the trade-offs between flexibility and safety in programming, especially in Clojure. It's a thought-provoking look at how to achieve effective data handling while engaging listeners in the challenges of programming decisions.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Data Representation in Clojure

  • In Clojure, maps with keys and values represent entities like people, often received directly as JSON.
  • This approach avoids the difficulty of working with raw strings and simplifies data manipulation.
INSIGHT

Type Flexibility and Its Dangers

  • Not changing types allows flexible data manipulation and interpretation across different levels of meaning.
  • However, this freedom can lead to confusion and errors in complex systems.
ADVICE

Leveraging Types for Safety

  • Define new types for each level of meaning, to enhance type safety.
  • This improves clarity, helping you know the context of your operations.
Get the Snipd Podcast app to discover more snips from this episode
Get the app