> 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:
https://github.com/4dsolutions/synmods/blob
d] [(:OD qray)]
[x] [(* (/ 1 (Math/sqrt 2))(+ (- (- a b) c) d))]
[y] [(* (/ 1 (Math/sqrt 2))(- (+ (- 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 Fri, Aug 7, 2015 at 7:29 AM, kirby urner 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
>
On Fri, Aug 7, 2015 at 5:02 AM, Gary Verhaegen
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 beginning with function
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 candid
>
>
> 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 mig
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&quo
On Mon, Aug 3, 2015 at 1:25 PM, Mark Engelberg
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 yes, it's called PyDev
On Mon, Aug 3, 2015 at 8:18 AM, Fluid Dynamics 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 remo
On Mon, Aug 3, 2015 at 3:02 AM, Colin Fleming
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 you've heard of. Obvi
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 IDE
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:
http://worldgame.blogspo
On Thu, Jul 30, 2015 at 6:33 PM, Amith George 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
> functions (wit
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 think a useful exercise would be to define
> edges in terms of poi
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
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
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 [x
17 matches
Mail list logo