This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-18
Channels
- # beginners (123)
- # boot (3)
- # cider (6)
- # clara (1)
- # cljs-dev (139)
- # cljsrn (9)
- # clojure (59)
- # clojure-italy (5)
- # clojure-uk (41)
- # clojured (10)
- # clojurescript (67)
- # community-development (1)
- # component (2)
- # core-async (7)
- # cursive (4)
- # datomic (4)
- # defnpodcast (2)
- # fulcro (23)
- # graphql (1)
- # jobs (2)
- # leiningen (4)
- # off-topic (32)
- # portkey (7)
- # protorepl (5)
- # re-frame (19)
- # reagent (5)
- # reitit (23)
- # shadow-cljs (29)
- # slack-help (1)
- # spacemacs (1)
- # tools-deps (21)
- # unrepl (18)
Morning. Nice and white outside this morning
Go start a snowball fight @dominicm 😉 ❄️
thinking yet more about event sourcing today and what it really means from a design pov (I love that everything becomes map and reduce and I'm thinking that I don't need a database any more for my aggregates as long as I have a good durable store for my events)
I've got some code I'm pretty happy with that works for a batch. I just need to think about how it changes when reads are happening at the same time as writes so I need to think about how I'll model things using atoms/refs/other in ways that avoid too much contention
@otfrom - I would really love to pick your brain about this stuff (event sourcing) some time (soon)...
@dominicm - Seeing as you are up... Am I being dense or is it possible that tick does not yet support creating a sequnce of "ticks" that are one year apart?
I've looked through the source code and can't find an implementation of "years" and if I do this:
(take 10 (timeline (periodic-seq startdate (years 1))))
I get 10 datetime objects that are exactly the same as one another, whereas if I do this:
(take 10 (timeline (periodic-seq startdate (days 10))))
I get a 10 datetime objects that are each 10 days apart...@maleghast something tells me you have found a bug 😛
In the short term I can probably use clojure.java-time to do what I want, but I like tick and its API so I was hoping to use it for what I need too...
We definitely had this at some point, but things went into deprecated namespaces and I'm not sure anymore.
If I had more time on my hands I would fork it and try and fix it / put it back, but I need to get some other stuff done__
So... While @otfrom manages migration Hell... If I had (1,2,3,4) and I wanted ([1, 2], [2,3], [3,4]) is there a standard library function that can do that..?
I'll have a look at partition-all, but partition appears to be exactly what I wanted. These are the reasons why I ❤️ Clojure... This would be nested loops in Ruby.
Ah, I am doing a (partition 2 1 coll), so I don't think that I need partition-all...
list comprehensions in python at a guess. I really disagree w/Guido that they are easier to understand than map and reduce
and now it works. Anyone fancy giving me their opinion on the PR? https://github.com/otfrom/clucy/pull/1