(. rnd nextInt) vs (.nextInt rnd)

2011-06-15 Thread James Keats
Hi all. I'm struggling to see the point of this (from Pragmatic's Programming Clojure): Java => rnd.nextInt() Clojure => (. rnd nextInt) sugared => (.nextInt rnd) What's the point of the sugared version? It's not any less to type. It's also incomprehensible to me how it came about. In the midd

Re: (. rnd nextInt) vs (.nextInt rnd)

2011-06-15 Thread James Keats
> > > What's the point of the sugared version? It's not any less to type. > > Actually there's one fewer character -- a space. > Okay, I'll give you that. > > It's also incomprehensible to me how it came about. In the middle one > > it's simple, class and method, but the in sugared one it's just

(function [args] more args)

2011-06-15 Thread James Keats
Hi again. This is another syntax that I'm struggling with: (function [args] more args) Or for example: (subvec [1 2 3 4 5] 1 3) Please note I'm not referring specifically to the subvec function, but simply using it as an example, as I've seen this syntax with many other functions, but it escap

Re: (function [args] more args)

2011-06-15 Thread James Keats
Hi, I admit that subvec is not a good example as it does indeed take a vector as a first argument, perhaps i'll find better example or perhaps I might've just been confused. I learnt lisp and scheme many years ago, abandoned them for languages with better libraries, and I'm perhaps thrown off by th

Why should I use emacs instead of netbeans?

2011-06-18 Thread James Keats
Hello all. I'm currently using Netbeans' clojure IDE and I quite like it. It has a REPL. It highlights syntax and matches parentheses. It supports maven and mercurial/git. It provides completion and doc for both clojure and java. It has allows evaluation of forms from source code to repl. It also

Re: Why should I use emacs instead of netbeans?

2011-06-19 Thread James Keats
On Jun 18, 4:08 pm, Stefan Kamphausen wrote: > Hi, > > these modern IDEs really do a tremendous job at organizing projects and > providing additional information at programming time. It's just, their > text-editor components suck. > > If you are a Java developer, it's probably better to stay awa

Are the docs on clojure.org always kept up to date?

2011-06-19 Thread James Keats
Hi all, Clojure seems to be a language in a bit of flux (eg, defstruct vs defrecord), is there a canonical set of docs that keeps all of this up- to-date? are the docs on clojure.org always kept up to date? is there a place to track succinct notes on language evolution, conventions and community b

Re: hammock driven development...

2011-06-21 Thread James Keats
On Jun 21, 6:54 pm, miner wrote: > Here's some more support for the hammock: > > http://www.npr.org/blogs/health/2011/06/20/137300311/why-hammocks-mak... > If this is going to be anything like those ambient orbs, then I better hurry up and invest in hammocks. -- You received this message bec

Please stand firm against Steve Yegge's "yes language" push

2011-07-01 Thread James Keats
Hi all. I've been looking at Clojure for the past month, having had a previous look at it a couple of years ago and then moved on to other things only to return to it now. Over the past decade I have looked at many languages and many ways of doing things. People may say this language or that lang

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 1, 10:50 pm, Gregg Reynolds wrote: > On Fri, Jul 1, 2011 at 2:59 PM, James Keats wrote: > > > ... > > > Whereas when Steve Yegge writes: > > Who? Indeed. I'm not wishing this to be a personal attack on Steve Yegge, but a fair and justified re-examina

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
want something > more powerful, and show them what is truly possible. > > Cheers, > > Aaron Bedra > -- > Clojure/corehttp://clojure.com > > On 07/01/2011 03:59 PM, James Keats wrote: > To be absolutely clear, I am not against Steve Yegge as a person. The title of my

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 2, 3:54 pm, David Nolen wrote: > On Sat, Jul 2, 2011 at 4:05 AM, faenvie wrote: > > I agree, that clojure will not gain java-like popularity in > > a forseeable future. > > > IMO clojure is much more a Language for SystemProgrammers > > (high demands, thinking in concurrency) than a Lang

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 2, 6:39 pm, David Nolen wrote: > On Sat, Jul 2, 2011 at 12:23 PM, James Keats wrote: > > > I therefore see it most suited, as I said, for the advanced > > independent programmer, or at most a small team of advanced enough > > programmers. > > I think Clojure

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 2, 6:41 pm, Stefan Kamphausen wrote: > FWIW, > > However, as Aaron pointed out, I'd rather a more tolerant, pleasant > community. > > Kind regards, A month ago I asked a question here that barely a minute after clicking "send" realized was utterly dumb. It reminds of an anecdote about an

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 2, 8:33 pm, David Nolen wrote: > On Sat, Jul 2, 2011 at 3:21 PM, James Keats wrote: > > And once you encounter the > > reality and frustration infamously characterized by likening the > > managing of lispers to the herding of cats then you begin to admire > >

