Rich Hickey rants about HttpServletRequest in 1080p: Death By Specificity from Clojure Made Simple
Channel:Fred Overflow · Length:4:56 · Published:2019-11-30 · Views:42871
Summary
A five-minute excerpt of Rich Hickey's Clojure Made Simple talk, with new slides, ranting about HttpServletRequest and specificity. He argues for using generic maps instead of many specific classes and getters.
Why HN recommends it
Cited as the classic rant on maps versus objects in discussions of data modeling and OOP.
A classic rant by Rich Hickey — HN, 2023
Functional programming · Software architecture & design · Databases & storage
Subtitles (excerpt)
so one of the other things I think we suffer from in object orientation is death by specificity right all the time we have a new thing we have a new idea a new piece of data boom we have a new class get this get that get whatever I don't care if their value types whatever right it's just a glorified map except you can't even use it as a map in Java right there's no generic way to manipulate something that says get this get that get that it's a new type new language gets own little vocabulary right so you're gonna have more code you're gonna have much less for use you can have more coupling right because essentially what's happening is every object has its own little language my class my interface my own language this is my biggest pet peeve I want to get away from this when we started writing get this get that it's like this is there's no purpose to this this is just life sucking so let's look at life sucking in there in this is this is just a tiny part I actually skipped this is just the servlet request and I have a little bit of httpservletrequest which really doubles the size of this thing but my question to you is how many maps do you see here we're like give a name you get a value I got one I
On Hacker News
A classic rant by Rich Hickey: [VIDEO] I say this even though I don’t usually code this way: I think the big benefit for business code is sort of a constrained flexibility. Objects tend to get really big (the alternative is you have a ton of classes). Think about all the data that makes up one Uber ride. So if I want to do anything with a Ride, I need everything. An even the many classes thing do… — travisjungroth, 2023-11
Rich Hickey "thinks in lisp". For example, he talks about his "maps" data structure (aka association lists). See [VIDEO] Since data and programs are the same thing in lisp you can fluidly shift from one to the other, like I did with "knowledge" vs "rules". They both have the same representation (defstructs) but they are also code and have execution semantics. Clojure allows you to do this with ma… — daly, 2021-04
> Do people actually build large codebases with the 'hash map first' approach? There are a few large projects written in Clojure. I'd say it's a "data first" approach, not uniquely "map first". There's this famous 4 minutes rant by Rich Hickey (the creator of Clojure) where he talks about maps and about how Java does OOP (and how maps are served through getters but you can't see easily that they'… — TacticalCoder, 2021-03
> I personally find OOP to be the most intuitive for large scale systems design, but that's just me. At one point, I was the same. But after going functional in Clojure, I can’t imagine going back. Using maps nd just having common functions that transform data into different data is definitely the way to go. This is with your time: [VIDEO] — drob518, 2026-06
I like "Clojure, Made Simple" even more. [LINK] Someone helpfully pulled out this chunk, which is a good illustration of why data is better than functions, a key driver of Clojure's design. [VIDEO] — filoeleven, 2025-04
Related videos
- How to tie your shoes | Terry Moore · TED · 2:59
- I Was SCARED To Say This To NASA... (But I said it anyway) - Smarter Every Day 293 · SmarterEveryDay · 1:05:19
- Holy Post - Race in America · Holy Post Media · 17:52
- Oscilloscope Music - Planets · Jellybean Fenderson · 3:17
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- The 919 Tribute Tour: On-board record lap, Nordschleife. · Porsche · 5:49
- A Mind Is Born (256 bytes) · lftkryo · 2:22
- Elevated by RGBA and TBC · BUTTONTANG · 3:36
- NSA operation ORCHESTRA: Annual Status Report · HUP · 46:06
- The Power Grid: Last Week Tonight with John Oliver (HBO) · LastWeekTonight · 22:29
- The Clean Architecture in Python · Next Day Video · 49:53
- The Language of the System - Rich Hickey · ClojureTV · 1:02:49
- Cosmos - Carl Sagan - 4th Dimension · carlsagandotcom · 7:23
- The Hyperbolic Geometry of DMT Experiences (@Harvard Science of Psychedelics Club) · Qualia Research Institute · 1:06:15
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47