Fork me on GitHub
#clojure-uk
<
2016-10-16
>
paulspencerwilliams18:10:15

Hey, is anyone around this evening?

paulspencerwilliams19:10:44

It’s pretty quiet here on the weekend.

djtango19:10:43

^ hey guys, wonder what you think on this: Have read some interesting discussions going on over here: https://news.ycombinator.com/item?id=12718270 The top comment (as of right now) discusses the merit of the practice of extracting as many functions from a large function as possible. My understanding is that this is encouraged in Clojure (having a library of lots of small descriptive helper functions is ideal), wonder if anyone here has strong opinions on the opposite of this? My (limited) experience with the Racket community is that this is practised less often.

paulspencerwilliams19:10:51

I’m pretty balanced on this topic. Keep something logically one function until it’s complexity grows sufficient to refactor out. Testing larger functions is difficult so it CAN be justification to break down but again, it’s a balance. A NS with 100 tiny functions is just as difficult if not more difficult to understand as one with 10 larger functions.