Bottom Up vs Top Down Design in Clojure - Mark Bastian
Channel:ClojureTV · Length:36:42 · Published:2015-11-16 · Views:29163
Summary
Mark Bastian contrasts top-down object-oriented design with bottom-up, data-oriented design in Clojure. He models a board game as plain data plus small composable functions and compares it with a roughly 22-class OOP version.
Why HN recommends it
HN repeatedly recommends it as the talk that made data-oriented, REPL-driven bottom-up design click.
is the talk that really made it clear to me how to design programs this way. — HN, 2021
Functional programming · Software architecture & design
Subtitles (excerpt)
I am Mark Bastion this is my first closure con I'm really glad to be here it's been a great conference um today I'm going to talk about uh bottom up versus top down design en closure and in the time since I submitted the abstract and prepared the slides and got until now that title has kind of morphed a little bit uh to API first versus data first design enclosure and really their uh related topics um just a little bit about me um I'm a mechanical engineer by training but I have been doing software development my entire uh professional life um I programmed in a lot of different languages and a lot of different interesting projects um a long time ago I've done you know languages like Pascal Visual Basic fortrend in terms of languages that I have spent uh significant portions of my career doing software development in I've spent uh you know at least four years doing C++ over a decade in Java uh over six years in schola and then the last couple years I have been had the Good Fortune of being able to do a closure both personally and professionally and uh throughout these different experiences I've I've uh had the opportunities to learn both the you know object-oriented programming as well as functional programming techniques I
On Hacker News
This strikes me as a perfect visual example of repl-driven development. I like how he starts very simple and slowly makes it more sophisticated, testing every step of the way. If you've never tried it before, I highly recommend giving it a shot - it's extremely satisfying. I use Clojure, but other lisps also have fantastic repl environments that facilitate this style of development. "Bottom Up vs… — robto, 2021-04
I picked on needless complexity due to top-down design not on static typing per se. Here's a good video highlighting the difference of approach. Well worth watching. Applies to how many Java architects would design a solution. I see the same kind of top-down approach happening in the Typescript area as well. [VIDEO] — beders, 2019-04
This is exactly my impression after taking a quick glance through these articles as well. If anyone is curious and would like to see a practical demonstration of this data-oriented approach of modelling problems, I highly recommend this talk from Mark Bastian in Clojure/conj 2015: [VIDEO] In it, he contrasts the data-oriented modelling approach with a traditional OOP approach for implementing a b… — lewisl9029, 2018-02
I personally prefer a more data-oriented approach to modeling, as opposed to modeling in terms of objects and relations. One of my favorite videos from Clojure Conj last year talks about the approach in more detail and contrasts it with traditional OO modeling in the context of a board game: [VIDEO] In summary, modeling the board game with data (state) and pure functions (state transitions) had s… — lewisl9029, 2016-03
I see what you are trying to say. You are saying Clojure is not the right tool to do top-down design. I agree with it. It is however a very good tool to do bottom up design. See [VIDEO] — abc_lisper, 2017-01
Related videos
- React Helsinki February 2020 · Fraktio · 1:16:07
- Conflict Resolution for Eventual Consistency • Martin Kleppmann • GOTO 2016 · GOTO Conferences · 51:35
- In Search of Tomorrow · Berkeley Institute for Data Science (BIDS) · 56:26
- Tree-sitter: a new parsing system for programming tools - GitHub Universe 2017 · GitHub · 43:00
- Hammock Driven Development - Rich Hickey · ClojureTV · 39:49
- David Reich — How one small tribe conquered the world 70,000 years ago · Dwarkesh Patel · 1:57:03
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- 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
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- How To Design A Good API and Why it Matters · Google TechTalks · 1:00:19
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09