Stuart Sierra - Components Just Enough Structure
Channel:ClojureTV · Length:41:18 · Published:2014-03-26 · Views:35990
Summary
Stuart Sierra presents the Component library for Clojure, a way to manage stateful services like database connections and thread pools without global mutable state. He draws on both functional and object-oriented principles.
Why HN recommends it
Pointed to as a thought-provoking talk on structuring large systems, including outside Clojure.
it is a tiny clojure framework but the ideas should be thought provoking — HN, 2015
Functional programming · Software architecture & design
Subtitles (excerpt)
uh I'm steuart Sierra I work at cognitech and I'm here to talk about components and I'm here to talk about software architecture because uh as we all know every software application you could ever possibly want to write fits into this thre layer architectural pattern thank you thank you yes uh you know you have your UI you have some business logic whatever that is and then a database Underneath It All when was the last time you wrote an app that looked like that not likely huh yeah most of the apps I work on tend to look a little more like this you know they've got to send email they've got to send SMS messages there's this other database over here and a data warehouse and a scheduler in monitoring you know apps have to do a lot of stuff and if there's any business logic at all it kind of gets splayed across all of these different pieces so this is the the world this is what we live with what we have to deal with and a lot of these pieces of functionality in our app have state in them now some of it's easy it's just static configuration but we have to keep track of things like database connection URLs uh API Keys usernames passwords all that stuff then we have a lot of external resources that we need
On Hacker News
This talk might be of interest Stuart Sierra - Components Just Enough Structure [VIDEO] - it is a tiny clojure framework but the ideas should be thought provoking, although granted with OO aligned type system not completely adaptable. In this example Customer could possibly just be a data-bucket/map/hashtable/Dictionary, Im not entirely sure how I'd handle reporting though as the example has put … — nowprovision, 2015-09
Can't agree with your implication that 'real JS stuff' won't get done and 'JS people' won't get on board due to its 'focus on OOP'. I've yet to see a large JS app written in a 'functional style'. Most large client-side apps I've come across are written in Backbone, Angular, Ember etc. which are all frameworks/libraries that embrace OOP. You shouldn't mistake JavaScript's 'prototypal' nature for i… — nilliams, 2014-11
There are a huge number of people who don't enjoy programming in lisps and don't buy the tradeoff that homoiconicity is somehow worth sacrificing all syntax for. You can take 'good parts' from functional programming without going 'all in'. Many of us don't agree that the 'all in' is actually better. (See Gary Bernhardt's 'Boundaries' talk [0] for an amazing explanation of what I mean by taking th… — nilliams, 2015-02
> but once you need to go for something bigger, with big teams, the thing start to melt down. The people in the Clojure community have already started exploring this issue. Component [1] [2], Jig [3], and others are trying to add just enough OOP back for the reasons you mentioned. [1] [LINK] [2] [VIDEO] [3] [LINK] — jared314, 2014-12
Related videos
- 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
- Overwatch Gameplay Architecture and Netcode · GDC Festival of Gaming · 1:04:03
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Alan Kay - Normal Considered Harmful · powerfuloutlet · 1:07:26