Re: Clojure for large programs, was Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-02 Thread James Keats
On Jul 2, 8:33 pm, Mark Engelberg wrote: > On Sat, Jul 2, 2011 at 12:21 PM, James Keats wrote: > > A very recent quote by Abelson is relevant: > > "One of the things I’m learning here (Google) is the experience of > > working on these enormous programs. I just never e

Re: Clojure for large programs

2011-07-03 Thread James Keats
On Jul 3, 2:26 am, Mark Engelberg wrote: > Ideally, I was hoping to start a more in-depth discussion about the > pros and cons of "programming in the large" in Clojure than just > waxing poetic about Clojure/Lisp's capabilities in the abstract :) I am yet to do a large program in clojure, I st

Re: Clojure for large programs

2011-07-03 Thread James Keats
On Jul 3, 5:21 pm, Christian Schuhegger wrote: > Nevertheless for large connected data graphs I think something like a > data-schema is needed. Clojure would still follow its approach to only > deal with maps, but there is a descriptive meta-data level in addition > that explains the connection

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-03 Thread James Keats
On Jul 3, 9:02 pm, Sean Corfield wrote: > On Sun, Jul 3, 2011 at 3:14 AM, James Keats wrote: > > Perhaps we move in different circles but I've seen as much "bad Java" > in the large as I ever used to see "bad FORTRAN" and "bad C / C++" > co

Re: Clojure for large programs

2011-07-04 Thread James Keats
On Jul 4, 5:45 am, Christian Schuhegger wrote: > Thanks for your feed-back. I already have RDF/OWL in my tool-kit. I am > only not sure if an ERP like system should be modeled along those > lines. But I did not put enough thought in that direction yet. Would > you base an ERP like system on top

Re: Clojure for large programs

