Re: Clojure Users Group - Denmark

2013-11-15 Thread Krukow
On Thursday, November 14, 2013 11:40:08 PM UTC+1, Jacob Mortensen wrote: > > I do clojure+clojurescript hobby programming at home. I live in > copenhagen. It seems there is a clojure user group here in copenhagen, but > I havent been able to locate it. > We've started to write some of the concu

Caribou: custom templates shadow _admin templates

2013-11-15 Thread Tassilo Horn
Hi all, I'm just toying around with Caribou. I successfully created the models of my toy app, and now I started defining routes, pages, and templates. I started with this: --8<---cut here---start->8--- (def routes [["/":home [["login" :l

Re: Caribou: custom templates shadow _admin templates

2013-11-15 Thread Justin Smith
The your own resources subdirectory is merged over the admin one, the structure visible here: caribou admin templates And yes, anything which has the same directory structure in your project is merged over the admin templ

Re: Caribou: custom templates shadow _admin templates

2013-11-15 Thread Justin Smith
Update: I have created a namespaced-templates branch of caribou-admin, and the fix actually looks like it will be a shallow change (if moderately tedious given our lack of relative partial paths in templates which gives me another idea...). On Friday, November 15, 2013 6:36:30 AM UTC-8, Justin

Re: Do web apps need Clojure?

2013-11-15 Thread Marcus Blankenship
Me too! Thanks to everyone who’s contributed, it’s been *very* helpful! On Nov 14, 2013, at 10:43 AM, Waldemar Schwan wrote: > I just want to say that this is one of the most interesting discussions I > followed on this mailing list. > > Thanks to all participants. > > Am 14.11.2013 um 19:2

Re: Do web apps need Clojure?

2013-11-15 Thread Marcus Blankenship
Thanks Sean, wonderful input! On Nov 14, 2013, at 2:28 AM, Sean Johnson wrote: > I'm a "Rails guy" who now uses Clojure for all new web development, so don't > take what I'm about to say as disagreeing with Justin. > > As someone with a foot firmly in both worlds, a couple of Justin's point

Re: How could you solve this problem

2013-11-15 Thread Leon Grapenthin
Round Robin: In case you are new to Clojure, I have written extended commentary of my implementation here: http://programmers.stackexchange.com/questions/194487/ring-of-numbers-where-adjacent-entries-sum-up-to-a-prime/218470#218470, were somebody else asked about the problem in April. On Tuesd

Re: A Design (Simplification) Problem

2013-11-15 Thread Oskar Kvist
Thank you everyone for your input! @James Hm, I think I understand what you mean. Interesing idea, I will think some more about it. @Sacha Ah, yes, of course. I don't know why I didn't think of it. Probably because I had I similar idea when I first started out but discarded it for some forgo

Re: Caribou: custom templates shadow _admin templates

2013-11-15 Thread Tassilo Horn
Justin Smith writes: Hi Justin, > The your own resources subdirectory is merged over the admin one, the > structure visible here: caribou admin > templates Ok, thanks for the clarification. At least login and logout seem

Re: Caribou: custom templates shadow _admin templates

2013-11-15 Thread Justin Smith
Yes, I've made significant progress in moving the templates, but a few of the field editing partials are not accounted for yet. Right now most of the admin works in the new branch, but a few of the field editors have some errors introduced. You are welcome to check out the namespaced-templates

Re: Caribou: custom templates shadow _admin templates

2013-11-15 Thread Justin Smith
And yes, you could still customize by overriding the templates in their new path (which all being under _admin would not reasonably conflict with an app that intends to use the admin). On Friday, November 15, 2013 10:20:25 AM UTC-8, Justin Smith wrote: > > Yes, I've made significant progress in

maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Brian Craft
Pulling this from another thread: On Nov 14, 2013, at 2:28 AM, Sean Johnson wrote: The magic of meta-programming (Ruby) vs. magic of macros (Clojure) vs. no magic (Python). This probably comes down to personal preference, and so is a potential benefit of any of them, depending on your preferen

What does Clojure get from Java 8?

2013-11-15 Thread Charles Harvey III
I had read that the Clojure team was prepping the build to work on the new JDK8 and it got me to thinking - what does Clojure get from Java 8? Will it be using some of the new features or does the compiler just need to be ready for changes in the JDK so compilation passes? Clojure already has m

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Karsten Schmidt
To me macros & DSLs are just an instance/extension of the DRY principle and not that much different to using functions (albeit with more syntactic freedom, e.g. by supplying a body expression to be wrapped or transformed into something more complex). Of course there's the potential loss of control

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Jay Fields
I've worked extensively in Java, Ruby, and Clojure, so I have plenty of experience with having and not having meta-programming and macros. In my opinion meta-programming and macros are not black art, they are simply part of the language. If someone chooses to do something that isn't easy to underst

Re: What does Clojure get from Java 8?

2013-11-15 Thread Andy Fingerhut
There are only two changes I am aware of for JDK8 preparation so far, and they are simply to allow Clojure to compile without warnings [1] and pass all of the unit tests without failure when using JDK8 [2]. These are minor changes. [1] http://dev.clojure.org/jira/browse/CLJ-1264 [2] http://dev.cl

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Brian Craft
On Friday, November 15, 2013 12:10:59 PM UTC-8, Karsten Schmidt wrote: > > To me macros & DSLs are just an instance/extension of the DRY principle > and not that much different to using functions (albeit with more syntactic > freedom, e.g. by supplying a body expression to be wrapped or transfo

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Jay Fields
On Fri, Nov 15, 2013 at 3:30 PM, Brian Craft wrote: > I've heard people doing contract work in ruby swearing when > they encounter another DSL: it kills their productivity. > those same people wouldn't have Ruby contracting work if it weren't for metaprogramming... -- -- You received this mess

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread James Reeves
The first rule of macro club is "Don't write macros." Macros are powerful, but they should be considered the last avenue of attack. Often macros are a slim wrapper around an API made out of functions, and there just to provide some syntax sugar. Libraries that use macros more extensively, like co

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-15 Thread Gary Johnson
Hi Kris, I really like your approach, but I've also been feeling the burn a bit with having to store each SQL query in its own file (especially since my data exploration frequently leaves me cataloging hundreds of them). Take a look at the approach used in sql-phrasebook: https://github.co

[ANN] Cornet 0.1.0 - Clojure asset pipeline for minification and compilation of LessCSS and CoffeeScript (...more coming soon)

2013-11-15 Thread Marcin Skotniczny
https://github.com/cosmi/cornet Cornet is a simple asset pipeline that will help you compile on the flight LessCSS, CoffeeScript and minify all your CSSes and JSes. I wasn't happy with what's already there (dieter

Re: maintainability, DSLs, declarative APIs, etc.

2013-11-15 Thread Mars0i
One more point that no one has emphasized: Lisps allow code to write code. Sometimes the way to provide an abstraction or generalization of a pattern is by writing a code-writer. Macros provide a convenient way of using that capability. (On a project years ago, for every Java class of kind X