This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-22
Channels
- # adventofcode (78)
- # announcements (12)
- # babashka (2)
- # beginners (116)
- # calva (20)
- # cider (17)
- # clj-kondo (15)
- # cljs-dev (51)
- # clojure (32)
- # clojure-android (1)
- # clojure-dev (4)
- # clojure-europe (91)
- # clojure-gamedev (1)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (9)
- # conjure (3)
- # cryogen (4)
- # cursive (4)
- # data-science (1)
- # datomic (5)
- # depstar (5)
- # fulcro (39)
- # google-cloud (2)
- # kaocha (2)
- # malli (7)
- # off-topic (3)
- # pathom (3)
- # pedestal (5)
- # re-frame (19)
- # rewrite-clj (54)
- # ring (3)
- # shadow-cljs (12)
- # spacemacs (12)
- # specter (3)
- # tools-deps (63)
Morning and hello 👋:skin-tone-3: @hequ
Morning! I forgot a merge marker in an EDN file and it parsed correctly as a key value pair:
>>>>>>> origin/master
I once spent ages tracking a rogue '
in an edn file which was parsed as it's own symbol
user=> (clojure.edn/read-string "{:foo '(bar)}")
Execution error at user/eval3 (REPL:1).
Map literal must contain an even number of forms
BUT IT DOESHow much time do software engineers spend just looking at single character mistakes on a daily basis (cumulative )
I don't think that applies to java too much, as we most of that baked into client libraries.
I wonder if that actually works. Is opening a real db connection that much more expensive than this fake one? I always assumed tcp handshakes were the delay.
Single character problems. Try putting a ~ on a new line at the end of a file when you’re a vi user.
I still have no idea why tildas are still a thing in vi .. anyone?
@thomas sure. But is that faster than holding them locally and establishing a new connection to the proxy repeatedly?
the idea is that all the retrying logic isn't needed in every lambda. and the proxy can do some authentication for you as well.
@raymcdermott huh you’re unable to type a tilde in vim?
@synthomat it’s the visual end-of-file marker.
hm I’m wondering why ring has a session-wrapper that relies on storing the session key in cookies but doesn’t provide anything where the user can implement a custom “key-function”
Cypher sucks. Long live gremlins. I'm too lazy to dig in, but I really hope graph query language doesn't repeat the sql mistake and make string mashing the building tool. I'm now annoyed I have to do that with cypher.
Wow, not trolling
I know it’s the end of file marker but my point is that can easily be confused for a legal character in most programming languages. The fact that you can countermeasure it doesn’t make it good
These days the editor could easily choose a more evident set of characters. I’m assuming that Unicode support is in there by now
Just saying it’s a bad default for 2020
Should be ❇️❇️❇️❇️❇️
For example
Yeah it’s yet another sharp edge
I used vi for decades and it’s still my fave in many contexts but just saying that there are problems
Having a patch / fix really isn’t the answer cos 99% of users don’t have that - they have the defaults. Bringing it home, Clojure is a great example of why defaults matter.
But it's defined as a data protocol, so it's language agnostic and has a nice dsl in every language!
Yes, but RDS flavor or Aurora flavor? Or perhaps you need to change something in the security groups of those instances?
I tried both RDS and Aurora at the moment.... it turns out you need roles, secrets and what more... still working on it.
The implementation we’re using is implemented in/backed by Groovy which leads to all kinds of great surprises.
Does anyone know how I can force Clojure highlighting in a gist? https://gist.github.com/borkdude/e6f0b12f9352f3375e5f3277d2aba6c9
@borkdude ooor put #!/usr/bin/env bash#
looks ugly but seems to work for both shebang and highlighting
I've seen some inline-comment hint recently to set the language. I should have written it down
@slipset I think there's a clojure implementation kicking about. Anyway, that's way better than the neo4j cypher dsl:
(query g "social"
(.render cypher-renderer (.build (.returning
(Cypher/match (into-array [(.. (Cypher/node "person" []) (named "a"))]))
(into-array ["a"])))))
I think I'm going to have to "honey" that up somehow.I'm planning to try and load clojure code into redisgraph and see about querying it.
@slipset things like https://github.com/clojurewerkz/ogre look nothing like groovy of course. So I think it's all down to the library you use as to what syntax you get.