2011-07-04 Thread James Keats
On Jul 4, 1:26 pm, James Keats wrote: > On Jul 4, 5:45 am, Christian Schuhegger > A good > book to get you started would SEMANTIC WEB for the WORKING ONTOLOGIST, > of which a second edition has recently come out. :-) Sorry about the unintentional "to get you started" fi

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-04 Thread James Keats
On Jul 3, 6:15 am, Ken Wesson wrote: > > There's one obvious use case for such a wrapper function, though: if > you'll want to pass the Java method to HOFs from time to time. You > can't directly pass a Java method to a HOF, but you can pass such a > wrapper function. > Pardon me if I'm wrong,

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-06 Thread James Keats
On Jul 5, 11:07 pm, faenvie wrote: > note on the original posting: > > > First, he shouldn't be porting Java code to clojure, Second, Clojure IS > > fundamentally different from Java, and third, such said users who > > don't want to touch Java should not touch Clojure. > > to port java-code to c

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-06 Thread James Keats
On Jul 5, 7:30 pm, Sean Corfield wrote: > On Sun, Jul 3, 2011 at 8:04 PM, Sean Corfield wrote: > > On Sun, Jul 3, 2011 at 3:34 PM, James Keats wrote: > >> For example I suggest you look at this video/transcript and pay > >> attention in particular to the point of d

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread James Keats
On Jul 7, 6:42 am, nchubrich wrote: > I'll try :)  It was really a polemical post for a polemical thread, > but my main points can be extracted here.  Feel free to read as many > or as few of them as you are inclined nchubrich, I've read your original post in its entirely, so forgive me for not

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread James Keats
On Jul 7, 8:09 am, nchubrich wrote > > (As for Steve Yeggeis he reading all this?if he's totally > wrong, then of course people should feel free to disagree with him, > and forget about the consequences.  But if he happens to be \right, > and I do think he mostly is, then making basicall

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread James Keats
On Jul 7, 8:03 pm, logan wrote: > > This poisonous attitude is perfectly exemplified in this thread by > James Keats. I completely disagree with your mis-characterization and invite you to read again what I had maintained: - I had implored that technical arguments alone shou

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-07 Thread James Keats
On Jul 7, 8:35 pm, nchubrich wrote > > someone whose name I can't remember right now > > once said, "There are no bad students, only bad teachers." There are three good books already and more on the way (I look forward to Clojure in Action later this month), there are excellent videos on bli

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-08 Thread James Keats
On Jul 8, 6:19 am, Ken Wesson wrote: > On Fri, Jul 8, 2011 at 1:07 AM, Lee Spector wrote: > > > On Jul 7, 2011, at 7:29 PM, Sean Corfield wrote: > >> And yet the #1 "FAQ" we see on lists and reflected in blog posts is > >> about getting Clojure up and running... We see Java developers, > >> com

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-08 Thread James Keats
On Jul 8, 4:30 pm, Lee Spector wrote: > On Jul 8, 2011, at 10:29 AM, James Keats wrote: > > > May I also add the following caveat emptors: > > - If you're new to programming, clojure will overwhelm you. Start with > > something like python. > > I disagree. Thi

Re: Emacs and clojure for newbies

2011-07-08 Thread James Keats
On Jul 8, 7:14 pm, nchubrich wrote: > > I disagree. This is a subject of religious debates that I don't want to get > > into in detail, but FWIW this educator thinks that Lisp > is a perfectly > > defensible first language and that Clojure can serve the purpose quite well > > as long as insta

Re: Please stand firm against Steve Yegge's "yes language" push

2011-07-08 Thread James Keats
On Jul 8, 8:02 pm, Lee Spector wrote: > > I'm with you 95% here, but I do think that this much editor "fanciness" is > needed to have a sane environment for coding lisp for anything more than a > few minutes: bracket-matching and language-aware auto-re-indenting. If > there's a straightforwar

Re: Modelling complex data structures (graphs and trees for example)

2011-07-08 Thread James Keats
On Jun 16, 3:08 pm, Colin Yates wrote: > (newbie warning) > > Our current solution is an OO implementation in Groovy and Java.  We > have a (mutable) Project which has a DAG (directed acyclic graph). > This is stored as a set of nodes and edges.  There are multiple > implementations of nodes (wh

Re: Modelling complex data structures (graphs and trees for example)

2011-07-08 Thread James Keats
On Jul 8, 8:57 pm, James Keats wrote: > On Jun 16, 3:08 pm, Colin Yates wrote: > > (newbie warning) > > > Our current solution is an OO implementation in Groovy and Java.  We > > have a (mutable) Project which has a DAG (directed acyclic graph). > > This is stor

Re: Modelling complex data structures (graphs and trees for example)

2011-07-09 Thread James Keats
t elegant > solution with new tools. > > I probably ate something that disagreed with me, but I just want to break > free from the shackles of these heavy-weight tools and fly!  OK - that's > enough. > > Or, it might all be a catastrophic failure and I will be signing up

monads > macros

2011-07-12 Thread James Keats
I'm mildly concerned about macros being seen as the "secret weapon" of clojure(/lisp). In their place, i wish monads would get a wider attention and embrace. Discuss? :-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send e

Re: monads > macros

2011-07-12 Thread James Keats
On Jul 12, 2:36 pm, Tamreen Khan wrote: > Are monads all that special? My understanding is that even in Haskell > its wise to not use monads all that much, since it starts to make the > code look a little too imperative if not wielded correctly. They're > not really the meat of haskell/fp. Macro

Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
Alright, to be honest, I'm disappointed. First of all, congrats and good job to all involved in putting it out. On the plus side, it's a good way to use the Google Closure javascript platform. On the minus, imho, that's what's wrong with it. Google Closure is too Java. It's not idiomatic JavaSc

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
Steve Yegge's Universal Design Pattern and prototype pattern a la Javascript could be married to clojure's in the chapter that discuss namespaces, multimethods, protocols and datatypes, and then turn around and implicitly declare to the world with the release of clojurescript "oh noes!

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
On Jul 24, 6:03 pm, David Nolen wrote: > As a professional JavaScripter for the past 6 years who has built his own > frameworks and written considerable amounts of Prototype, MooTools, and > jQuery. > > I don't think jQuery is special or particularly interesting and most of the > libraries aroun

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
On Jul 24, 7:05 pm, David Nolen wrote: > On Sun, Jul 24, 2011 at 1:46 PM, James Keats wrote: > > > The Javascript notaries have advocated using a small functional subset > > of javascript, rather than the full gamut of javscript's quirks, and I > > was saddened w

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
On Jul 24, 7:24 pm, Michael Gardner wrote: > On Jul 24, 2011, at 1:11 PM, James Keats wrote: > > >> Restricting yourself to a functional subset of JavaScript can't fix > >> JavaScript. The functional subset stinks, Javascript notaries be damned. > > > If s

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
I find regrettable. On Jul 24, 10:28 pm, Rich Hickey wrote: > On Jul 24, 11:19 am, James Keats wrote: > > > Alright, to be honest, I'm disappointed. > > I'll make sure you get a refund then. > > Seriously, this is like being disappointed an action movie was an

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-24 Thread James Keats
On Jul 24, 10:23 pm, Base wrote: > "Why should we care what kind of Javascript ClojureScript generates, > as long as it's correct and performant? The whole point of the project > is to allow us to write Clojure rather than Javascript!" > > James, you do get this point, right?  Just like GWT allo

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-25 Thread James Keats
x27;m making an attempt at humor in the technical arguments I'm making. On Jul 24, 10:28 pm, Rich Hickey wrote: > On Jul 24, 11:19 am, James Keats wrote: > > > Alright, to be honest, I'm disappointed. > > I'll make sure you get a refund then. > > Seriously,

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-25 Thread James Keats
Perhaps I should've just looked for a blog about knitting or cupcakes and posted what I did here about clojure/clojurescript in it. That way you fine folks won't get to read it, eventhough no one here is obliged in any way to read my posts or any in this thread. Yeah, definitely, that way I might'

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-26 Thread James Keats
On Jul 26, 1:53 am, Christian Marks <9fv...@gmail.com> wrote: > On Jul 25, 6:11 pm, James Keats wrote:> I ask, what > is it that I did other than "seriously inquire about the > > rationale"?! > > You started a thread with the non-serious title, &q

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-26 Thread James Keats
On Jul 26, 2:01 pm, semperos wrote: > Based on the majority of posts in this thread, I think you can see you're in > the minority, both with regards to your opinions of ClojureScript and with > regards to how this community should behave. Here's one more person who > doesn't appreciate the attit

Re: Alright, fess up, who's unhappy with clojurescript?

2011-07-26 Thread James Keats
On Jul 26, 3:08 pm, Timothy Baldridge wrote: Hi Timothy, and thanks for your much-better-than-others' reply. > > Oh I will be washing my hands and be gone for sure, as coding and > > making things better is precisely what I offered in my OP, which was > > taken as a "threat" and I was told to

Re: novel feedback is always welcome

2011-08-01 Thread James Keats
As an outcome of this thread, I have decided not to invest in clojure, so I believe the following to be purely feedback, as I have no agenda to push. - it seems from some's point of view that I was "trolling". Fine, from my point of view though it was akin to "drink the kool aid or gtfo". Sorry,

Re: novel feedback is always welcome

2011-08-01 Thread James Keats
As an outcome of this thread, I have decided not to invest in clojure, so I believe the following to be purely feedback, as I have no agenda to push. - it seems from some's point of view that I was "trolling". Fine, from my point of view though it was akin to "drink the kool aid or gtfo". Sorry,