This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-08
Channels
- # atlanta-clojurians (1)
- # beginners (116)
- # cider (70)
- # cljs-dev (11)
- # cljsrn (2)
- # clojure (218)
- # clojure-italy (7)
- # clojure-nl (14)
- # clojure-nlp (11)
- # clojure-spec (8)
- # clojure-uk (113)
- # clojurescript (86)
- # core-async (14)
- # cursive (24)
- # datomic (64)
- # duct (1)
- # emacs (3)
- # fulcro (20)
- # graphql (10)
- # jobs-rus (1)
- # london-clojurians (1)
- # luminus (1)
- # nyc (1)
- # off-topic (24)
- # onyx (1)
- # parinfer (1)
- # pedestal (14)
- # portkey (11)
- # re-frame (36)
- # reagent (9)
- # reitit (5)
- # ring (1)
- # shadow-cljs (197)
- # spacemacs (21)
- # specter (22)
- # sql (15)
- # tools-deps (5)
Shubh prabhaat
what did you have @dominicm?
mΛnmΛn
@mccraigmccraig chickpeas on samosas with some kind of curry sauce & corriander.
ru in india atm ?
No. New cafe opened up near the station, I asked him what else there was to try for breakfast, and he offered me that. I thought it sounded novel.
haha, cool. sounds nice
If anyone is interested in learning some clojure, the regular monthly clojure dojo is in the uSwitch offices this Monday June 11th.. All levels of experience are welcome!! you can register your interest here so we know how much food & drink to order https://www.meetup.com/London-Clojurians/events/kfpxnpyxjbpb/ π
@xianralph any option to remote participation..I am in Belfast
@manas.marthi Waves from Limavady..... π
Did I say good morning already? Good morning
Good morning
@yogidevbear you said good morning last night, but i dont think that counts
Feeling a little more human now. Everyone having a good week so far?
wait, wait, there are 2 clojurians in Norn Iron? @jasonbell @manas.marthi
Nor'n?
we prefer NI
@U0525KG62 Ha! I knew I wasn't alone. π
@manas.marthi Are you involved with NIDevConf tomorrow?
Hi Jason
just saw your msg.. was away from desk
I am not coming to nidevconf.. But if you are in town, we can catch up..
please let me know a time that suits you.. I live in city center.. we can meet somewhere between queens and europa..
This muscle memory reprogramming is hard work https://gist.github.com/yogidevbear/30b045e019b771a7555e6601e33838d2
learning clojure itself is a lot of work. I don't want to learn a bunch of emacs keys .. I prefer proto repl..
I love protorepl
I have both installed at the moment so if I need to be productive then I can switch to atom
But figured it was worth at least trying Emacs out so that I can understand what people are saying when they talk about modes etc
Haha I was waiting for that @dominicm π
Matt was pushing for Vim when I was in the London office yesterday.
There's "not much" to emacs in principle. There's just a lot of plugins and things to memorize.
what you need in emacs:
C-x C-s ;; save
C-c C-l ;; load into repl
C-M-x ;; eval form
C-c M-n ;; switch repl to current namespace
...and all of pareditcan't think of much else I use.
C-x-o ;; switch pane
C-x-2 ;; split window
C-x-3 ;; split window
maybe those?I think on mac emacs you can also switch pane via shift-arrow
but I forget π
yup, just checked
not on my mac-emacs @alex.lynham - S-arrow does mark/select simultaneously
weird... maybe it's that I've added it somewhere in my hokey emacs.d
mark/select for me is cmd-space
for some reason π
I have used vim for quite some time. I learned emacs for a while for to do clojure programming. Later @seancorfield told me about a talk by stuart halloway on "repl driven development", and his own experiences with emacs etc., and his latest decision to move to proto repl. I took his advise and saved my time and energy in doing a research of emacs/ed(1)/vim and coming up with an educated opinion..
At present I am working on a windows pc. I don't need to do programming on a linux terminal
so no hurry to use emacs
if I was starting again today I'd use protorepl - that's what I've had other people install to try
but I was working with two emacs users when I learned so it was less friction at the time
I spent some time to learn orgmode on emacs.. But quickly fell back to onenote
i've used emacs on and off since 1988 with C,C++,java,ruby,javascript,python,&c ... languages and other editors and IDEs come and go, but emacs remains
orgmode is the only usecase for using emacs for me
Same here as @mccraigmccraig: before
ive been meaning to try out spacemacs (from nvim) for a while, but im going to wait until there's decent support for parinfer.
Does anyone have some small projects on github so that I can run it, test it, and study the code?
So far, I have been just reading (read brave new clojure, clojure in action, a little bit of the web development ), and watching videos (stuart halloway's oreilly lectures, and two courses on plural sight, and one course by adam bard in oreilly)
I did these things over a long period of time, with many gaps in between, so I can't count all of it as intensive learning..
say todo web apps, reporting tools, document readers/parsers, web scraping, pdf file readers that store data into db, batch jobs that can read csv data and create html reports, programs that can convert unstructured data into relational table data..
simple server-side web app - introduces ring and compojure libraries which are commonly used http://practicalli.github.io/clojure-webapps/
thanks a ton !!
If you want a web scraper, a friend wrote this: https://github.com/nathell/skyscraper - there should be a presentation floating somewhere about it
Said friend is lurking here and actively developing Skyscraper, so AMA π
a fair few things on http://github.com/mastodonc but a lot of them are libraries or bigger
I'd recommend building an app with luminus or compojure-api to see how a bunch of sensible defaults can be thrown together maybe? π
I feel like a great big n00b... I need to update a map, the structure is like this:
{:a {:foo "bcz"}
:b {:foo "bsa"}}
I assumed that this would work:
(assoc-in testmap [_ :foo] "bar")
but it really doesn'tguess we need to use update-in?
I already have a function that works that is expecting this structure so I don't want to switch to a vector of maps
OK I've reread the clojuredocs page for update-in and it has the same problem as assoc-in
you can't specify "for any top-level key, change the value associated with the following child key"
I recently discovered specter library
it might be what you need.. but I am a noob here .. so cannot advise much
@maleghast you need to iterate over the map to make multiple changes - I donβt know the best way, I tend do to a lot of iterating over a map, then making a new map with into {}
β¦
(let [m {:a {:foo "bcz"}
:b {:foo "bsa"}}]
(into {}
(map (fn [[k v]]
[k (assoc v :foo "bar")])
m)))
Or reduce-kv
...
(Let me go look that up!)
Yeah, I was remembering correctly.
Very useful function introduced in Clojure 1.4.
@seancorfield - That's it!
Seriously @seancorfield that is absolute magic!
Always discovering fun new functions in core! π