The Eric Normand Podcast

What's the relationship between abstraction and generality?

Jul 19, 2021
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Core Concept of Abstraction

  • Abstraction means ignoring certain details to treat different things as equivalent in some context.
  • Naming a function to encapsulate operations is a fundamental form of abstraction in programming.
INSIGHT

Abstraction Isn't Always General

  • New functions often make abstractions that are more specific, not more general.
  • We confuse abstraction with generality, but abstraction in software often means less generality.
ANECDOTE

Map Function Example

  • The standard map function is general, working on any list and transformation.
  • A specific function like one that squares numbers only applies to lists of numbers, showing how abstractions can be specific.
Get the Snipd Podcast app to discover more snips from this episode
Get the app