using M-x nrepl-jack-in)
3. Enter below in your nrepl
(do
(require 'cljs.repl.browser)
(cemerick.piggieback/cljs-repl
:repl-env
(doto (cljs.repl.browser/repl-env :port 9000)
cljs.repl/-setup)))
4. You need to show the page that has your cljs running on your browser.
5
/blob/master/doc/tutorial-02.md
in short, you'll need (repl/connect http://localhost:9000/repl;)
somewhere in your clojurescript code.
2. then open nrepl in emacs(I'm using M-x nrepl-jack-in)
3. Enter below in your nrepl
(do
(require 'cljs.repl.browser)
(cemerick.piggieback
I'm trying to setup an environment for Clojurescript. The problem I'm
having is not knowing how to set it up so that I can connect to a
Clojurescript Browser REPL from emacs, so I can evaluate forms right from
the editor and have it show up in the browser.
Things I've tried:
I tried using
I could be wrong but, I think you can use the cljs-build plugin for lein and use the repl-listen command to start a REPL server. Can you not use M-x nrepl to connect? https://github.com/emezeske/lein-cljsbuild/blob/0.3.2/doc/REPL.md#repl-listen 18.07.2013, 13:04, "Chris Bui"
my project it makes little difference, especially with brew on the mac.Currently moving from vi to emacs.On Saturday, June 15, 2013 1:46:37 AM UTC+12, Erlis Vidal wrote:Hi, I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux, Windows? Why is that? Because the tools? The environme
UTC+12, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
NixOS, a linux distribution built on a purely functional package
manager at work and at home. Emacs with package.el and ~/.emacs.d/ in
a git repository.
On Fri, Jun 14, 2013 at 3:46 PM, Erlis Vidal er...@erlisvidal.com wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer
Robert, the Leiningen survey might under-report Windows-based usage of
Clojure, as I think Eclipse+Counter-clockwise is especially popular there.
On 17 June 2013 02:03, Robert Levy r.p.l...@gmail.com wrote:
There's the State of Clojure Survey:
from the Counterclockwise docs: the preferred way to create a new project
is via the New Leiningen Project Wizard
On Mon, Jun 17, 2013 at 1:33 AM, Chris Ford christophertf...@gmail.comwrote:
Robert, the Leiningen survey might under-report Windows-based usage of
Clojure, as I think
is the default JDK. I don't know
why you gasp at OpenJDK, but it works great and I never had any problems
with it. Plus, I trust the OpenJDK package to get more security updates
than Oracle's official JDK. Seriously.
I do have the official Oracle JDK 7 installed (for testing), plus early
builds of JDK 8
Windows 7 at work, Ubuntu at home.
Both have good and bad points, I'm quite happy coding in either (once
properly set up).
On Friday, 14 June 2013 15:46:37 UTC+2, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why
use OpenJDK 7 which is the default JDK. I don't know
why you gasp at OpenJDK, but it works great and I never had any problems
with it. Plus, I trust the OpenJDK package to get more security updates
than Oracle's official JDK. Seriously.
I do have the official Oracle JDK 7 installed
in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
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
lein
Angel Java Lopez
@ajlopez
On Fri, Jun 14, 2013 at 10:46 AM, Erlis Vidal er...@erlisvidal.comwrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message
anymore.
On Friday, June 14, 2013 6:46:37 AM UTC-7, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
OS X on the working machine, Ubuntu on the servers.
For my project it makes little difference, especially with *brew* on the
mac.
Currently moving from vi to emacs.
On Saturday, June 15, 2013 1:46:37 AM UTC+12, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you
OT: Is there a way to download OpenJDK directly?
It looks like the download page only has directions on using package
managers. Perhaps I missed a link somewhere.
- Eric MacAdie
On Sat, Jun 15, 2013 at 8:59 PM, John Gabriele jmg3...@gmail.com wrote:
On Saturday, June 15, 2013 9:40:13 PM
I use Windows 8 at work, with Emacs and Windows Power Shell and bash when
needed. It was easy to set up. I've been a long time Unix/Linux lover, but I've
come to terms with the need to use Windows at work, and versions 7 and 8 are
not bad. At home I have an old MacBook with OS X, and although
There's the State of Clojure Survey:
http://cemerick.com/2012/08/06/results-of-the-2012-state-of-clojure-survey/.
I think Chas usually asks for ideas on what the questions should be, so
that might be a good question to suggest next time around.
The Leiningen survey asks that question and finds
.
On Friday, June 14, 2013 4:46:37 PM UTC+3, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups
Hi,
I use os x for my dev. I regularly switch between os x and linux for many years
now. When my computer is too old to get a newer os x version, I switch to linux
to have more usability years (I keep my computer 7-8 years).
I avoid Windows the more I can because I don't like this os and I'm a
On Jun 14, 2013, at 8:16 PM, Nico Balestra nicobales...@gmail.com wrote:
What company do you work for Mimmo? Can I send my CV? :)
yes you can. send it to me. I'm the boss ;-)
On 14 Jun 2013 15:59, Giacomo Cosenza mimmo.cose...@gmail.com wrote:
personally, I code on mac os x. in my
wouldnt buy a mac. I would stick to linux.
josh
On Sat, Jun 15, 2013 at 11:20 AM, Mimmo Cosenza mimmo.cose...@gmail.comwrote:
On Jun 14, 2013, at 8:16 PM, Nico Balestra nicobales...@gmail.com wrote:
What company do you work for Mimmo? Can I send my CV? :)
yes you can. send it to me. I'm the boss
(and very often worthless) upgrades
and I could go on like this for ages... It feels a bit like the real thing
but just isn't it, so I gave up and went back to linux.
On Friday, June 14, 2013 3:46:37 PM UTC+2, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you
(and very often worthless) upgrades and
I could go on like this for ages... It feels a bit like the real thing but
just isn't it, so I gave up and went back to linux.
On Friday, June 14, 2013 3:46:37 PM UTC+2, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you
On Friday, 14 June 2013 14:46:37 UTC+1, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
I prefer Linux for the server side. Lean, fast, great tools, open source
I personally use OS X, got used to it and it leaves me alone for most of the
time to do what I want. Linux is too much hassle for me. But I guess that is a
thing of taste and habit and experience with one system or the other, people
using Linux will tell say the same thing just the other way
iPad.
I can do half of my work with it without carrying an extra twelve pounds of
gears.
You would not convince me to replace it by an Android tablet.
Luc P.
I personally use OS X, got used to it and it leaves me alone for most of the
time to do what I want. Linux is too much hassle for me
in production on clusters of small foot print ubuntu SSD based
servers.
However I rely extensively on my iPad for all the communication stuff,
document handling and remote support.
I use dropbox to exchange documents between my laptop and my iPad.
I can do half of my work with it without
Josh Kamau joshnet2...@gmail.com writes:
If i could rewind time, i wouldnt buy a mac. I would stick to linux.
For whatever it's worth, Debian and presumably others run just fine on
some Macbooks.
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8
How are all the Linux users handling Java installation? Using an official
Oracle installer, or your package manager somehow, or something else? Or
using (gasp) openJDK?
I use Windows (client mandated) at work and OSX on my laptop. We use
Vagrant to run virtual Linux (Centos) boxen at work, with
On Saturday, June 15, 2013 9:40:13 PM UTC-4, Korny wrote:
How are all the Linux users handling Java installation? Using an official
Oracle installer, or your package manager somehow, or something else? Or
using (gasp) openJDK?
sudo apt-get install openjdk-7-jdk
--
--
You received this
Some folks maintain packages for the oracle JVM on the side, I do not have the
repo
by heart but you can search on google a combination like ubuntu+oracle+jvm and
you
should find the recipe.
Luc P.
On Saturday, June 15, 2013 9:40:13 PM UTC-4, Korny wrote:
How are all the Linux users
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux,
Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure
I write code in OSX.
---
Joseph Smith
@solussd
On Jun 14, 2013, at 8:46 AM, Erlis Vidal er...@erlisvidal.com wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux,
Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You
in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
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
a working clojure system from scratch in 20 minutes, which I've
demonstrated here:
http://gtrak.wordpress.com/2012/12/19/clojure-environment-state-of-the-union-install-speedrun-screencast/
OSX is a huge step backwards from what I know how to do there, and Windows
is a necessary evil that I try
scratch in 20 minutes, which I've
demonstrated here:
http://gtrak.wordpress.com/2012/12/19/clojure-environment-state-of-the-union-install-speedrun-screencast/
20mn from scratch
You mean installing the OS too ?
Because with an already installed Linux (with a good internet connexion)
you could do
Yes, I installed the OS, too, that includes emacs, auto-complete, ac-nrepl
(I had some problem and had to look stuff up, I can do it faster now).
On Fri, Jun 14, 2013 at 9:54 AM, Denis Labaye denis.lab...@gmail.comwrote:
On Fri, Jun 14, 2013 at 3:52 PM, Gary Trakhman gary.trakh
OS X on an MBP.
The only thing I liked about linux was xmonad. So I wrote a window manager
for OS X called AppGrid https://github.com/sdegutis/grs (download
the ziphttps://github.com/sdegutis/grs/raw/master/AppGrid.zip)
that does everything I want a window manager to do on OS X. And then I made
Linux at work, OS X at home.
But this makes no big difference, since my toolchain is java end to
end: Eclipse, Maven.
2013/6/14 Erlis Vidal er...@erlisvidal.com:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux,
Windows? Why is that? Because the tools
curious to know in what OS do you code. Do you prefer iOS,
Linux,
Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure
personally, I code on mac os x. in my company anyone is free to choose the
preferred OS (most of our devs are using linux, few of them windows).
mimmo
On Jun 14, 2013, at 3:46 PM, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS, Linux,
Windows
PM, Erlis Vidal wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group
of this problem.)
On Fri, Jun 14, 2013 at 9:46 AM, Erlis Vidal er...@erlisvidal.com wrote:
Hi,
I'm a bit curious to know in what OS do you code. Do you prefer iOS,
Linux, Windows? Why is that? Because the tools? The environment?
Thanks!
--
--
You received this message because you are subscribed
I use GNU/Linux (specifically, Fedora at home and openSUSE, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out of ethical issues,
- I prefer the software distribution model where software comes
I use GNU/Linux exclusively as well...no other OS makes me feel in
control :)
Jim
On 14/06/13 18:57, Mikhail Kryshen wrote:
I use GNU/Linux (specifically, Fedora at home and openSUSE, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors
, Mikhail Kryshen wrote:
I use GNU/Linux (specifically, Fedora at home and openSUSE, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out of ethical issues,
- I prefer the software distribution
Thanks for all the responses, it looks like Linux is the predominant OS in
the Clojure community.
er, wow. that's a bit of a leap, isn't it?
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I for example use Windows 8 and Windows 7.
Am 14.06.2013 20:15, schrieb Raoul Duke:
Thanks for all the responses, it looks like Linux is the predominant OS in
the Clojure community.
er, wow. that's a bit of a leap, isn't it?
--
--
You received this message because you are subscribed to the
What company do you work for Mimmo? Can I send my CV? :)
On 14 Jun 2013 15:59, Giacomo Cosenza mimmo.cose...@gmail.com wrote:
personally, I code on mac os x. in my company anyone is free to choose the
preferred OS (most of our devs are using linux, few of them windows).
mimmo
On Jun 14
(specifically, Fedora at home and openSUSE, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out of ethical issues,
- I prefer the software distribution model where software comes from a
few trusted sources
as well...no other OS makes me feel in control
:)
Jim
On 14/06/13 18:57, Mikhail Kryshen wrote:
I use GNU/Linux (specifically, Fedora at home and openSUSE, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting
, which I don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out of ethical
issues,
- I prefer the software distribution model where software
):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out of ethical issues,
- I prefer the software distribution model where software comes from a
few trusted sources — repositories with packages verified, compiled and
signed by the distribution's maintainers
me feel in
control :)
Jim
On 14/06/13 18:57, Mikhail Kryshen wrote:
I use GNU/Linux (specifically, Fedora at home and openSUSE, which I
don't
like much compared to other distros, at work):
- I do not trust proprietary software vendors,
- I avoid supporting Microsoft and Apple out
from any large
corporation. Even though very nice people may work there, a large
corporation as a whole is a heartless machine that do whatever it can to
make more money. And what makes money depends on what consumers are
willing to accept. So, in the end, it's the consumer's responsibility
Mikhail, you do have a point there.
On Fri, Jun 14, 2013 at 6:48 PM, Mikhail Kryshen mikh...@kryshen.netwrote:
Yves S. Garret yoursurrogate...@gmail.com writes:
Truthfully, they're not shy when it comes to things such as DRM, closing
off
previous more open standards/software and just
through
'with-XYZ' type functions, but that isn't solving the non-explicit
dependency between the function and the state.
Option 2 means functions are still pure, but how do you prevent huge
lists of services - i.e. if func-a calls func-b which calls func-c and
func-c needs service-a then func
/author/Stuart-Sierra
On Saturday, May 11, 2013 10:48:02 AM UTC+2, Colin Yates wrote:
Yes it does, thanks. It is amazing how much you can do in the typical
spring/hibernate stack with a decent IDE without engaging your brain :).
Clojure involves far less ceremony and really does expose
. :-)
Allen
On Sun, May 12, 2013 at 3:34 PM, AtKaaZ atk...@gmail.com wrote:
Hi. I've been meaning to ask (all of)you, how do you get moral support?
How do you put yourself into that mood so that you're happy/willing to
program? What motivates you to do it? Is it the people you surround
Zack Maril thewitzb...@gmail.com writes:
I'm obviously on a futile crusade fueled by my youth and naiveté,
but for the moment, that's why I program.
Yes, you are. Long may it last, and good luck to you!
Phil
--
--
You received this message because you are subscribed to the Google
the most done in
the shortest amount of time. If there were a language that let me do as
much as fast, I'd drop Clojure like a rock and learn that. If I want to
stem the negative effects the geniuses are having on my life, I'll need to
use the best tools possible. That means constantly
My life is mostly about music and playing with structure. Programming falls
into the second category.
Right now, I'm having difficulty getting a job since it's much more fun to
play the violin and program than to apply for jobs.
If I were to get a programming job where I were to do mundane tasks
it,
they don't read technical books for fun, they don't write OSS. I'm
just glad people are willing to pay me for something I'd have to do
anyway to stay sane...
Sean
On Sun, May 12, 2013 at 4:03 PM, u1204 d...@axiom-developer.org wrote:
Hi. I've been meaning to ask (all of)you, how do you
AtKaaZ atk...@gmail.com writes:
Hi. I've been meaning to ask (all of)you, how do you get moral support? How
do you put yourself into that mood so that you're happy/willing to program?
What motivates you to do it? Is it the people you surround yourself with or
the financial support
On Sunday, May 12, 2013 3:34:22 PM UTC-4, atkaaz wrote:
Hi. I've been meaning to ask (all of)you, how do you get moral support?
How do you put yourself into that mood so that you're happy/willing to
program? What motivates you to do it? Is it the people you surround
yourself
Nelson Morris writes:
What helps is direct involvement by someone else.
I'll definitely echo this. People are more important than programs.
If I'm writing code that I'm going to be the only one using, maybe it'll
hold my interest for a few hours. But even in the best cases it's
usually only
the rest of this email, the tl;dr version is: got scratch your
own itch, you might be building an itch-scratcher for others.
The real question now becomes (at least for me): how do you know when
an itch is worth scratching? how do you know it's a shared itch?
I've seen more experienced programmers
, you might be building an itch-scratcher for others.
The real question now becomes (at least for me): how do you know when
an itch is worth scratching? how do you know it's a shared itch?
I've seen more experienced programmers immediately recognise what'd be
useful at large and what wouldn't
Let me share this tale with you guys, hope you like it as much as I do:
It is said that Socrates met a worker who asked: what are you doing good man
? Don't you see I'm cutting a stone to earn my salary and so I can eat the
worker replied. He moved on and later found another worker questioning
able to get the most done in
the shortest amount of time. If there were a language that let me do as
much as fast, I'd drop Clojure like a rock and learn that. If I want to
stem the negative effects the geniuses are having on my life, I'll need to
use the best tools possible. That means constantly
is: got scratch your
own itch, you might be building an itch-scratcher for others.
The real question now becomes (at least for me): how do you know when
an itch is worth scratching? how do you know it's a shared itch?
I've seen more experienced programmers immediately recognise what'd
2013/5/12 AtKaaZ atk...@gmail.com
How do you put yourself into that mood so that you're happy/willing to
program? What motivates you to do it?
When it comes to work projects, I am personally motivated by building
something useful and
making a good living out of it. The process of programming
. I use
Clojure because it's the language I've been able to get the most done in
the shortest amount of time. If there were a language that let me do as
much as fast, I'd drop Clojure like a rock and learn that. If I want to
stem the negative effects the geniuses are having on my life, I'll
Hi. I've been meaning to ask (all of)you, how do you get moral support? How
do you put yourself into that mood so that you're happy/willing to program?
What motivates you to do it? Is it the people you surround yourself with or
the financial support? Are they enough to subconsciously motivate you
I code only for myself, and honestly coding is what I like to do.
I remember these days being in a very bad mood and all I wanted to do was
to sit and code.
I believe that what motivate myself is my own EGO, code for me is only
about solving problem, and more problem I solve better my ego
scale and do not occur often.
A good example, in the last three weeks I have been working on patching
rotten hospital accounting processes using Clojure. It's all event driven,
asynch,...
but ultimately, you deal with debit and credits and money persistence in a
database which cuts the fun by a few
Hey, thanks for sharing.
I think I am the opposite of that, I am unable to code just for myself, if
no one else is directly (and immediately) impacted by what I do then I get
bored fast (but this is probably coupled with the fact that I am unable to
code the way I want yet like some editor where
Well everything in life - especially in engineering - has its ups and
downs. Teamwork is the key!
https://www.youtube.com/watch?v=Nebd9yoraac
:)
--
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Hi. I've been meaning to ask (all of)you, how do you get moral support? How
do you put yourself into that mood so that you're happy/willing to program?
What motivates you to do it? Is it the people you surround yourself with or
the financial support? Are they enough to subconsciously motivate you
who are not like that.
For them, it's a job. When they go home, they don't think about it,
they don't read technical books for fun, they don't write OSS. I'm
just glad people are willing to pay me for something I'd have to do
anyway to stay sane...
Sean
On Sun, May 12, 2013 at 4:03 PM, u1204 d
pure - they
depend upon state defined elsewhere. I can change the binding through
'with-XYZ' type functions, but that isn't solving the non-explicit
dependency between the function and the state.
Option 2 means functions are still pure, but how do you prevent huge lists
of services - i.e
solving the non-explicit
dependency between the function and the state.
Option 2 means functions are still pure, but how do you prevent huge
lists
of services - i.e. if func-a calls func-b which calls func-c and func-c
needs service-a then func-a and func-b need to access service-a. Yuck
Yes it does, thanks. It is amazing how much you can do in the typical
spring/hibernate stack with a decent IDE without engaging your brain :).
Clojure involves far less ceremony and really does expose you to the raw
elements of your problem domain and make you think.
This is of course a good
Do any of the clojure books cover this topic?
--
--
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
Do any of the clojure books cover this topic?
--
--
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
it does, thanks. It is amazing how much you can do in the typical
spring/hibernate stack with a decent IDE without engaging your brain :).
Clojure involves far less ceremony and really does expose you to the raw
elements of your problem domain and make you think.
This is of course a good thing
Not specifically, nope.
On 11 May 2013 10:37, Jimmy jimmy.co...@gmail.com wrote:
Do any of the clojure books cover this topic?
--
--
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
and the state.
Option 2 means functions are still pure, but how do you prevent huge lists
of services - i.e. if func-a calls func-b which calls func-c and func-c
needs service-a then func-a and func-b need to access service-a. Yuck. It
also means the main entry point to my application needs
dependency between the function and the state.
Option 2 means functions are still pure, but how do you prevent huge lists
of services - i.e. if func-a calls func-b which calls func-c and func-c
needs service-a then func-a and func-b need to access service-a. Yuck. It
also means the main entry point
, but how do you prevent huge lists
of services - i.e. if func-a calls func-b which calls func-c and func-c
needs service-a then func-a and func-b need to access service-a. Yuck. It
also means the main entry point to my application needs to assemble all of
these services up in one go.
To be more
Hi Colin,
On 5/10/13 5:04 AM, Colin Yates wrote:
1) to use (defonce *data-source*...) so that every body who requires
that ns gets the same instance?
While this has been done I view this as an antipattern. The big problem
with this approach is that you now can only have a single
Thanks both - some good suggestions. After years of Java I am loving how
'symmetrical' everything is in Clojure (I guess in Lisp). Thanks for the
library references.
On 10 May 2013 14:14, Ben Mabey b...@benmabey.com wrote:
Hi Colin,
On 5/10/13 5:04 AM, Colin Yates wrote:
1) to use
-Oriented Software[1] fame,
advocate[2][3] this approach over using an IoC container.
Option 2 means functions are still pure, but how do you prevent huge
lists of services - i.e. if func-a calls func-b which calls func-c and
func-c needs service-a then func-a and func-b need to access service
means functions are still pure, but how do you prevent huge
lists of services - i.e. if func-a calls func-b which calls func-c and
func-c needs service-a then func-a and func-b need to access service-a.
Yuck. It also means the main entry point to my application needs to
assemble all
state defined elsewhere. I can change the binding through
'with-XYZ' type functions, but that isn't solving the non-explicit
dependency between the function and the state.
Option 2 means functions are still pure, but how do you prevent huge lists
of services - i.e. if func-a calls func-b which
I never understood why people complain about the documentation of
clojure/core. From the very beginning, I have found the docstrings to
be exactly what I needed; when I first began 4clojure, I had
On 26 April 2013 01:30, u1204 d...@axiom-developer.org wrote:
...0? :-)
Tim Daly
--
--
You
[sorry for a premature send...]
I had the official documentation
(http://clojure.github.io/clojure/clojure.core-api.html) open in a
browser and was looking for things with plain search function of my
browser. I always found the docstrings to be very clear and to the
point.
But then, I did it the
I create many small methods in java without worrying about the
performance since it's usually the target of inline optimization. For
example,
public class Foo {
public static long inc(long l) {
return ++l;
}
public static long f1() {
long l = 0;
for (int i=0; i 10;
701 - 800 of 1603 matches
Mail list logo