This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-11
Channels
- # arachne (5)
- # beginners (28)
- # boot (59)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (10)
- # clojure (58)
- # clojure-brasil (2)
- # clojure-czech (9)
- # clojure-miami (1)
- # clojure-poland (2)
- # clojure-russia (12)
- # clojure-spec (16)
- # clojure-sweden (1)
- # clojure-taiwan (1)
- # clojure-uk (77)
- # clojurebridge (3)
- # clojurescript (108)
- # cursive (5)
- # datomic (25)
- # defnpodcast (2)
- # editors (1)
- # events (1)
- # funcool (24)
- # hoplon (37)
- # instaparse (1)
- # lein-figwheel (7)
- # leiningen (7)
- # luminus (3)
- # off-topic (9)
- # om (90)
- # onyx (88)
- # proton (3)
- # protorepl (9)
- # re-frame (30)
- # reagent (23)
- # rethinkdb (2)
- # untangled (33)
- # vim (1)
- # yada (6)
morning.
@otfrom: the merciless or some other ming ?
just remove that middleware then
which one @martintrojer ?
nothing is automatic in ring
most likely you pulling in some default middlewares from somewhere @thomas ring-defaults seems a likely culprit
Quick question folks - is there any built-in function to do simple string templating, a-la erb or similar - just something that understands maps, like (template “hello ${foo.bar}” {:foo {:bar “world”}})
?
i tend to rely on format
and helper functions, which probably isn’t a very helpful answer
yeah. Guess I should use a proper one - just trying to avoid project.clj bloat for a tiny bit of code. Hmm, maybe I can convince my config tool to do it...
they almost certainly tested it. In many cases not in a reproducible way they checked in 😞
Yeah - trouble is, most of the templating libraries add a whole lot of stuff I don’t need, like loops and nesting and callbacks and the like. Great if you are building html - I just want something like es6 string interpolation.
anyway, seems on review that I probably don’t need this, which saves me the half an hour digging through clojure-toolbox to work out which templating library is well tested, and simple/easy, and stable… 🙂
(I have a long-term “I’ll never really get to it” plan to write a chrome addon, that does simple github project metrics when you hover over a github link - stuff like “are there tests / CI builds”, “how many active issues are there”, “when was it last upated”… - all the stuff I do manually when looking for a good library 🙂 )
@thomas: here you go - https://github.com/ring-clojure/ring-defaults/blob/master/src/ring/middleware/defaults.clj#L91 - copy the rest and get rid of that, or look at the anti-forgery middleware to figure out what you are doing wrong
cool, thank you @mccraigmccraig I’ll give that a try… (in between my “normal” job )
jobs, who needs them....
I know… hacking Clojure is way more fun (even if at times like this rather frustrating). but my team lead (see previous discussions here 2 weeks ago) can be very pedantic from time to time.
Leadsom dropping out
It'll be a coronation of May then
@thomas: If you look at the wrap
function there, it looks to have a way to disable individual bits
yes I noticed that as well @glenjamin
@thomas: As a rule, I've found that defaults/site rarely suit my purposes, and it's better to just add them myself. Especially for small projects.
Rumours of Andrea Leadsom quitting send pound jumping to a <cough> three hour high.....
Then again, I'm a big fan of the no-framework approach to things. So our preferences may vary.
Yeah, at the least I think we can harvest some good ideas from it. Monolithic projects often have their good ideas pulled into smaller libraries once the abstraction is figured out.
How come nobody ever polls politicians on their attitude to FP vs OO programming? I don’t even know if May is a fan of immutability. And who writes better macros - Corbyn or Eagle? It’s so hard to know who to like.
i'm pretty sure almost all politicians would blanche at the idea that immutability is even a thing @korny
Pity. “I’m sorry, when you called (brexit eu :uk) you created a new instance of eu - the current one still contains :uk” 🙂
Just listened to May's talk
wow, that was the Labour agenda
she just killed off the Labour party completely now?
summary @martintrojer ?
An economy that works for everyone, Reforming the economy for greater shared prosperity, Putting people back in control, Giving people more opportunity, Getting tough on corporate irresponsibility
but ofc
don't forget mandatory fox hunting
remember this slack is stored and scrutinized by the lads over at GCHQ. 👋
@martintrojer: no, that'd be domestic spying and thus illegal
surely not
since everyone is a terrorist until proved otherwise?
It's stored and scrutinized by our friends over at the Bundesnachrichtendienst, anonomised through a secure rot13 algorithm, and then supplied to our friends at GCHQ
let's just agree that all our communications are steganographic and that any ciphertext resemblance to idiomatic english is purely coincidental
something tells me there might well be a discrepancy between what May says and what she’ll actually implement and condone (ie. not really doing anything about tax avoidance etc.)
also, anyone's statements should be updated in bayesian fashion using their prior performance at achieving same... any conservative statement claiming "reforming the economy for greater shared prosperity" should have the posterior distribution quartiles suffixed and so should read something like "reforming the economy for greater shared prosperity [0, 0.1, 0.2]"
so May will be PM on Wednesday…. when… ohhh… when will she press the Article 50 button?
@thomas i won't be making any long bets on the future of the €. CHF seems like a better bet atm, though i have an awful record at predicting FX pairs, so you should ignore me