This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-01
Channels
- # announcements (4)
- # aws (1)
- # beginners (172)
- # cider (16)
- # cljdoc (63)
- # cljsrn (7)
- # clojure (150)
- # clojure-dev (8)
- # clojure-europe (26)
- # clojure-gamedev (6)
- # clojure-greece (23)
- # clojure-nl (4)
- # clojure-spec (10)
- # clojure-uk (101)
- # clojurescript (40)
- # community-development (5)
- # cursive (19)
- # datomic (54)
- # emacs (39)
- # figwheel-main (5)
- # fulcro (4)
- # graphql (16)
- # immutant (5)
- # jobs (8)
- # jobs-rus (1)
- # leiningen (1)
- # off-topic (31)
- # planck (1)
- # re-frame (7)
- # reagent (8)
- # reitit (6)
- # remote-jobs (4)
- # shadow-cljs (11)
- # spacemacs (18)
- # specter (2)
- # sql (58)
- # vim (2)
- # yada (5)
måning
Guten morgen! \o
Morning
morning
I am pleased to be able to say that today is officially going [vague-slack] "better than I expected" [/vague-slack]
I can only think of one word that starts with ffffff right now, but I don’t want to spoil the festive mood 😛
(as someone said, there are only two hard things in programming: cache invalidation, naming things, and off by one errors)
(raarrrrgh)
:lion_face:
@otfrom is that the new zealand macro version?
complement it with (cdr-bro)
did you know seagulls can live to 49 uyears
Same with Parrots:upside_down_parrot:
“you’re just a hatchling so you have never seen the sea… but I remember. It was blue!”
Hey look, pretty: http://yomguithereal.github.io/clj-fuzzy/clojure.html
@lady3janepl I think that needs someone to adopt it as the maintainer has moved on to other things
it remembers my library aliases and after I restart repl it auto-requires them for me when I need to use a function from an aliased namespace
Cider does something similar with cljr-refactor… It infers it really well, and asks you to pick from a reduced set if it thinks there’s an ambiguity
I think I might need to try clj-refactor then.
Original:
4 fresh tuna steaks of around 150 g each
4 spoons of extra virgin olive oil
2 spoons of balsamic vinegar
squeezed juice of 1 lime
fresh tarragon leaves
salt and pepper
Matched:
(#{"blue" "salmon" "fatty" "mackerel" "bluefish" "catfish" "mullet" "tuna" "fatty fish" "cat" "fish"}
#{"olive" "vegetable" "oil" "oils"}
#{"balsamic" "vinegar" "balsamic vinegar"}
#{"juices" "apple" "fresh squeezed" "squeezed" "apple juice" "juice"}
#{"fresh" "bone" "cook-before-eating" "bone-in" "whole" "ham"}
#{"table" "plain" "salt" "iodized"})
@U051H1KL1 were you not doing something like this too a while ago?
for each food item it has fields like name, extended name, and a list of terms that can be used for matching
if you were creating a lookup with a hash map, and everything you want to store has a unique int that can serve as a unique key, would you use it as-is or convert into a keyword?
i'd probably stick with the int, unless you need to do a tonne of repl-based manual lookups and typing (:100 m)
rather than (get m 100)
is going to save your fingers getting worn to stumps
oh, but you have (m 100)
so it doesn't even help there
ha, i guess i've never actually tried to create a literal keyword starting with a digit
uh @bronsa my repl is letting me create :1
is it being naughty ?
@mccraigmccraig it allows you, it's still not legal
it's just the literal that's not valid clojure syntax, just like (symbol "a b c")
returns a valid symbol but a literal symbol with spaces isn't, the difference is that :1
can be input and the reader doesn't complain about it while a b c
can't
there was a release that restricted the reader to reject those literals, but the commit got reverted as people in the wild were doing it and it caused breakages
It calls out java.jdbc
there which may have had numeric literal keywords at some point in the distant past but does not now. A quick grep shows that such things have crept into our own codebase (mostly in one particular file where we have image sizes that are a mixture of symbolic names and numbers, so we rely on stuff like :1000
being valid ... oops! 🙂 )
I remember it being common in several libraries we were using back in 2013 so it broke a lot of things when the reader was tightened up.
Wow https://www.wired.co.uk/article/revolut-trade-unions-labour-fintech-politics-storonsky
Yeah that's disgraceful
Most of the fintech companies I've had any exposure to have had serious attitude problems... and that was my experience back in the 90's too when the software QA company I worked at was pitching to financial organizations -- really "superior" attitudes to everyone else in the software industry.