Re: [ANN] 'Elements of Clojure' is complete

2018-12-04 Thread Daniel Bell
Hey, glad to hear it. Excited to read the completed version over the holidays. On Sunday, December 2, 2018 at 4:25:42 PM UTC-7, Zach Tellman wrote: > > I'm very happy to announce, only two and a half years after the release of > the first chapter, that Elements of Clojure is completely

Re: How would I learn more about Clojure's class loading system?

2012-01-06 Thread Daniel Bell
Thanks for your help everyone. I think I'll make this a belated New Year's resolution. On Jan 6, 12:51 am, Brent Millare brent.mill...@gmail.com wrote: Hi Daniel, I asked a question about the process of class reloading for different clojure constructs. The following link may be helpful to

How would I learn more about Clojure's class loading system?

2012-01-05 Thread Daniel Bell
So school has started, and I'm laden with syllabi, either in print or online. I'm a stats student, so all my professors use LaTex for...well, everything. So I have all these .pdf files. I had the idea of parsing them and extracting the homework schedules and then making a simple Android app

Re: How would I learn more about Clojure's class loading system?

2012-01-05 Thread Daniel Bell
Thanks Kevin, but I'm not so much looking for debugging help on this specific issue as I'm asking what I should do if I want to be able to, say, help others with similar issues in the future. Classpath stuff is a common bugaboo even for experienced Java developers (or so I hear), and all the

Re: Rich Hickey: Simple Made Easy from Strange Loop 2011

2011-10-22 Thread Daniel Bell
Having watched Rich's talk yesterday, then Stu's Simple Ain't Easy talk an hour ago, I've been trying to wrap my head around this. What are the benefits of simplicity in the non-compound sense? Stu mentioned that often we think of simplicity in terms of counting things and then sort of brushed

Re: Pipe function

2011-10-15 Thread Daniel Bell
Ha, the argument order as written here was just off the top of my head; when I look at where I actually use it, it's [test f value] like Sean said, for use with partial. That said, I like to-fix's brevity over using partial all the time. Clojure makes it so easy to compose functions on the fly

Pipe function

2011-10-14 Thread Daniel Bell
One higher-order function I've found useful as I've goofed around with clojure has been one that I made up myself, but it's proved so useful and so simple that I have to believe it's in core somewhere: (defn pipe [test value f] (if (test value) (f value) value)) Is this a core

Re: A newbie's summary - what worked, what didn't

2011-03-26 Thread Daniel Bell
I'm sure you're sick of how-to's by now (I was), but I took the trouble to write down EXACTLY what I did for an Ubuntu/emacs/swank/ SLIME/leiningen set-up. On Mar 26, 5:40 pm, Mark Engelberg mark.engelb...@gmail.com wrote: On Sat, Mar 26, 2011 at 4:29 PM, ultranewb pineapple.l...@yahoo.com

Re: Emacs with Lisp and Clojure.

2011-03-26 Thread Daniel Bell
http://thtatithticth.blogspot.com/2011/02/obligatory-development-environment-post.html On Mar 24, 11:31 am, MarisO maris.orbid...@gmail.com wrote: swank-clojure is deprecated, don't use it.  Instead start swank from leiningen. I found these instructions how to install clojure support in

Re: Transforming map entries

2011-02-22 Thread Daniel Bell
I can't think of anything core, but (let [f #(. % toUpperCase)] (zipmap (keys skills) (map f (vals skills doesn't seem too bad. On Feb 21, 8:08 pm, yair yair@gmail.com wrote: I'm hoping this is a dumb question and I've missed something obvious. I have a map with various key-value

Re: Ordering of defn's?

2011-02-22 Thread Daniel Bell
This is true. But you declare lets you throw out all the names you need to at the beginning to avoid circular definitions and the like. eg. (declare sum) (defn average [coll] (/ (sum coll) (count coll))) (defn sum [coll] (apply + coll)) On Feb 21, 11:05 pm, Jonathan Mitchem

Re: Transforming map entries

2011-02-22 Thread Daniel Bell
I don't know if it's specified in the documentation anywhere, but (= map-I-made-up (zipmap (keys map-I-made-up) (vals map-I-made-up))) returns true. On Feb 22, 5:17 pm, Mike Meyer m...@mired.org wrote: On Tue, 22 Feb 2011 15:36:02 -0800 (PST) Daniel Bell dchristianb...@gmail.com

Re: (:multiplexing clojure.contrib.sql = nil?)

2010-11-15 Thread Daniel Bell
: Not sure what you meant by multiplexing? Did you mean concurrent execution of SQL statements on the same connection? Regards, Shantanu On Nov 14, 4:00 am, Daniel Bell dchristianb...@gmail.com wrote: I'm just getting my feet wet w/clojure's sql library, and I got to wondering---is multiplexing

(:multiplexing clojure.contrib.sql = nil?)

2010-11-13 Thread Daniel Bell
I'm just getting my feet wet w/clojure's sql library, and I got to wondering---is multiplexing implemented in a library somewhere? Or is it already part of contrib.sql but executed behind the scenes? Thanks, ---Dan -- You received this message because you are subscribed to the Google Groups

Parameterized SQL queries?

2010-11-10 Thread Daniel Bell
I'm a newb to both SQL and Clojure, and after reading this post ( http://groups.google.com/group/clojure/browse_thread/thread/718fa1b725389639/4c4d7ed1492e082b?lnk=gstq=sql+parameterized#4c4d7ed1492e082b ) I was curious as to exactly it means to parameterize a query. Is it a way to automatically

Re: Parameterized SQL queries?

2010-11-10 Thread Daniel Bell
This is awesome, guys. Clear and helpful. Thanks a ton. And Sean, I actually already know how with-query-results worked...from studying the example on your blog. Thanks again! ---Daniel On Nov 10, 11:07 am, Saul Hazledine shaz...@gmail.com wrote: On Nov 10, 6:35 pm, Daniel Bell dchristianb

Spit is core now. How to append?

2010-11-03 Thread Daniel Bell
Clojuredocs mentioned that opts could be passed to clojure.java.io/ Writer, but (little Java background), I'm having a hard time figuring out what the analog to options is in the Java API. Any help? Thanks, -- You received this message because you are subscribed to the Google Groups Clojure

Re: Spit is core now. How to append?

2010-11-03 Thread Daniel Bell
I figured it out; if anyone has trouble with this in the future and Googles this, it's done by (spit f content :append true) On Nov 3, 1:57 pm, Daniel Bell dchristianb...@gmail.com wrote: Clojuredocs mentioned that opts could be passed to clojure.java.io/ Writer, but (little Java background