ClojureScript One
clojurescriptone.com
clojurescriptone.com
http://clojurescriptone.com/documentation.html#one.color
Note that they've extended (safely because of namespaces) browser natives including Element, Array, String, as well as the custom ClojureScript data types to respond to the color function.
Your good job on documentation will get me to spend the learning curve time sooner than later.
I also do work using GWT and SmartGWT and the uniform development environment (even if it is Java :-) really helps work flow.
fixed. (please keep the original thanks though, for your other Clojure projects)
This looks excellent though - I'll give it a go once I think of a toy project to try it with.
However, given that ClojureScript uses the Google Closure compiler to optimize production code, there are a few gotchas to be aware of. This article does a great job at explaining the details:
• http://lukevanderhart.com/2011/09/30/using-javascript-and-cl...
Note: Installing failed for me until I replaced git:// with https:// in two places in script/deps. Then it worked.
I believe Jen Myers (@antiheroine) is one of them.
Using ClojureScript in the browser gives you a language to use that's consistent with what you're using on the server, and easy interop (you can just send data back and forth directly, without having to do any extra serialization). It's also (in my opinion) a much better language than JavaScript.
Learning curve is the one likely stickler - depends how inclined you are to learn a Lisp. Personally, I love it.
Personally, I'm attracted to Lisp/Clojure because of its AI history but haven't put the time in to build anything real with it yet. Are there people who have switched away from (Node || Python || Ruby) && JS who could discuss their experience?
It's very strange actually, I tried really hard to do a small project in clojure at my current job and got resistance from everyone. These same people were happy to try coffee script, scala, golang, etc, etc. There seems to be a true bias against lisps.
Personally, it gave me new vocabulary and conceptual tools for explaining why I like Clojure so much.
We dote too much on the history of Lisp w/r/t Clojure IMO. Clojure is not CL. Clojure is not Scheme. Clojure is not Haskell. Clojure is Clojure. It has its own state, identity, and time. Make great stuff with it and other people will follow. My feeling is that was need to quit waiting for approval and simply draw the line in the sand. I would be happy to forfeit future programming job opportunities if it meant committing to a language that solves the problems I care about. Will everyone do that? Unlikely. Will the people who know better than to settle for second best do it? I have a feeling the answer there is closer to yes.
http://www.dwheeler.com/readable/sweet-expressions.html
It wouldn't be too hard to develop an indentation-based dialect of Clojure.
There are problems with this syntax when you combine it with macros. There is some work done to solve this but not much. For a (theoretical) lisp that works this way, see here: http://users.rcn.com/david-moon/PLOT/
Sometimes you can get the best of both worlds by doing something like ClojureScript, which is to compile to a mainstream language. That is compelling.
In the end, Lisp is really powerful, it's better than other languages, and it's worth learning. If you can deal with the lack of a huge community, you'll be fine. Clojure is gaining quite a large following, actually, so it's one of the best environments to learn Lisp.
So in this case you can actually use both.