Re: Idiomatic program for someone new to Clojure

2020-12-30 Thread Jakub Holý
I am late to the party but you might find https://blog.jakubholy.net/clojure-common-beginner-mistakes/ useful. It also links to a few very valuable resources. On Thursday, December 17, 2020 at 12:42:41 AM UTC+1 Derek Troy-West wrote: > Hello James, > > Aditya links to one of Stuart Sierra's Do

Re: Idiomatic program for someone new to Clojure

2020-12-16 Thread Derek Troy-West
Hello James, Aditya links to one of Stuart Sierra's Do's and Don't posts. That series of posts really influenced my basic Clojure style and I'd suggest reading them all: https://stuartsierra.com/tag/dos-and-donts, they're (mostly!) great and simple advice. Best, Derek On Tuesday, December 1

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread aditya....@gmail.com
On Wednesday, December 16, 2020 at 3:12:22 AM UTC+5:30 jamesl...@gmail.com wrote: > So I think I can answer my first question. That particular line in > `pipeline-build-count` is doing associative destructing > . > And you di

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread Peter Strömberg
Seconding aditya's advice here. I can truly recommend watching this talk about solving problems the Clojure way: https://youtu.be/vK1DazRK_a0 Interestingly, he applies it on a JavaScript code example. Which makes it all that much more powerful. On Tue, 15 Dec 2020 at 22:42, James Lorenzen wrote

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread James Lorenzen
So I think I can answer my first question. That particular line in `pipeline-build-count` is doing associative destructing . And you didn't have to do the `as response` but like you said in your comment, you are just doing tha

Re: Idiomatic program for someone new to Clojure

2020-12-15 Thread James Lorenzen
Thanks for the suggestions aditya. I definitely like where you are headed. I have a few questions. This syntax in `pipeline-build-count` method looks confusing to me: > [{:keys [body] :as response}] ;; destructuring for convenience and function API documentation Would you mind breaking that dow

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread aditya....@gmail.com
I'd try to separate the "I/O or side-effecting" parts from the "purely data processing" parts. This makes the program much easier to test --- the "purer" the code, the better it is. This also helps tease apart domain-agnostic parts from domain-specialised parts, which is useful, because domain-

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread James Lorenzen
Very cool everyone. This is exactly the kind of feedback I was hoping for. I'm going through Clojure for the Brave and I hadn't made it to the macros chapter yet. That single threading macro is pretty sweet! Thanks everyone! On Monday, December 14, 2020 at 11:00:02 AM UTC-6 brando...@gmail.com

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread Brandon R
Hey James, Another small suggestion is you can just pass println to map, since it takes 1 argument in your case. (map println (sort builds)) But here, since you just want to perform side effects, maybe run! would be a better function to use. (run! println (sort builds)) This would cause it to

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread Justin Smith
a small suggestion: you don't need to nest let inside let, a clause can use previous clauses: (defn get-latest-build [pipeline] (let [response (fetch-pipeline pipeline) json (parse-string (:body response) true) [pipeline] (:pipelines json)] (:counter pipeline also conside

Idiomatic program for someone new to Clojure

