This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # atom-editor (5)
- # babashka (6)
- # beginners (29)
- # calva (16)
- # cider (1)
- # clj-kondo (20)
- # cljs-dev (44)
- # clojure (29)
- # clojure-europe (19)
- # clojure-nl (8)
- # clojure-norway (7)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (56)
- # clojurescript (32)
- # code-reviews (30)
- # conjure (24)
- # crux (15)
- # cursive (49)
- # datomic (4)
- # fulcro (31)
- # helix (3)
- # instaparse (4)
- # kaocha (100)
- # lambdaisland (2)
- # mid-cities-meetup (1)
- # monads (1)
- # off-topic (42)
- # pathom (13)
- # pedestal (6)
- # portal (5)
- # re-frame (6)
- # reagent (9)
- # reitit (11)
- # remote-jobs (1)
- # rewrite-clj (11)
- # shadow-cljs (44)
- # sql (22)
- # tools-deps (13)
- # uncomplicate (1)
Normally I wake up 4:25am. But ATM I am on holidays in Greece so we already have 7am 🙂
Even with an 8:45 am alarm, I'm dragging my carcass out of bed and I'm useless until I've had a big, strong mug of freshly-ground dark roast coffee!
That’s why you can do so long development sessions. When I wake up 4:25am, usually at 4:26am I am already practicing italian words in Anki. I burn a lot of energy long before I start doing anything creative.
I'll be honest: I find writing code relaxing. If I wasn't a software developer by trade, I'd still write code for fun. I think it's why I've been doing OSS development for nearly 30 years now.
cycles of wakefulness are roughly 90 mins though iirc so i find there's usually a very thin window at about 10-10:30pm where my energy dips and i can sleep if i've not had caffiene in the pm, but it's uncanny... if i don't get to sleep fast, i jolt awake & i'm up til 1:30 haha
Long after I've been automated out of a job by no code tools and WordPress, I'll be using voice dictation to program unix utilities for fun.
https://www.theregister.com/2020/08/14/mozilla_google_search/ does this mean they will be rehiring?
Happy Friday! 🙂 Dang, I can’t deal with being up late at all. I sleep from 22:00 - 5:30. I really prefer the mornings
With a 3 year old kid, I have no choice 🙂 Today it was 4:10. Yesterday was 4:30, day before was 4:51. At this rate, he'll be getting up before he goes to bed.
Do they still show 'Me Too' on CBeebies really early in the morning? I remember watching that several times
and it's Something Special at that time, followed by the Twirly Woos, then Teletubbies, then Timmy, then Bing, then Hey Duggee, then Go Getters, then Peter Rabbit, then Octanauts...
Hey y'all I am having a Clojure-Fu and Google-Fu failure... I have a BIG lazy seq that is a seq of maps. I want to turn it into a text file representing EDN or JSON (not bothered which). How can I do this without blowing the stack - I am worried that if I turn the whole seek "real" and then into a string in order to spit it, I will have a problem. I am sure that there must be an appropriate way to stream the seq out to a textfile, but I am struggling to get Google to understand me and it keeps showing me examples for smaller data structures where the questioner cares about line breaks and so forth - I don't, I just want to persist the data in such a way as I can read it back in...
EDN is slightly easier than JSON too 'cos no separators required, but then there's JSON-lines too
@U0524B4UW EDN works for me... If you had to find an example what would you Google for..?
not much of an answer, but i probably wouldn't - i tend to prefer playing in a repl to googling for potted solutions
That's fair - I don't want to simply lift and shift the code, I just find that I grok things more easily if I can see how it's been done 🙂
....but when I have literally no clue I just find it intimidating and I don't know where to start
We do a similar trick producing a huge JSON doc as a dump of all member-related data in the database (when they do a GDPR request).
yep, we do something similar to dump cassandra tables to CSV ... although we use a manifold stream rather than a lazy-seq
Most of the JSON generators can do this without anything funky. Just point them at a file.
Thanks all, I got it working by doing a reduce over the lazy-seq and it's supremely performant, so I am dead chuffed
(reduce (fn [out v] (spit out v :append true) out) (io/file (io/resource "output/output.edn")) hotels-with-ids)