Group words by their first letter and sum their frequencies

2013-07-11 Thread James Trunk
Hi everyone, I'm new to Clojure and trying to learn my way around the language. I've written a function that sums the frequencies of words starting with the same letter, however I'm not fully satisfied with the result. I'm striving for readability and idomaticity, but I fear that my rather limi

Re: Group words by their first letter and sum their frequencies

2013-07-11 Thread James Trunk
Regards, James On Thursday, July 11, 2013 2:29:38 PM UTC+2, Laurent PETIT wrote: > > Hello James, > > 2013/7/11 James Trunk >: > > Hi everyone, I'm new to Clojure and trying to learn my way around the > > language. > > > > I've written a functi

Re: Group words by their first letter and sum their frequencies

2013-07-11 Thread James Trunk
I have to ask someone else to do it who has the necessary > permissions. I'll ask again now. > > Andy > > > On Thu, Jul 11, 2013 at 6:50 AM, James Trunk > > wrote: > >> Hello Laurent, >> >> Thank you so much for your detailed and helpful reply.

Re: [ANN] Dunaj project, an alternative core API for Clojure

2015-03-20 Thread James Trunk
Congratulations on the release! Thank you for putting yourself and your ideas out there in this way, and for reminding us not to settle for what we have now, but to continually push towards ever greater heights. Best, James On Friday, March 20, 2015 at 6:35:37 AM UTC+1, Jozef Wagner wrote: > >

Re: Lessons Learned from Adopting Clojure

2014-02-05 Thread James Trunk
As a TDD practitioner and Expectationsuser, I've been following this thread with great interest! @Jay: Will your change in thinking have any impact on Expectations? My experience with TDD in Clojure has been an overwhelmingly positive one, and it se

[Video] The case for Clojure

2014-03-01 Thread James Trunk
Hi everyone, I made a new video about Clojure that I wanted to share with you all. It's a sales pitch for choosing Clojure as the language for your next project: The case for Clojure I realise that if you're reading this discussion group there's a good chance that

Re: ANN simple-time

2014-03-20 Thread James Trunk
Hi Matt, Thanks for your work on this library, it looks truly excellent. The next time I need to deal with dates or times I'll be reaching straight for simple-time. Cheers, James On Thursday, March 20, 2014 7:15:55 PM UTC+1, Matt Bossenbroek wrote: > > It is my pleasure to announce simple-tim

Re: local mutable state

2014-03-20 Thread James Trunk
Hi Andy, I think Mr. Reeves gave you some excellent reasons to avoid using local mutable state, especially when trying to learn functional programming. If you're interested in seeing a spoiler for 114 you can look at one approach below (if you don't want a spoiler, then close this tab post-hast

[Video] Game development in Clojure (with play-clj)

2014-03-27 Thread James Trunk
Hi everyone, I thought some of you might be interested to watch my screencast about game development in Clojure with play-clj . Cheers, James -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to t

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread James Trunk
st > by looking at the example games. Thanks! > -Kris > > On Thursday, March 27, 2014 10:07:21 AM UTC-7, James Trunk wrote: >> >> Hi everyone, >> >> I thought some of you might be interested to watch my screencast about game >> development in Clojure w

Re: [Video] Game development in Clojure (with play-clj)

2014-04-13 Thread James Trunk
> code available (for searching/skimming). Is that somewhere online? > -Kris > > > On Sun, Apr 13, 2014 at 2:47 PM, James Trunk > > wrote: > >> Hi Kris, >> >> Thanks for your comment, and I'm very glad that you found the video >> helpful. >

Re: [Video] Game development in Clojure (with play-clj)

2014-04-16 Thread James Trunk
:x 6} {:apple? true :x 4} {:player? > true :x 550}]) > ({:apple? true, :x 6} {:apple? true, :x 4}) > > > Thanks again, > Eduard > > > On Thursday, March 27, 2014 7:07:21 PM UTC+2, James Trunk wrote: >> >> Hi everyone, >> >> I thought some of you mig

Re: boolean problem

2014-04-17 Thread James Trunk
Hi Roelof, I'd recommend using an editor that supports rainbow brackets so you can easily see when your parens are matched. Also, when you get your parens matched you'll find another error in your code, check out the docs for if to figure th

Re: why is this failing on a list

2014-05-04 Thread James Trunk
Also, don't forget that vectors are zero indexed, so (- (count v) 1) will give you the last element, not the second last. Cheers, James On Sunday, May 4, 2014 4:49:45 PM UTC+2, Lee wrote: > > > > On May 4, 2014, at 10:42 AM, Roelof Wobben > > wrote: > > > For 4clojure I have to find the second

Re: [ANN] Nightmod, a tool for making live-moddable games

2014-05-31 Thread James Trunk
I've played around a little with Nightmod, and I really like what I've seen. It's an excellent introduction to games programming; allowing people to experiment their way to understanding by seeing their tweaks/additions reflected immediately in the running game. I'm going to be recommending Nig

[Video] Generative testing in Clojure

2014-01-01 Thread James Trunk
Hi everyone, Here is an introduction to generative testing in Clojure using simple-check. I hope newcomers to the technique/library find it useful! Cheers, James -- -- You received this message because you are subscribed to the Google Groups "Clo

Re: [Video] Generative testing in Clojure

2014-01-02 Thread James Trunk
es the value of the > "shrinking" part of the algorithm. Thanks for publishing this. > > > On Wed, Jan 1, 2014 at 10:58 AM, James Trunk > > wrote: > >> Hi everyone, >> >> Here is an introduction to generative testing in >> Clojure<http://www.youtu

How to handle configuration in Clojure?

2014-01-13 Thread James Trunk
I've been investigating how to handle configuration in a Clojure application/library, and have discovered two main candidates: dynamics vars and argument passing. The downsides to dynamic vars seem to be: hiddenness, thread safety, and more complex tests (binding before each test). The downsid

Re: How to handle configuration in Clojure?

2014-01-14 Thread James Trunk
ntroduces around thread dispatching, which Stuart Sierra explains in this blog post<http://stuartsierra.com/2013/03/29/perils-of-dynamic-scope> . Cheers, James On Monday, January 13, 2014 7:10:38 PM UTC+1, Stefan Kanev wrote: > > On 13/01/14, James Trunk wrote: > > The downsides to dy

Re: [ANN] play-clj, a game library

2014-01-21 Thread James Trunk
Thanks for all your hard work on this - it looks awesome, and I can't wait to play around with it! I like the conciseness of the project name, but I worry that it doesn't roll off the tongue all that well. I guess that *jure* library names are considered passé by most, but in this case I actual

Re: [ANN] play-clj, a game library

2014-01-21 Thread James Trunk
y, January 21, 2014 12:41:56 PM UTC+1, fmj...@gmail.com wrote: > > On 21/01/14 09:50, James Trunk wrote: > > I like the conciseness of the project name, but I worry that it doesn't > roll off the tongue all that well. I guess that *jure* library > names are consider