This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-27
Channels
- # aws-lambda (3)
- # beginners (3)
- # boot (327)
- # capetown (2)
- # cider (156)
- # cljs-dev (368)
- # cljsjs (13)
- # cljsrn (53)
- # clojure (403)
- # clojure-czech (5)
- # clojure-dev (4)
- # clojure-greece (2)
- # clojure-russia (72)
- # clojure-spec (12)
- # clojure-uk (129)
- # clojurescript (156)
- # core-async (1)
- # cursive (33)
- # datomic (35)
- # emacs (10)
- # events (1)
- # hoplon (4)
- # jobs-discuss (3)
- # klipse (1)
- # lein-figwheel (14)
- # leiningen (5)
- # luminus (5)
- # off-topic (15)
- # om (69)
- # om-next (2)
- # onyx (2)
- # parinfer (15)
- # perun (12)
- # re-frame (30)
- # reagent (7)
- # ring-swagger (8)
- # spacemacs (10)
- # specter (6)
- # untangled (69)
- # yada (13)
@mccraigmccraig - why not mount your .m2 as a volume in the container(s)?
(i.e. the local .m2 that would normally speed up builds wherever you are running them?)
@glenjamin - Yes AWS ECS is "not magic enough" - I would absolutely agree with that.
Morning
@mccraigmccraig I was going to suggest what @maleghast said. Might be something you can 'steal' from this although it's not exactly what you want https://github.com/markmandel/wrapping-clojure-tooling-in-containers
@maleghast the build is running remotely on a cloud service
@maleghast a git wekbhook triggers a checkout and build of a docker image, then runs a docker composition task which runs tests against a fresh db server and if those pass then the docker image gets pushed to dockerhub - so it's a completely isolated CI+CD solution. it's reasonably fast if the lein deps don't require installing every run, but if they do it slows right down
@mccraigmccraig - Ah... OK, sorry, I can see why that's both more annoying and not well-suited to my suggestion š
ta š
would a base docker image with some of your common dependencies pre-installed speed it up at all?
Morning. @mccraigmccraig, Mark Mandel is on this slack group if you want to ping him a message regarding the repo above. He's based in the US now. Really nice guy.
Yeah. To be fair he's really only looking at using Docker as an isolated dev environment tho. Of course he may have moved on a lot since 2015
i've got something to try for now @yogidevbear (`ADD`ing the project.clj
s in a Dockerfile
step before the rest of the project - should only trigger deps pulls when one of the project.clj
s changes) - i'll see how that goes
How about LightTable? š
> We don't tolerate cursive. how come? (real curiosity here, not looking for arguments for arguments sake)
I never really got into Emacs... and I used LightTable for a while and really liked that...
I should add this comment was mostly in jest. But the general consensus is that it takes you too far from the bare metal, also trying to get cursive's styling to be aligned with vim & emacs is near enough fucking impossible, I really tried.
but LT is kinda dead IMHO... and then Atom came along... and the Proto-repl has some nice things in it as well
I adopted Spacemacs a couple of months ago. Itās great but really sluggish after a while, still havenāt worked out why
@lsnape i just switched from prelude to spacemacs - i'm not seeing any sluggishness though
mccraigmccraig every so often I type space-{A-Z}, and if I delay then it hangs for a few seconds. I think itās something to do with searching for key command suggestions. Are you on OSX?
when I was on that legacy OS I used this: https://emacsformacosx.com/
I used emacs even when I was doing a lot of java, so I've never really been tempted to any of the IDEs
@otfrom the railwaycat port supports firacode which was why i moved from emacsformacosx
otfrom Spacemacs has opened my eyes to all sorts of packages. Iāve found some real gems by serendipitously mashing the keys
i hate slack's @ mention search behaviour
yeah, spacemacs is great for exploring clj-refactor and things
@dominicm interested in your comment about Cursive styling. Here we have mostly Cursive, 2 or 3 Emacs and 1 on VIM but we've just introduced cljfmt on all builds which seems to follow the default styling rules for Emacs clojure mode pretty closely so not sure how much pain that causes Cursive users but I find that if I reformat in Emacs it doesn't change the existing code structure much so Cursive users must have figured out a sane compromise.
also spacemacs handles window-sizing and message buffers really well
Is it just me who thinks disabling automagic-formatting is far easier than trying to get editors to agree?
@glenjamin not just you - i insist on 2-space indents and no tabs, but after that i don't care too much
@agile_geek there are things that cljfmt doesn't "undo", zprint might be better
@thomas is this the talk you were referring to? https://www.youtube.com/watch?v=buPPGxOnBnk
@jasonbell morning. How's things
Youāve got alarmingly polite in the last 48 hrs @agile_geek
I'm fine and don't get used to it! š
@agro_geek ?
@mccraigmccraig oh I like that
"thinks funny how mentioning cursive triggered a chat on all other editorsā <- this is because cursive just works out of the box without discussion and configuration and plugins and elisp
I've always been keen on everyone using the editor/IDE they like. I've been on the losing argument of that too many times in my career
"you can use any editor or IDE you like, as long as it is emacs"
@peterwestmacott i think the situation is nice on the clojure editor landscape. you can go vi/emacs if you want to control your own tools more and you can go cursive if you want an IDE experience. and both of these options are pretty advanced. plus you have lighttable, atom as well if you want that too for some reason
@benedek I agree that it is nice - itās great to have such broad support
in MC I do say "use whatever you like, but I only really know how to support emacs", which probably has forced some people
I still struggle to understand how you can use emacs for java though. Intellij and Eclipse just generate all the boilerplate cr*p for you.
@agile_geek I archived all my java projects in my private bitbucket repos, "Clojure or nothingā was how I put it to myself.
@jasonbell not an option if I want to pay the mortgage
Well Iām kinda lucky that the company I work for..... etc etc etc š (and I donāt have mortgage)
The company I work would be quite happy to go all Clojure (I know the CEO/CTO really well!) but they'd promptly go bust
oh well ĀÆ\(ć)/ĀÆ
@acron true, but you can't switch to clojure to achieve programmatic purity. clojure is far too accepting of side-effects to be compatible with such a lofty goal
Since discovering golden-ratio
in Spacemacs I cant live without it š
i tried golden-ratio
@jr0cket , but i don't like it... i keep all my source files to <80 chars and golden-ratio makes the primary window too wide
@mccraigmccraig I just switched to emacs-macport from emacs-plus. No more annoying pauses between commands! š
@mccraigmccraig there is always golden-ratio-adjust
... I also experimented with the widescreen version, which is nice
@krisajenkins Do you have a variant of your RemoteData ADT that you use for update requests, or do you use the same shape?
@agile_geek you can get IDE features for Java or Scala with Emacs using http://ensime.org/
@agile_geek Cider also supports cursive formatting too... but I would have hoped that all tools follow the Clojure style guide
agile_geek I used to have a lot of code for generating the boilerplate for c++ and java. Usually from some sort of spec file. Wasn't too bad
Actually while weāre on the subject of Emacs, when I type a url /thisusedtobemyplayground
then Emacs just locks up and I have to kill it, Iām assuming thereās some mad evaluation thatās getting stuck in a loop or something.
@jasonbell I think Emacs just hates Madonna. Fair enough, I say.
@glenjamin Thatās an active area of discussion: https://github.com/krisajenkins/remotedata/issues/9
wasnāt quite what i meant though @krisajenkins - i was thinking more about modelling the state of a āPOSTā request, ie. submitting a form
Yeah, it is right? š
Yeah, Iām leaning towards that answer too. š
Yeah. Open ADTs are an open question. š
Yeah, I use the same type for a POST. Usually holding whatever the response payload is at its type.
Wait, are we allow to say these things on a Clojure channel? šØ
Types, types, types, type-itty types.
composition is nice and all, but it does make pattern matching / destructuring a bit more fiddly
Yeah, good point.