Re: problems of a newbie

2011-11-09 Thread Alex Baranosky
Very hard question to answer. It makes sense that static typing would help, but in practice I never seem to get defects that are related to types. Ergo, Clojure's approach to typing works well, and the code stays very minimalist. On Nov 8, 2011 12:52 AM, Sean Corfield seancorfi...@gmail.com

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
The main thing to keep in mind is that when coming from java/scala, you'll have a hard time adjusting to clojure, and you're making it harder by trying something so inherently full of state. I understand the need to tackle problems that we like, but without a good understanding of the

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
In his code I did notice he doesn't use destructing very much. where would that have been useful? -- 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

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 10:18, schrieb Dennis Haupt: In his code I did notice he doesn't use destructing very much. where would that have been useful? defn x [{:keys [foo bar]} param] instead of defn x [param] (let [foo (:foo param)...]) ? -- -- You received this message because you are

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 08:00, schrieb Sean Corfield: On Sun, Nov 6, 2011 at 12:15 PM, Dennis Haupt d.haup...@googlemail.com wrote: if by compatible you mean has a specific set of functions and fields, then scala can do that without sacrificing static type safety: Yes, I started working with Scala

Re: problems of a newbie

2011-11-07 Thread Milton Silva
On Nov 7, 9:14 am, Dennis Haupt d.haup...@googlemail.com wrote: The main thing to keep in mind is that when coming from java/scala, you'll have a hard time adjusting to clojure, and you're making it harder by trying something so inherently full of state. I understand the need to tackle

Re: problems of a newbie

2011-11-07 Thread Milton Silva
On Nov 7, 12:41 pm, Milton Silva milton...@gmail.com wrote: On Nov 7, 9:14 am, Dennis Haupt d.haup...@googlemail.com wrote: The main thing to keep in mind is that when coming from java/scala, you'll have a hard time adjusting to clojure, and you're making it harder by trying something

Re: problems of a newbie

2011-11-07 Thread Scott Jaderholm
On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt d.haup...@googlemail.comwrote: Am 07.11.2011 10:18, schrieb Dennis Haupt: In his code I did notice he doesn't use destructing very much. where would that have been useful? defn x [{:keys [foo bar]} param] instead of defn x [param]

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 14:01, schrieb Milton Silva: On Nov 7, 12:41 pm, Milton Silva milton...@gmail.com wrote: On Nov 7, 9:14 am, Dennis Haupt d.haup...@googlemail.com wrote: The main thing to keep in mind is that when coming from java/scala, you'll have a hard time adjusting to clojure, and

Re: problems of a newbie

2011-11-07 Thread Dennis Haupt
Am 07.11.2011 14:02, schrieb Scott Jaderholm: On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt d.haup...@googlemail.com mailto:d.haup...@googlemail.com wrote: Am 07.11.2011 10:18, schrieb Dennis Haupt: In his code I did notice he doesn't use destructing very much.

Re: problems of a newbie

2011-11-07 Thread Scott Jaderholm
On Mon, Nov 7, 2011 at 8:33 AM, Dennis Haupt d.haup...@googlemail.comwrote: Am 07.11.2011 14:02, schrieb Scott Jaderholm: On Mon, Nov 7, 2011 at 4:27 AM, Dennis Haupt d.haup...@googlemail.com mailto:d.haup...@googlemail.com wrote: Am 07.11.2011 10:18, schrieb Dennis Haupt:

Re: problems of a newbie

2011-11-07 Thread Sean Corfield
On Mon, Nov 7, 2011 at 4:20 AM, Dennis Haupt d.haup...@googlemail.com wrote: which is a good thing. type safety is good. Is it? -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ Perfection is the enemy of the good.

Re: problems of a newbie

2011-11-06 Thread Razvan Rotaru
I remember having the same frustrations some time ago. Not that they are gone now. :) It obviously depends on the tool, and these code analysis you describe you get only in IDEs. I don't know what tool you are using now, but you have them all described in the Getting Started page (http://

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 06.11.2011 11:33, schrieb Razvan Rotaru: I remember having the same frustrations some time ago. Not that they are gone now. :) It obviously depends on the tool, and these code analysis you describe you get only in IDEs. I don't know what tool

Re: problems of a newbie

