Ken Wesson kwess...@gmail.com writes:
Hi Ken,
A related case may be when you're not making just a straight wrapper,
but adding something -- your own pre/post checks, or argument
transformations, or etc.
As for binding to a Var, that makes sense if the result is not as
trivial as #(.meth %)
So, another justification for wrapping a Java method is when it's a
layer boundary and the Java method is two (or more) layers lower than
the caller, basically.
This suggests a generalization as well: that there's a form of Law of
Demeter applied to layers (and libraries) where one should tend to
Of the people I've tried to expose to Clojure over the last six months,
I've definitely found that those with less OO experience tend to pick
it up much quicker.
that's exactly true for me: 40+ years old and OO-centric-Programmer
since 1995.
it takes me one year now to reach a highlevel quality
You can always try http://projecteuler.net using Clojure.
--
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
On Jul 3, 2011, at 3:13 AM, Sean Corfield wrote:
Since I mostly work with 50-100kloc projects, I think 5-10kloc
projects are kinda small :)
My point was that I'm running into interesting questions even with a small
program. The answers are not obvious to me. There's evidence I'm not
2011/7/5 Stuart Halloway stuart.hallo...@gmail.com:
On large projects I do the following:
(2) Think of the consumer of the lib, not the author. As a user of Midje, I
would want all the utility fns in a single namespace (if they were separated
from the domain API at all).
In general, I have
On 5 July 2011 06:34, Sean Corfield seancorfi...@gmail.com wrote:
On Mon, Jul 4, 2011 at 7:43 PM, Ken Wesson kwess...@gmail.com wrote:
I was using it in the sense typically meant in phrases like source
code repository, as seems reasonable given the context, but oh well.
If you're using git,
On Jul 4, 2011, at 7:52 AM, Michael Wood wrote:
Repository need not imply anything to do with networking. I'm sure
someone will correct me if I'm wrong, but I am pretty sure that the
repository Steve [Lindsay] is talking about above is just a hierarchy of files
in your home directory.
hi meikel,
you plugin really rocks.
have you thought about contributing clojuresque as 'clojure-plugin'
for gradle to the gradle project ? so that it will be more integrate
and
managed like ... say the scala-plugin for gradle ?
maybe after gradle has released it's 1.0 version ?
best regards
Does the file you are evaluating have more than 65535 characters? As
far as I can tell, that is the maximum length of a String literal in
Java (see the CONSTANT_Utf8_info struct in
http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html).
I've encountered that limit when using
On Tue, Jul 5, 2011 at 11:22 AM, Patrick Houk path...@gmail.com wrote:
Does the file you are evaluating have more than 65535 characters? As
far as I can tell, that is the maximum length of a String literal in
Java (see the CONSTANT_Utf8_info struct in
On Tue, Jul 5, 2011 at 9:21 AM, Michael Wood esiot...@gmail.com wrote:
On 5 July 2011 06:34, Sean Corfield seancorfi...@gmail.com wrote:
On Mon, Jul 4, 2011 at 7:43 PM, Ken Wesson kwess...@gmail.com wrote:
I was using it in the sense typically meant in phrases like source
code repository, as
On Tue, Jul 5, 2011 at 9:01 AM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
In general, I have found that namespaces should be larger than my OO
intuition would have them be.
One problem with scaling up namespaces, though, is that ongoing
invalid constant tag 32 issue with big enough input
On Tue, Jul 5, 2011 at 6:01 AM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
(1) Use require :as prefix everywhere. This felt ugly at first, but puts
pressure on naming in way that is beneficial as the codebase grows.
I've also started leaning toward that approach. At first I tended to
:use
I need help to write a small filtering function. Given the following
definitions:
(def m1
{[45] {:a 45 :b day1}
[55] {:a 55 :b day1}
[25] {:a 25 :b day1}
[15] {:a 15 :b day1}
[10] {:a 10 :b day1}})
(def m2
{[45] {:a 45 :b day2}
[55] {:a 55
Thanks for sharing this!! I didn't know that there was a Koans version
for Clojure =D
On 4 jul, 00:52, Antonio Recio amdx6...@gmail.com wrote:
Clojure koans https://github.com/functional-koans/clojure-koans is awesome
to learn clojure. Do you know other projects with exercises to learn
On Tue, Jul 5, 2011 at 4:54 AM, faenvie fanny.aen...@gmx.de wrote:
that's exactly true for me: 40+ years old and OO-centric-Programmer
since 1995.
it takes me one year now to reach a highlevel quality in programming
clojure.
I sympathize! I turn 49 this week (Thursday) and have been doing OO
Try merge-with to create a single map.
On Jul 5, 1:49 pm, Bhinderwala, Shoeb sabhinderw...@wellington.com
wrote:
I need help to write a small filtering function. Given the following
definitions:
(def m1
{[45] {:a 45 :b day1}
[55] {:a 55 :b day1}
[25] {:a 25 :b day1}
Yes, I've found Eclipse's maven support rather stable for the last 6
months, so I consider it stable and use it for my projects.
The plugin is called m2eclipse.
2011/7/5 Steve stephen.a.lind...@gmail.com:
On Jul 5, 7:13 am, Ken Wesson kwess...@gmail.com wrote:
No, there's no server, no port,
Amazing news!!
Heroku is great and simple!
On 5 jul, 14:54, Mark McGranaghan mmcgr...@gmail.com wrote:
I'm very excited to say that Clojure is now an officially supported
deployment option on Heroku:
http://blog.heroku.com/archives/2011/7/5/clojure_on_heroku/
A big thanks to everyone in
This should work:
(defn my-filter [coll k]
(for [m coll]
(get m k)))
--
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
On Sun, Jul 3, 2011 at 8:04 PM, Sean Corfield seancorfi...@gmail.com wrote:
On Sun, Jul 3, 2011 at 3:34 PM, James Keats james.w.ke...@gmail.com wrote:
For example I suggest you look at this video/transcript and pay
attention in particular to the point of debate between Joe Armstrong
of Erlang
Ken, I'm sorry I didn't answer quickly to you on the CCW mailing list.
Unless there's a bug involved (and I suspect there's a rampant one
somewhere :) ), CCW handles AOT compilation.
Would it not handle it, I would not be able to release CCW itself !
Indeed, currently there are cyclic
That + a reboot was exactly what I needed. Oh, the joys of windows
system administration!
On Jul 2, 11:03 pm, Jeff Sigmon j...@jeffsigmon.com wrote:
Sean,
It looks like your not alone, see
thishttps://github.com/jmis/vsClojure/issues/33
I was able to launch an exe outside of VS by adding
Terrific! Congratulations to everyone involved.
--
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
On Tue, Jul 5, 2011 at 12:59 PM, Ken Wesson kwess...@gmail.com wrote:
On Tue, Jul 5, 2011 at 9:01 AM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
In general, I have found that namespaces should be larger than my OO
intuition would have them be.
One problem with scaling up namespaces,
(map #(get % [45]) d)
On Jul 5, 12:49 pm, Bhinderwala, Shoeb
sabhinderw...@wellington.com wrote:
I need help to write a small filtering function. Given the following
definitions:
(def m1
{[45] {:a 45 :b day1}
[55] {:a 55 :b day1}
[25] {:a 25 :b day1}
[15]
Thanks. That was simple. I got hung up on trying to use the filter function and
didn't realize it could be done in simpler ways without it.
-Original Message-
From: clojure@googlegroups.com [mailto:clojure@googlegroups.com] On Behalf Of
Base
Sent: Tuesday, July 05, 2011 3:37 PM
To:
On 5 Lug, 18:49, Ken Wesson kwess...@gmail.com wrote:
On Tue, Jul 5, 2011 at 11:22 AM, Patrick Houk path...@gmail.com wrote:
Does the file you are evaluating have more than 65535 characters? As
far as I can tell, that is the maximum length of a String literal in
Java (see the
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 clojure-code is certainly not the
right thing to do
Frequently I want to use the thread macros (- or -) except I need
to thread the arguments into positions other than the first and the
last. Or sometimes I have to go back and forth between first and last
positions. Instead of alternating between - and - and creating
nesting, I've been using this
Here is an example of using this:
(-- hello world (.toUpperCase _) (.toLowerCase _) (.indexOf _ w))
On Tue, Jul 5, 2011 at 3:50 PM, Asim Jalis asimja...@gmail.com wrote:
Frequently I want to use the thread macros (- or -) except I need
to thread the arguments into positions other than the
Is there a reason something like this does not exist in clojure.core?
Is this an oversight or is there a reason this is not there?
Previous discussions on this subject:
1.
http://groups.google.com/group/clojure/browse_thread/thread/e826fc303e440b7c/0e7bdba707b7982d
(in particular Rich's
On Tue, Jul 5, 2011 at 4:14 PM, Asim Jalis asimja...@gmail.com wrote:
Here is an example of using this:
(-- hello world (.toUpperCase _) (.toLowerCase _) (.indexOf _ w))
BTW, that's not a very compelling example since you can already do:
(- hello world! .toUpperCase .toLowerCase (.indexOf w))
On Sat, Jul 2, 2011 at 21:33, David Nolen dnolen.li...@gmail.com wrote:
On Sat, Jul 2, 2011 at 3:21 PM, James Keats james.w.ke...@gmail.com wrote:
And once you encounter the
reality and frustration infamously characterized by likening the
managing of lispers to the herding of cats then you
Hello
I've been playing around with math in clojure lately and have run up
against a few hurdles that I'm not sure how to overcome, any help
would be appreciated! Mostly I've been trying to use the apache
commons math library (http://commons.apache.org/math/), but have been
hitting similar
Appreciate the input guys!
Can't comment on the technical side or on where the problem might
stem, but I'll tell you what I can:
Does the file you are evaluating have more than 65535 characters?
Nope. It's about 1400 LOC and not syntactically unique (no unusually
long constants, etc.). It's
Just FYI I ended up using joda time in a project and it seemed to be a
good immutable match for clojure
http://joda-time.sourceforge.net/
- Lachlan
On 30 June 2011 06:42, Islon Scherer islonsche...@gmail.com wrote:
Thanks for the critic Laurent.
set-date is not destructive, it creates a new
38 matches
Mail list logo