2020-12-14 Thread James Lorenzen
Hello all, This is my first Clojure program and I was hoping to get some advice on it since I don't know any experienced Clojure devs. I'm using it locally to print the latest build numbers for a list of projects. ``` (ns jlorenzen.core (:gen-class) (:require [clj-http.client :as client])

Re: Help please: New to clojure development

2018-02-07 Thread Nadeen Kurz
Thank you, appreciate it On Feb 7, 2018 12:16 AM, "Aditya Athalye" wrote: > Welcome to Clojure, Nadeen. > > A few friends and I created "Clojure by example" for programmers not > familiar with Clojure https://github.com/inclojure-org/clojure-by-example > > This is intended as a quick-start to a

Re: Help please: New to clojure development

2018-02-06 Thread Aditya Athalye
Welcome to Clojure, Nadeen. A few friends and I created "Clojure by example" for programmers not familiar with Clojure https://github.com/inclojure-org/clojure-by-example This is intended as a quick-start to a common way of problem-solving with Clojure. The README explains more, and should he

Re: Help please: New to clojure development

2018-02-06 Thread Andy Fingerhut
re confused as to how `map` handles multiple >>> arguments. If you call: >>> >>> (map f [1 2 3] [4 5 6]) >>> >>> Then it will return: >>> >>> [(f 1 4) (f 2 5) (f 3 6)] >>> >>> The two collections are lined up, th

Re: Help please: New to clojure development

2018-02-06 Thread Nadeen Kurz
te-desc2 [input-file] >> (let [desc2 (:st_abbrev input-file)] >> (case desc2 >> "AZ" (assoc input-file :state "Arizona") >> "FL" (assoc input-file :state "Florida") >> "OH" (assoc

Re: Help please: New to clojure development

2018-02-06 Thread Simon Luetzelschwab
> > (defn state-desc2 [input-file] > (let [desc2 (:st_abbrev input-file)] > (case desc2 > "AZ" (assoc input-file :state "Arizona") > "FL" (assoc input-file :state "Florida") > "OH" (assoc

Re: Help please: New to clojure development

2018-02-06 Thread Nadeen Kurz
"OH" (assoc input-file :state "Ohio") "default"))) You could also write it as: (def state-names {"AZ" "Arizona", "FL" "Florida", "OH" "Ohio"}) (defn state-desc3 [input-file] (assoc input-file

Re: Help please: New to clojure development

2018-02-05 Thread James Reeves
ult"))) You could also write it as: (def state-names {"AZ" "Arizona", "FL" "Florida", "OH" "Ohio"}) (defn state-desc3 [input-file] (assoc input-file :state (state-names (:st_abbrev input-file On 6 February 2

Help please: New to clojure development

2018-02-05 Thread Nadeen Kurz
Can someone help me with the following please: I am new to clojure and i haven't developed in 4 years, previous was mainframe. See questions in blue ; Task is to add full state name based on st_abbr (def input-file [{:st_abbrev "AZ", :firstname "joh

Re: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:25 PM, "Gregg Reynolds" wrote: On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi Gregg, I had a look at Aleph - looks fantastic! Plus it seems to have good docs as well.

Re: New to Clojure

2017-01-16 Thread Gregg Reynolds
On Jan 16, 2017 5:15 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi Gregg, I had a look at Aleph - looks fantastic! Plus it seems to have good docs as well. RE the bids, very special use case constraints set by the client

Re: New to Clojure

2017-01-16 Thread (hash-map :new &quot;to clojure" :need "assistance")
hash-map :new "to clojure" :need "assistance")" < > nas...@gmail.com > wrote: > > Hi all! > > So, I'm new to Clojure! I'm coming in from a Java background and am > currently working on a project that has prompted me to have a look at >

Re: New to Clojure

2017-01-16 Thread (hash-map :new &quot;to clojure" :need "assistance")
d a > pleasure to use. > > Good luck with your project. > > regards, > Simon > > On Monday, 9 January 2017 23:06:30 UTC, (hash-map :new "to clojure" :need > "assistance") wrote: >> >> Hi all! >> >> So, I'm new to Cloju

Re: New to Clojure

2017-01-14 Thread Gregg Reynolds
On Jan 9, 2017 5:06 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi all! So, I'm new to Clojure! I'm coming in from a Java background and am currently working on a project that has prompted me to have a look at w

Re: New to Clojure

2017-01-14 Thread Gregg Reynolds
On Jan 9, 2017 5:06 PM, "(hash-map :new "to clojure" :need "assistance")" < nas@gmail.com> wrote: Hi all! So, I'm new to Clojure! I'm coming in from a Java background and am currently working on a project that has prompted me to have a look at w

Re: New to Clojure

2017-01-14 Thread simon lomax
As far as SQL libraries for Clojure are concerned I would highly recommend HugSQL <https://www.hugsql.org/>. Comprehensive documentation and a pleasure to use. Good luck with your project. regards, Simon On Monday, 9 January 2017 23:06:30 UTC, (hash-map :new "to clojure" :n

Re: New to Clojure

2017-01-12 Thread Christopher Small
es an excellent argument in this vein. My 2c Chris On Thursday, January 12, 2017 at 11:43:17 AM UTC-8, (hash-map :new "to clojure" :need "assistance") wrote: > > Hi Dennis, > > Thanks very much for getting back to me - this sounds really good. I've > had a look

Re: New to Clojure

2017-01-12 Thread (hash-map :new &quot;to clojure" :need "assistance")
e movement from Java to Clojure easy for someone completely new to > Clojure? > > See above. Familiarity with Java means the ecosystem and tooling (and > stacktraces) won’t cause you any problems, but at the same time, if your > developers are steeped in Java / OOP thinking,

Re: New to Clojure

2017-01-12 Thread (hash-map :new &quot;to clojure" :need "assistance")
ble should > be easy to use. You may want to check into some of the Clojure libraries > that provide DSLs for generating SQL statements. I've tried > http://sqlkorma.com/ and https://github.com/jkk/honeysql, and I've had > fairly good luck with both of them. > > Dennis

New to Clojure - productivity and debugging with Emacs

2017-01-12 Thread Chad Stovern
Not much to add here, but if you're digging into Emacs and the modes you've listed, I've started to document my emacs config here: https://github.com/chadhs/dotfiles/blob/master/editors/emacs-config.org If you're curious about common feature uses; head to the keybindings section and look at the

Re: New to Clojure - productivity and debugging with Emacs

2017-01-12 Thread Bill Piel
The key to using sayid to capture curl requests is having emacs/cider connected to the same jvm instance that is running the web server. I did this by starting a repl with `lein repl`, then calling the -main function, which started the web server. From there, I used sayid to trace namespaces an

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Colin Yates
The big barrier for me with emacs was discovering and then remembering all of the various finger-bending chords to do things. Spacemacs uses hydra so all the key mappings are grouped in a very logical way. Have a read of http://spacemacs.org, particularly the horizontal image slide show. But yeah,

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for your reply. I saw the video of your presentation and it seems like your tool is exactly what I am looking for. I've actually installed the package in Emacs and configured the Emacs/CIDER integration, but I haven't gotten to try it thoroughly just yet. In your video, you demons

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Gregg Reynolds
On Jan 8, 2017 1:52 AM, "ahawk" wrote: .. I find it difficult to know exactly what to expect from these libraries and many other, unless, of course, I read and understand their source. That is a challenge in its own right for a less advanced programmer such as myself. The good news is that i

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
I guess you're right.. however, I'm generally inclined to try to do it the right way (or, what I perceive as the right way) the first time. Now I know liberator exists, I feel an urge to use it :-) With regards to logging, I actually considered that option, but it just didn't seem very producti

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for the very elaborate reply. I should probably buy SICP. With regards to discovery, I will have a closer look at clojure.spec. It looks interesting. I've previously (perhaps wrongfully) discarded Prismatic Schema, thinking something like "don't you really just want static types?"

Re: New to Clojure

2017-01-09 Thread Sean Corfield
ure is easy for some and extremely hard for others. > Is the movement from Java to Clojure easy for someone completely new to > Clojure? See above. Familiarity with Java means the ecosystem and tooling (and stacktraces) won’t cause you any problems, but at the same time, if your de

Re: New to Clojure - productivity and debugging with Emacs

2017-01-09 Thread J.-F. Rompre
Hi ahawk, If you have the time, by all means reach for all the references and books mentioned in this thread, and there is a wealth of free resources out there. However doing both that and learning a powerful tool such as Emacs/CIDER at the same time can be frustrating. If time is of the essenc

Re: New to Clojure

2017-01-09 Thread Matching Socks
You mention SQL. Note, that using JDBC in Clojure is really, really easy. It's a porcupine in Java, but in Clojure it's pure fudge. Whatever your Java frame of reference for an ORM might be, Hibernate or Spring or whatever, bang! you probably won't need it. Sure, there are JDBC wrappers for

Re: New to Clojure

2017-01-09 Thread Dennis Roberts
ojure libraries that provide DSLs for generating SQL statements. I've tried http://sqlkorma.com/ and https://github.com/jkk/honeysql, and I've had fairly good luck with both of them. Dennis On Monday, January 9, 2017 at 4:06:30 PM UTC-7, (hash-map :new "to clojure" :need &

New to Clojure

2017-01-09 Thread (hash-map :new &quot;to clojure" :need "assistance")
Hi all! So, I'm new to Clojure! I'm coming in from a Java background and am currently working on a project that has prompted me to have a look at whether Clojure would be useful. I have started by going through the "Brave Clojure" website and working through the exercise

Re: New to Clojure - productivity and debugging with Emacs

2017-01-09 Thread Bill Piel
ahawk, I've been using clojure for years, but can still relate to the issues you are facing, which is why I wrote a debugging/development tool to help. It's called sayid. It can be used directly from the repl, but has an emacs/cider integration that makes it much more powerful. http://bpiel.g

Re: New to Clojure - productivity and debugging with Emacs

2017-01-08 Thread Matching Socks
That is an ambitious project. Divide and conquer. One super duper benefit of Clojure is that if you make a web app with, say, just Ring and Compojure, you can later transplant that work into a more elaborate app scaffolding, because it's all just plain maps. "quite a lot of map manipulation g

Re: New to Clojure - productivity and debugging with Emacs

2017-01-08 Thread Colin Yates
Hi ahawk and welcome to Clojure! Your question seems to cover multiple domains: - navigating/discovery in non-statically typed languages, specifically Clojure - developing in Clojure - developer tools (e.g. IDE for Clojure) (I can feel a stream of consciousness/ramble coming so so this might t

New to Clojure - productivity and debugging with Emacs

2017-01-07 Thread ahawk
Hi everyone I am a rather unexperienced Clojure user, so please bear with me. I am developing a web app using popular libraries such as ring, compojure, liberator and friend to handle routing, content negotiation and authentication. There is quite a lot of map manipulation going on with the re

Re: New to Clojure, need some help

2012-08-09 Thread Baishampayan Ghose
On Thu, Aug 9, 2012 at 10:11 AM, Jason Long wrote: > Also, can anyone tell me why != is not included for equality testing, that > would make this problem easy. To answer your other question, != in Clojure is called not= Regards, BG -- Baishampayan Ghose b.ghose at gmail.com -- You received t

Re: New to Clojure, need some help

2012-08-09 Thread Timothy Baldridge
To clarify Baishampayan's code, hash-sets in Clojure are functions: => (#{1} 1) 1 => (#{1} 2) nil Nil and false in Clojure are the same thing, So Baishampayan's example: (remove #{:a :z :x} [:a :b :a :c :d :e :z :b :d :e :x :z]) #{:a :z : x} will return nil if the value is not in the vector,

Re: New to Clojure, need some help

2012-08-09 Thread Baishampayan Ghose
Hi, Does this work for you? (remove #{:a} [:a :b :a :c :d :e]) Also, if you have a list of items you can have all of them in the same set/predicate like so - (remove #{:a :z :x} [:a :b :a :c :d :e :z :b :d :e :x :z]) Hope this helps. Regards, BG On Thu, Aug 9, 2012 at 10:11 AM, Jason Long w

New to Clojure, need some help

2012-08-09 Thread Jason Long
I am trying to remove every occurrence of a given element from a vector. I can use (filter #(== % a) v) where 'a' is the value to be removed and 'v' is the vector, but this returns 'a' and 'a' is the value i want to remove. So, how can i do this? I tried replacing 'filter' with 'remove' but it

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Brian Marick
On Aug 2, 2011, at 7:23 PM, Armando Blancas wrote: > Check out the work of Warren Teitelman on > Conversational LISP and Do What I Mean, way back when most in this > board weren't even born. Around 1985, I heard Teitelman's "Do What I Mean" (DWIM) referred to as DWWTWHM ("Do What Warren Teitel

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Brian Goslinga
On Aug 2, 8:39 am, Ken Wesson wrote: > It is true that the messages commonly encountered could stand to be > better documented on a Clojure site. I'm wondering if we could go > further, though, and make REPL exception printing more informative. > The Java exception gets stored in *e, so someone ca

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread Nicolas
On 3 août, 03:00, Mark wrote: > The compiler might not be able to do better but the runtime system certainly > could.  In this case, both filtered and more information is what's needed.   > Why couldn't the runtime generate a message like: > Symbol "fac" of type clojure.lang.IFn is used where type

Re: New to Clojure -- Errors Are Frustrating

2011-08-03 Thread MarisO
(defn fac [n] (if (= n 1) 1 (* n fac (- n 1 your code tries to multiply n by function this is correct: (defn fac [n] (if (= n 1) 1 (* n (fac (- n 1) On Aug 2, 8:11 am, recurve7 wrote: > In browsing this group I see this topic has been brought up several > times over the past 3 years

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Mark
The compiler might not be able to do better but the runtime system certainly could. In this case, both filtered and more information is what's needed. Why couldn't the runtime generate a message like: Symbol "fac" of type clojure.lang.IFn is used where type java.lang.Number is expected in #2 o

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Luc Prefontaine
I've been coding in Clojure since mid-2008, I have a Lisp background but coded mainly in Java for a number of years (2000-2010) I still goof from time to time with parenthesis. Just yesterday, I screwed up some expression imbrication in a module and it took me at least 30 mns to figure it out. Ok

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Lee Spector
On Aug 2, 2011, at 8:23 PM, Armando Blancas wrote: > Check out the work of Warren Teitelman on > Conversational LISP and Do What I Mean, way back when most in this > board weren't even born. CLISP could handle your typo, > unsympathetically called "careless" in the paper; oh, well... Ah, INTERLIS

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Brent Millare
The following code may prove useful as well. (defmacro log "for debugging, output code and code->val to stdout or optional writer, returns val, custom-fn accepts two arguments, the code, and the result, it must return a string" ([code] `(let [c# ~code] (prn '~code) (clojur

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Armando Blancas
> It's encouraging to see the community is thinking of > ways to improve this. We shouldn't, however, expect any significant improvements, IMO. For the reasons explained, and the fact that lisp has almost no syntax, this is a difficult problem to solve. Not that it has prevented people from trying

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Hi Jeremy, I'm not just thinking about Clojure from the perspective of a Java person, but also from the perspective of someone new to programming and for kids. For the latter, it's best if languages have maximum friendliness in error wording and error messages pointed at a specific character posit

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Thank you, Ken. It's encouraging to see the community is thinking of ways to improve this. On Aug 2, 6:39 am, Ken Wesson wrote: > On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > > Here's one example where recursion and lack of positional error > > feedback make it hard for me, as someone comin

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
Thanks for the replies. I see 1.3 Beta 1 provides some more Java context that helps me find the problem, although it still doesn't afford Clojure its own uniquely-searchable error system or positional error references. On Aug 2, 6:31 am, Sergey Didenko wrote: > It got improved a lot in Clojure 1.

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Sean Corfield
On Tue, Aug 2, 2011 at 12:11 AM, recurve7 wrote: > user=> (defn fac [n] (if (= n 1) 1 (* n fac (- n 1 > #'user/fac > user=> (fac 3) > java.lang.ClassCastException: user$fac cannot be cast to > java.lang.Number (NO_SOURCE_FILE:0) > Let's assume you'd put the code in a source file and run that

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Jeremy Heiler
On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > Here's one example where recursion and lack of positional error > feedback make it hard for me, as someone coming from Java, to spot the > error (and seeing "ClassCastException" threw me off and had me > wondering where/how I had done something lik

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Ken Wesson
On Tue, Aug 2, 2011 at 3:11 AM, recurve7 wrote: > Here's one example where recursion and lack of positional error > feedback make it hard for me, as someone coming from Java, to spot the > error (and seeing "ClassCastException" threw me off and had me > wondering where/how I had done something lik

Re: New to Clojure -- Errors Are Frustrating

2011-08-02 Thread Sergey Didenko
It got improved a lot in Clojure 1.3 which is beta for a while. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

New to Clojure -- Errors Are Frustrating

2011-08-02 Thread recurve7
In browsing this group I see this topic has been brought up several times over the past 3 years, so I apologize for revisiting it. I just downloaded Clojure and was excited to try it, but so far trying to move beyond simple examples has often resulted in me making a mistake that yields a Java exce

Re: New to Clojure

2011-06-09 Thread Don Jackson
On Jun 9, 2011, at 11:49 AM, Laurent PETIT wrote: > I've seen people coming from a java background quite happy to start > discovering clojure via the 4clojure website. Hey, I've got an idea: Maybe we could get the 4clojure folks to hook their site up to Twitter to let us know how people solve

Re: New to Clojure

2011-06-09 Thread Laurent PETIT
I've seen people coming from a java background quite happy to start discovering clojure via the 4clojure website. 2011/6/9 Santosh M : > Yes I'm from a java background only, not worked with LISP. > Will do that. > > Thank you all for the help. Just wrote the "Hello World" clojure > program. :) > >

Re: New to Clojure

2011-06-09 Thread Santosh M
Yes I'm from a java background only, not worked with LISP. Will do that. Thank you all for the help. Just wrote the "Hello World" clojure program. :) On Jun 9, 9:10 am, Jeff Heon wrote: > As you're coming in from Java, I think Clojure in Action is a good way > to start. > > On Jun 9, 12:15 am, S

Re: New to Clojure

2011-06-09 Thread Jeff Heon
As you're coming in from Java, I think Clojure in Action is a good way to start. On Jun 9, 12:15 am, Santosh M wrote: > I just found out three books on closure, please tell me which is the > best one to start with? > > 1 - The Joy of Clojure > 2 - Programming Clojure > 3 - Practical Clojure --

Re: New to Clojure

2011-06-09 Thread Chouser
On Wed, Jun 8, 2011 at 9:25 AM, looselytyped wrote: > > Finally, I agree with many others on this thread - Emacs is a popular > editor among many a lisp programmer, and Clojure is no different. > Unfortunately if you are not familiar with it, it presents a two-fold > problem - you need to learn to

Re: New to Clojure

2011-06-09 Thread Paudi Moriarty
s.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0BxVCLS4f8Sg5OGUwMmZlZjYtZWQ4Zi00ZThmLWFkMjYtNTIxZmY4ODhjNDdl&hl=en&authkey=CLnyyF4 > > Thanks > Shoeb > > -Original Message- > From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf > Of hci > Sent:

RE: New to Clojure

2011-06-09 Thread Bhinderwala, Shoeb
ure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of hci Sent: Wednesday, June 08, 2011 3:33 PM To: Clojure Subject: Re: New to Clojure I was in the same boat last year. My experience with Clojure started with Java interop, by writing Clojure code to solve some small problems using existing

Re: New to Clojure

2011-06-09 Thread Jonathan Fischer Friberg
If you are coming from java, I think that a book on (common) lisp would be far better. Especially since practical clojure is essentially a reference (and a good one). I would recommend 'practical common lisp' and 'land of lisp'. http://www.gigamonkeys.com/book/ http://landoflisp.com/ Jonathan On

Re: New to Clojure

2011-06-08 Thread Sean Corfield
On Wed, Jun 8, 2011 at 9:15 PM, Santosh M wrote: > I just found out three books on closure, please tell me which is the > best one to start with? > > 1 - The Joy of Clojure > 2 - Programming Clojure > 3 - Practical Clojure Because Practical Clojure is more modern than Programming Clojure - and c

Re: New to Clojure

2011-06-08 Thread Santosh M
I just found out three books on closure, please tell me which is the best one to start with? 1 - The Joy of Clojure 2 - Programming Clojure 3 - Practical Clojure On Jun 8, 9:03 pm, Santosh M wrote: > Thank you all for the suggestions. > Will keep posting my queries on the google groups. :) > >

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you all for the suggestions. Will keep posting my queries on the google groups. :) On Jun 8, 12:33 pm, hci wrote: > I was in the same boat last year. My experience with Clojure started > with Java interop, by writing Clojure code to solve some small > problems using existing Java libraries.

Re: New to Clojure

2011-06-08 Thread hci
I was in the same boat last year. My experience with Clojure started with Java interop, by writing Clojure code to solve some small problems using existing Java libraries. For example, I used Clojure to fetch and process application logs in a MySQL database and visualize the results with a Java gra

Re: New to Clojure

2011-06-08 Thread looselytyped
Hi Santosh, I have been playing around with Clojure for some time now, and outside of echoing most of the suggestions listed above (specifically StackOverFlow hints/tricks, OSS projects on GitHub/BitBucket and most importantly the REPL with Leiningen) I have one more suggestion - Being a Java guy

Re: New to Clojure

2011-06-08 Thread Santosh M
Thank you mike will definitely go through the links. :). I don't have any background of lisp. Cheers Santosh On Jun 7, 3:30 pm, Mike Anderson wrote: > Hi Santosh, > > I was in your position a little over a year ago. Some recommendations > that may help: > > - If you're coming from a Java enviro

Re: New to Clojure

2011-06-08 Thread Nick Zbinden
While we talk about Functional thinking. The IBM has a series. They use Java (and Groovy) but it may help you since you allready know java. http://www.ibm.com/developerworks/java/library/j-ft1/index.html http://www.ibm.com/developerworks/java/library/j-ft2/?ca=drs- -- You received this message b

Re: New to Clojure

2011-06-07 Thread Shantanu Kumar
Hi Santosh, For a quickstart, get Leiningen, create a project: $ lein new foo $ cd foo ...and fire up the REPL: $ lein repl You can type in Clojure code at the REPL to experiment. If you need to enter multi-line code write it in an editor and copy-paste the code to the REPL. You can refer Clo

Re: New to Clojure

2011-06-07 Thread Benny Tsai
Mark Volkmann's Clojure introduction ( http://java.ociweb.com/mark/clojure/article.html) helped me out a great deal when I first started. As he noted at the end, the article focused on Clojure 1.0 features, so some parts are superceded (records are recommended over StructMaps now, for example),

Re: New to Clojure

2011-06-07 Thread Mike Anderson
Hi Santosh, I was in your position a little over a year ago. Some recommendations that may help: - If you're coming from a Java environment, you may find it easiest to move to Clojure by using a Clojure plugin for your favourite Java IDE. I use the Counterclockwise plugin for Eclipse which is exc

New to Clojure

2011-06-07 Thread Santosh M
I want to learn clojure. I already know Java. Please tell me how to proceed. Regards Santosh -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated

Re: New to Clojure

2011-05-24 Thread Mark Rathwell
Sorry, missed this email before my last reply. To contact the maintainers, there is a contact email address on their organization page: https://github.com/getwoven On Tue, May 24, 2011 at 2:33 PM, dudaroo wrote: > Also, this is probably elementary, but how do I contact the folks at > woven ab

Re: New to Clojure

2011-05-24 Thread dudaroo
Also, this is probably elementary, but how do I contact the folks at woven about uploading the most current version of the work build to clojars? :) On May 20, 5:20 pm, Mark Rathwell wrote: > A couple things going on here, I think: > > First, it looks like maven is having problems communicating w

Re: New to Clojure

2011-05-24 Thread dudaroo
Hi Mark, Thanks so much for your help :) But I'm still stumped on this ''work:work:jar:0.2.4-SNAPSHOT'. It seems odd to downgrade the version to 0.1.2-SNAPSHOT to try to get it to resolve, doesn't it? Or is there something about downgrading developer versions that I'm not getting? Is there a s

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
A couple things going on here, I think: First, it looks like maven is having problems communicating with the Woven repositories ("snapshots" " http://mvn.getwoven.com/repos/woven-public-snapshots"; and "releases" " http://mvn.getwoven.com/repos/woven-public-releases";), so it then stops looking in