2011-11-06 Thread Colin Yates
I have a hunch (as oppose to IME as I don't have any yet :)) that Clojure doesn't require as much due to at least the following points: - there is much less incidental complexity and ceremony required to manage (and therefore refactor) - implementations in Clojure require more thought and are

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 06.11.2011 13:44, schrieb Colin Yates: I have a hunch (as oppose to IME as I don't have any yet :)) that Clojure doesn't require as much due to at least the following points: - there is much less incidental complexity and ceremony required

Re: problems of a newbie

2011-11-06 Thread Colin Yates
But aren't the edge cases fewer given the notion that functions should be entirely defined by their inputs as oppose to being dependant on mutable state external to he function, in the most part. I am agreeing with you, and find these real world experiences incredibly useful. Sent from my iPad

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 special cases that depend on mutable state are evil. i avoid mutable states as much as possible, no matter which language i am using. what i meant were cases where i roughly think about 3/4 of all cases, start coding and along the way i notice that in

Re: problems of a newbie

2011-11-06 Thread Colin Yates
I suspect programming in clojure effectively is as much about changing the *way* you develop as much as it is about about the shape of the solution. It sounds as if you are suggesting this is so. I am about to start my first clojure project tomorrow which is to replace an existing web app which

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 06.11.2011 18:11, schrieb Colin Yates: I suspect programming in clojure effectively is as much about changing the *way* you develop as much as it is about about the shape of the solution. It sounds as if you are suggesting this is so. yes.

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sunday, November 6, 2011, Dennis Haupt d.haup...@googlemail.com wrote: this is a double edged sword. you *do* get it right *if* you think it through, but reality is often more complex than you assume. if you suddenly see that you forgot to handle special case x, you are punished harder than

Re: problems of a newbie

2011-11-06 Thread finbeu
I second your comment regarding the PGP sig. -- 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 first post. To

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
Am 06.11.2011 19:06, schrieb Sean Corfield: On Sunday, November 6, 2011, Dennis Haupt d.haup...@googlemail.com mailto:d.haup...@googlemail.com wrote: this is a double edged sword. you *do* get it right *if* you think it through, but reality is often more complex than you assume. if you

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 11:12 AM, Dennis Haupt d.haup...@googlemail.com wrote: let me guess: you had some classes that were used more than they should have been because they were the best match and introducing a better one would have taken more time - and since they could do so much, they were

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
Am 06.11.2011 20:56, schrieb Sean Corfield: On Sun, Nov 6, 2011 at 11:12 AM, Dennis Haupt d.haup...@googlemail.com wrote: let me guess: you had some classes that were used more than they should have been because they were the best match and introducing a better one would have taken more time

Re: problems of a newbie

2011-11-06 Thread Alex Baranosky
The problem with Java is you can write a ton of it easily with Intellij (my facorite IDE), but Intellij cant read that code for you, so now you have a novel to wade through when the code is revisited. On Nov 6, 2011 11:49 AM, Dennis Haupt d.haup...@googlemail.com wrote: -BEGIN PGP SIGNED

Re: problems of a newbie

2011-11-06 Thread Dennis Haupt
Am 06.11.2011 22:00, schrieb Alex Baranosky: The problem with Java is you can write a ton of it easily with Intellij (my facorite IDE), but Intellij cant read that code for you, so now you have a novel to wade through when the code is revisited. after some time, your brain will filter the

Re: problems of a newbie

2011-11-06 Thread Milton Silva
On Nov 5, 12:16 pm, Dennis Haupt d.haup...@googlemail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i'm half done with my asteroids clone. i stumbled over a few problems and wanted to know how others already solved them :) i am used to less concrete programming. i ask my

Re: problems of a newbie

2011-11-06 Thread aboy021
In terms of Clojure refactoring tools the ones that looks most promising to me are Emacs with Paredit, Swank, and Slime and, hopefully as it matures, Clojure-refactoring (https://github.com/ joodie/clojure-refactoring). Chas Emerick did a blog post last year that talks about what he would want in

Re: problems of a newbie

2011-11-06 Thread Scott Jaderholm
On Sun, Nov 6, 2011 at 11:33 AM, Milton Silva milton...@gmail.com wrote: On Nov 5, 12:16 pm, Dennis Haupt d.haup...@googlemail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i'm half done with my asteroids clone. i stumbled over a few problems and wanted to know how

Re: problems of a newbie

2011-11-06 Thread Sean Corfield
On Sun, Nov 6, 2011 at 12:15 PM, Dennis Haupt d.haup...@googlemail.com wrote: if by compatible you mean has a specific set of functions and fields, then scala can do that without sacrificing static type safety: Yes, I started working with Scala in 2009 and it's certainly much better than Java

problems of a newbie

2011-11-05 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, i'm half done with my asteroids clone. i stumbled over a few problems and wanted to know how others already solved them :) i am used to less concrete programming. i ask my tools to do the actual analysis and coding for me: * where is that used?