102 karma · joined Jun 9, 2015 (11y ago) · 69 submissions
comment 11y ago · link · parent
If you're familiar with Python Leiningen takes the place of both pip and virtualenv. Every project has a project.clj file where you declare your project dependencies and running "lein deps" from your project root handles it from there. This includes libraries and the version of Clojure you're targeting. When you add/delete/change a dependency in project.clj you simply run "lein deps" again. You never have to run "pip freeze" or make a requirements.txt file because project.clj serves that purpose as well.
As an example, Leiningen's own project.clj: https://github.com/technomancy/leiningen/blob/master/project...
comment 11y ago · link · parent
comment 11y ago · link · parent
Operations: Rosetta and Philae are a pair of robots 300 million kilometers from earth, one on a comet and the other orbiting it. Rosetta's orbits require a bit of work, if I remember correctly it's not a stable orbit and Rosetta needs to be within communication range of Philae while Philae is in the sunlight.
Science: Interpreting data is not easy and probably takes months in many cases. Once they've come to their conclusions they have to write and publish their papers which takes time.
Planning: They have to plan what they will do with Philae's future awake time which is filled with unknowns and opportunities that may only happen once.
comment 11y ago · link · parent
I believe there's a lack of clarity in the let form explanation:
=>(let [object "light"]
=> (let [object "darkness"])
=> (println (str "God said let there be " object)))
God said let there be light
nil
'object' is overwritten but only within the second let form: =>(let [object "light"]
=> (let [object "darkness"]
=> (println (str "God said let there be " object))))
God said let there be darkness
nil
or even: =>(let [object "light"]
=> (println (str "God said let there be " object))
=> (let [object "darkness"]
=> (println (str "God said let there be " object))))
God said let there be light
God said let there be darkness
nil
The reason for this is the let form uses lexical scoping. In other words it creates a new frame which includes the bindings declared in the square brackets. When 'object' is evaluated its binding is looked for in the current frame, then the frame that called that frame and all the way out into the global namespace stopping when a binding is found.See also: http://stackoverflow.com/questions/1774417/scoping-rules-in-...
comment 11y ago · link · parent
It sounds crazy but most sound engineers have accidentally done this to themselves. You tweak a knob, hear the difference, and then noticing the whole channel was muted and wonder what it was that you just heard change.