Re: New to Clojure

2011-05-20 Thread dudaroo
Thanks Mark... It seems that it is still not resolving correctly though... I changed the line in the project.clj file from: [work "0.2.4-SNAPSHOT"] to [work "0.1.2-SNAPSHOT"] Intuitively, I would've expected to have increased the version number as opposed to changing i

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
> Look at the code on github: > http://github.com/clj-sys/work This has moved to: https://github.com/getwoven/work You might also ask the maintainers of this project if they would be able to upload more recent versions to clojars. - Mark

Re: New to Clojure

2011-05-20 Thread Luc Prefontaine
Hi, See my notes below: On Fri, 20 May 2011 10:01:42 -0700 (PDT) dudaroo wrote: > I am trying to help with an existing project and have no developer > notes on the application. I'm trying to use Lein to build the > project.clj project file. > > Within the Clojure build file (named project.clj

Re: New to Clojure

2011-05-20 Thread Mark Rathwell
In the clojars repository, looks like the most recent versions are: [work "0.1.2-SNAPSHOT"] http://clojars.org/work [clj-time "0.3.0"] http://clojars.org/clj-time On Fri, May 20, 2011 at 1:01 PM, dudaroo wrote: > I am trying to help with an existing project and have no developer > notes on

New to Clojure

2011-05-20 Thread dudaroo
I am trying to help with an existing project and have no developer notes on the application. I'm trying to use Lein to build the project.clj project file. Within the Clojure build file (named project.clj), the dependencies for the project are specified. Two of the dependencies are developer build