Re: [ANN] Component: dependency injection and state management

2013-11-21 Thread abp
Hi, great work indeed. One question though: Why do you prefer declaring dependencies between components of a system explicitly instead of using prismatics Graph? On Thursday, November 21, 2013 3:01:19 AM UTC+1, Stuart Sierra wrote: This is a small library/framework I've been working on for a

Re: Compiling Clojure security knowledge

2013-09-02 Thread abp
clojars uses https://github.com/ato/clojars-web/blob/master/src/clojars/web/safe_hiccup.clj which automatically escapes. But that double escapes attribute values if you don't put them in raw-calls. On Monday, September 2, 2013 6:32:59 AM UTC+2, Ivan Kozik wrote: On Sun, Sep 1, 2013

Re: Not using dependency injection - how do I share services around?

2013-05-11 Thread abp
Well, you could also watch Stuart Sierras talks on structuring functional programs: Clojure in the Large http://vimeo.com/46163090 Thinking in Data Functional Design Patterns http://www.infoq.com/author/Stuart-Sierra On Saturday, May 11, 2013 10:48:02 AM UTC+2, Colin Yates wrote: Yes it

Re: [GSoC 2013] CinC

2013-03-04 Thread abp
Is this work related? http://clojurewest.org/sessions#martin https://github.com/kanaka/clojurescript On Monday, March 4, 2013 4:15:07 PM UTC+1, Ambrose Bonnaire-Sergeant wrote: Any prospective students interested? On Mon, Mar 4, 2013 at 11:04 PM, Aaron Cohen aa...@assonance.orgjavascript:

Re: Converting large OOP codebase to clojure

2012-11-17 Thread abp
Use abstractions, forget inheritance. Try modeling what the program does in terms of data conversion. Then you will only need functions and data. On Saturday, November 17, 2012 2:40:05 PM UTC+1, Jonathon McKitrick wrote: One project I've considered porting is highly OO, with a large number of

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2012-10-30 Thread abp
I find this behaviour quite unfortunate because I now have to explicitly test for nil? and ensure consistent behaviour. Yes, especially unfortunate considering that Rich said the reducers lib could be used as a drop in replacement for core to speed up programs, or something along the

Re: code design in clojure

2012-10-18 Thread abp
You probably want to watch this: vimeo.com/46163090 Also, try to think of your programs in terms of pipelines as much as possible. You get input, you produce output. That probably applies to every program ever written, but when you get how that works in Clojure, it's like an enlightment, at

Re: code design in clojure

2012-10-18 Thread abp
Now I remember the more important video: www.infoq.com/presentations/Thinking-in-Data Also (haven't watched): www.infoq.com/presentations/Programming-with-Values-in-Clojure -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: Question: Looking at Noir code - hey, are those singletons?

2012-09-13 Thread abp
From what I've heard, you are absolutely right on those globals. It isn't considered idiomatic and should be avoided, like in all other languages. The singleton analogy fits pretty good. Some advice on how to encapsulate state in a sane way can be found for example here:

Re: Routing HTTP/ JSON in clojure

2012-09-05 Thread abp
For a decent intro to ring and compojure you probably want to watch http://skillsmatter.com/podcast/home/functional-web It's an introduction to the libraries by their author/maintainer, James Reeves. On Wednesday, September 5, 2012 9:56:51 AM UTC+2, David Dawson wrote: Thanks guys! I'll go

Re: Question about sets

2012-09-05 Thread abp
I too approve of Mark's reasoning and solution. Probably that should be moved into http://dev.clojure.org/display/design/Allow+duplicate+map+keys+and+set+elements On Wednesday, September 5, 2012 6:40:50 AM UTC+2, Peter Taoussanis wrote: +1 on Mark's most recent reply, that is: * Revert to

Re: Question about sets

2012-08-07 Thread abp
I use literals for collection-construction from arbitrary values too. Just haven't run into that issue. So, please: Put hash maps and hash sets back to the way they were -- they worked perfectly fine. Use the duplicate key check in ArrayMap to make ArrayMaps behave like all the other maps,

Twitter's Storm (complex event processing system) is now open source

2011-09-20 Thread abp
See https://github.com/nathanmarz/storm also http://news.ycombinator.com/item?id=3014039 especially http://news.ycombinator.com/item?id=3014556 -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: What are the advantages of clojurescript over straight-forward javascript?

2011-08-31 Thread abp
Seems like Knockout [1] could be used [2] also. I haven't tried that, but it would be great. Any ideas how the used MVVM-pattern could fit with FP? [1] http://knockoutjs.com/ [2] https://github.com/SteveSanderson/knockout/blob/master/build/build-windows.bat#L21 On 31 Aug., 02:39, Mark

Re: is my understanding correct for function identity?

2011-08-14 Thread abp
I wanted to add the map/cycle sample, then thougt of clojuredocs and here you go: http://clojuredocs.org/clojure_core/clojure.core/identity On 14 Aug., 00:25, Alan Malloy a...@malloys.org wrote: On Aug 13, 12:45 pm, jaime xiejianm...@gmail.com wrote: I found an interesting function identity

Re: protocols and records -- use when?

2011-07-28 Thread abp
Have a look at this: http://cemerick.com/2011/07/05/flowchart-for-choosing-the-right-clojure-type-definition-form/ Now, as far as i understood, you define a protocol and the extend it on types defined via defrecord. That's more like Character is a protocol that defines functions for movement,

Re: better community docs: getting started

2011-07-25 Thread abp
* *Meet Clojure* That's also an upcoming book on Clojure: http://meetclj.raynes.me/ -- 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

Re: clooj, a lightweight IDE for clojure

2011-07-18 Thread abp
Why is it necessary to press TAB at all? Couldn't auto-indent be the default for a line and only manually reindented lines opt-out until one opts in again using TAB or something? On 18 Jul., 22:20, Shantanu Kumar kumar.shant...@gmail.com wrote: All indentation uses spaces. I guess my fear is