18 ms·
Elements of Clojure
- chungus 7y agoBought it, read it, liked it. Most of it is applicable to any programming language. I remember there being very little code examples in the book.
- motform 7y agoDefinitely! Chapter two deals directly with Clojure idioms, but other than that the content is quite general. Zach has said in multiple interviews that one of his future projects could be something like an "Elements of Software". Fingers crossed!
- valw 7y agoDon't let the title fool you - 90% of the advice given in this book isn't specific to Clojure, and boy is it good advice. This book contains some of the deepest programming insights I've encountered, to be put on the same level as SICP or the Pragmatic Programmer. The discussions on naming and abstraction are particularly illuminating, exposing some fundamental tradeoffs like synthetic vs natural names, or principled vs adaptable systems of abstractions. Were these notions more widespread, a lot of the pointless rants and debates we hear in programming circles would disappear. I would not recommend this book to beginners - this book is most useful when you are experienced enough that your struggle is to make choices, not to get things to work.
- turk73 7y agoThen why use 'Clojure' in the HN post except to advertise for that mostly dead programming language? It's not 2014 anymore, the world moved on. I'm as upset about it as anyone.
- tosh 7y agothe sample chapter on naming is a great example https://leanpub.com/elementsofclojure/read_sample https://leanpub.com/elementsofclojure/read_sample
- aggerdom 7y agoAs someone who is currently picking up Clojure, that chapter just sold me on the book. I really liked the sign/referent/sense distinction and discussion. I knew it from philosophy/semiotics, but every other place I come across it instantly goes down another rabbit trail. I'm sure the balance you strike will vary language to language, but it really was useful seeing it discussed in terms of naming in software.
- kccqzy 7y agoContrarian opinion here: I've instead found the constant philosophizing tiring. But I still commend his effort because as he explained, he's trying to articulate the inarticulate and the visceral. Most programmers would probably benefit from reading a book in the style of Effective C++ (Scott Meyers) or Effective Java (Joshua Bloch), where recommendations are more concrete and more unequivocal. Once you've done that, the matter of software design only really comes with experience—experience designing software and having an almost tactile reaction to the future maintainability and readability of the code; it doesn't really come from reading a book like this.
- macando 7y agoI can't recommend Effective Java enough. Even if one hates Java with passion. I haven't managed to find a better book on how to design an API in any language. It learned me to think about the consumers of my code all the time (even if I'm the only author on a given project) The chapters on exceptions, defensive coding, generics are brilliant. The whole book is written in an effective manner. Dense with information, short and still readable. The second best: Eloquent Ruby. Brilliantly written and mature. Instead of hyping everything up, the author elaborates the downsides of each described technique and power tool.
- esfandia 7y ago> experienced enough that your struggle is to make choices, not to get things to work. I think you summarized beautifully the difference between design ("make choices") and implementation ("get things to work"). Am I correct in that?
- voidhorse 7y agoThis is great! I really enjoy the author’s use of philosophy as a guiding context/point of analogy—I feel like the majority of software engineers aren’t necessarily aware that nearly that many of the principles of software development date back to developments in logic and mathematics in the 19th century (we are doing little more than using formal langauges, after all) (actually the use of the term “indirection” is a great example of this—in the software industry, people have invented terms for things that have had long standing names and terminology around them already in logic and philosophy). Hope this book also introduces some engineers to analytic philosophy too, a discipline that I feel is crucial for understanding any formal pursuits, and that is given far too little attention (thanks to the hyper-specialization of domains and knowledge).
- TickMark 7y agoI thought I wouldn't live to see the day for Clojure related link to be the top link on HN. I had to reload 5 times. Clojure's cool, I am glad I got to work with it professionally. I did go back to Javascript, but it made me a better developer. It strikes a nice balance between being a pure functional language and being practical.
- hombre_fatal 7y ago5-8 years ago, Clojure was constantly on HN! Then it fell out of HN attention.
- dominotw 7y agoYes not sure what happened to clojure. The rise and fall of clojure is really intriguing. Looks like everyone just went back to java.
- ballpark 7y agoOh wow... not a chance
- WillPostForFood 7y agoI don't think people are going back to Java, but there are other options. I prefer Clojure, but Kotlin is a much easier switch for most Java devs.
- snapey 7y agoIt hasn't fallen. The Clojure community has been growing steadily and continues to grow (it's a great community, I'll add). Things have just settled down since, that's why there are fewer announcement. As an aside, the 2019 SO survey shows Clojure programmers are the best paid [1]. Most Clojure programmers I know (myself included) would not choose to go back to Java. [1] https://insights.stackoverflow.com/survey/2019#technology-_-what-languages-are-associated-with-the-highest-salaries-worldwide https://insights.stackoverflow.com/survey/2019#technology-_-...
- CameronBarre 7y agoYay Clojure! It's such a natural tool once you go all in on it.
- dmix 7y agoI love the design of that web-based audio player.
- ninetax 7y agoI really enjoyed this book, especially the chapter on naming. As a programmer I named dozens of things a day, yet I never really got much advice on what makes a good name other than the standard "make it clear". I wish there were more books out there that went as deep as this book on that topic. Anyone have any recommendations?
- slifin 7y agoThank you for the link, I brought the book to add to my collection of Clojure books, Programming Clojure by Alex Miller, Stuart Halloway and Aaron Bedra has been my favourite so far Would be good to get a Datomic Cloud book but I don't know of any yet
- fastbmk 7y agoObserved facts of Google Trends: 1. Clojure is less than 1% of Java market. 2. Clojure popularity is trending down.