Your way works because basically you are building two extra vectors
which are implicitly getting destructured, but that's syntactically noisy
and also a lot of extra computational work that is unneeded.
--
Thanks!
I cleaned it up a bunch:
))(- (+ (- a b) c) d))]
[z] [(* (/ 1 (Math/sqrt 2))(- (- (+ a b) c) d))]]
(XYZray. x y z)))
After:
(I bet I could use destructuring to shorten the above quite a bit)
On Thu, Aug 6, 2015 at 1:52 PM, kirby urner kirby.ur...@gmail.com wrote:
Also, don't forget to explore the test
On Fri, Aug 7, 2015 at 5:02 AM, Gary Verhaegen gary.verhae...@gmail.com
wrote:
Sorry for steering the discussion away from tooling, but have tou looked
at Racket and the research in teaching programming that's been going on
around it for the past ~20 years?
One of their findings was that
On Fri, Aug 7, 2015 at 7:29 AM, kirby urner kirby.ur...@gmail.com wrote:
So in my Python for kid-newcomers, my back end has been
(A) for 2D: POV-Ray, the free ray tracer (povray.org, CompuServ
license) and
(B) for 3D: a lot of Visual Python (vpython.org) -- once it came down
the pike
Also, don't forget to explore the test framework versus global defs and
print statements.
--
Excellent feedback Mark, thank you so much!
This is exactly what I was hoping for. I will be simplifying said code
accordingly and posting it back.
A great way to learn!
I do think I might add
To recap this thread: I started by looking at GitHub's Atom as an IDE for
Asynchronous Learning Engine (ALE), a name I'm using for an
Open Source project. I'm interested in Clojure + Java + Python as
an example flight path through our curriculum space.
Turns out Eclipse is a strong candidate
On Thursday, July 30, 2015 at 6:38:11 PM UTC-7, kirby urner wrote:
On Thu, Jul 30, 2015 at 6:14 PM, Leif wrote:
This still seems very verbose to me. I think it is because the
definition of open, opposite, and closed are implicit in the great
big blocks of arithmetic you are doing. I
On Mon, Aug 3, 2015 at 8:18 AM, Fluid Dynamics a2093...@trbvm.com wrote:
On Monday, August 3, 2015 at 10:26:34 AM UTC-4, kirby urner wrote:
(A) when a student hacks on a Python or Java project and want's mentor
feedback, it's *not* a matter of the mentor remoting in to the student
instance
On Mon, Aug 3, 2015 at 3:02 AM, Colin Fleming colin.mailingl...@gmail.com
wrote:
For Clojure nothing beats emacs + CIDER
As a clearly biased participant here (I develop Cursive) I'd like to
politely disagree with this. Lots of people are switching to Cursive from
Emacs, including many that
On Mon, Aug 3, 2015 at 1:25 PM, Mark Engelberg mark.engelb...@gmail.com
wrote:
The main reason I mentioned Intellij was because I didn't know whether
there was a satisfactory Python plugin for Eclipse and you said you wanted
to do all three languages on one IDE.
Gotcha. The answer is
Having done some more research, I see Atom 1.0 is still very new
which likely accounts for the a paucity of replies, an no Youtubes
on the topic (that I could find).
Anyway, it's not a set in stone requirement -- in the virtual school
of my dreams [1] -- that every course should use the same
My day job is teaching Python, but in a school that teaches much else
besides. We're small and I'd say prototypical given how quickly the
technology is evolving.
The description in the blog post below is science fiction from my angle,
but I'm aiming for a lot of realism:
Greetings all.
I'm new to Clojure (but not to programming) and wanted to document a first
effort.
The blog post: http://controlroom.blogspot.com/2015/07/ramping-up.html
===
(ns test-project.synmods)
(defn add-open
[edges]
(let [[a b c d e f] edges
[a2 b2 c2 d2 e2 f2] (map (fn
Excellent feedback so far, I thank experienced Clojure programmers for
giving me tips.
I may post a next version after incorporating some of this advice.
Yes, I have much to learn!
Kirby
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
Thanks to excellent feedback, I now realize my code was overly verbose, a
common phenomenon among beginners in many a computer language.
As an example, the newer version replaces this:
===
(ns test-project.synmods)
(defn add-open
[edges]
(let [[a b c d e f] edges
[a2 b2 c2
On Thu, Jul 30, 2015 at 6:14 PM, Leif leif.poor...@gmail.com wrote:
This still seems very verbose to me. I think it is because the definition
of open, opposite, and closed are implicit in the great big blocks of
arithmetic you are doing. I think a useful exercise would be to define
edges in
On Thu, Jul 30, 2015 at 6:33 PM, Amith George strider...@gmail.com wrote:
Hi,
From a cursory glance, I didn't really understand the domain, so the
function names I used in my rewrite might seem silly. But I wanted to
illustrate that there is a lot of repetition in your code. Also discrete
17 matches
Mail list logo