Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Clojure users tend to prefer tiny libraries that excel at one task and compose them together. While Pedestal is definitely a framework, its eclipsed by the sheer popularity of Ring (HTTP abstraction library similar to Rack), where you roll with your own choice of web server, router, middleware, database, data validation and coercion, etc.


Got it. So there’s no missing library, just more flexibility and the community embraces that. Thanks for explaining!


Right. Instead of 4 frameworks competing, yet having mostly similar say 25 underlying functions, clojure has say 50 functions (assuming half the framework code overlaps between frameworks) as libraries that can be composed to achieve the same functionality as those frameworks, and more.


Yeah, Clojure basically takes one of the ideas from Alan J. Perlis' "Epigrams in programming" to the next level.

> 9. It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.

http://www.cs.yale.edu/homes/perlis-alan/quotes.html


Where generally the proverbial "one data structure" is a hash map.

"Just use a map" [0]

[0] https://www.youtube.com/watch?v=aSEQfqNYNAc




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: