off-topic

https://github.com/clojurians/community-development/blob/master/Code-of-Conduct.md Clojurians Slack Community Code of Conduct. Searchable message archives are at https://clojurians-log.clojureverse.org/
Aron 2020-10-02T09:33:47.112200Z

One thing I will never be comfortable with is the ><<=>= being prefixed. The order messes with my mind. interesting because I don't have similar issues with division or subtraction, just lessthan/greaterthan

jsn 2020-10-02T10:09:23.113300Z

they all accept varargs though, you can't easily get that semantics w/o prefixed syntax

2020-10-02T11:37:43.116100Z

One trick I heard of is to mentally think of them as:

&lt;   are-the-following-ordered-from-least-to-greatest?
&gt;   are-the-following-ordered-from-greatest-to-least?
etc

2020-10-02T11:39:02.117300Z

Like if you imagine the shape of the operator as a picture of the shape the “heights” of the quantities.

👏 2
➕ 5
dominicm 2020-10-02T11:40:21.117800Z

Crocodiles always eat the biggest number

🐊 3
Stefan 2020-10-02T11:51:06.118800Z

@manutter51 That’s nice, so basically “ascending?” and “descending?” respectively I guess

2020-10-02T11:57:32.119300Z

Yeah, it’s the only way I can keep them straight, hat’s off to whoever came up with that.

thom 2020-10-02T12:23:24.121200Z

I picture a little skier going either uphill < or downhill > on the top of the bracket and that helps me.

lread 2020-10-02T12:43:13.123500Z

If I forget, I just mentally move the operator past the first argument and then it becomes clear to me.

2020-10-02T12:58:36.123800Z

lol, that's exactly what i do too 🙂

walterl 2020-10-02T16:47:55.125400Z

I like how this community (Rich) has turned "hammock" into a verb 😄 https://clojurians.slack.com/archives/C03S1KBA2/p1601648356409300

👍 2
2
😆 1
emccue 2020-10-02T16:53:08.125700Z

Just noodling in my brain now

emccue 2020-10-02T16:53:42.126500Z

How would I deploy a service that does its work on the filesystem in an environment where the filesystem if often destroyed

emccue 2020-10-02T16:53:45.126700Z

https://github.com/valeriansaliou/sonic

emccue 2020-10-02T16:53:50.127Z

and is it worth the trouble

valtteri 2020-10-02T18:23:26.127500Z

Maybe use something like https://aws.amazon.com/efs/ if the perf characteristics are sufficient for you

ghadi 2020-10-02T18:25:30.127900Z

you can mount EFS into a Lambda now

Miloš Tepić 2020-10-02T21:36:26.133700Z

Hey there peeps! Not sure on which channel to ask but do you write scripts in Clojure or some other lisp dialect? I want to write a script to sync my home directory with some directory on external HDD using rsync or similar tool. But also I want to exclude some files and directories. I know I can write a simple bash script but I want to explore other possibilities and I want to have fun. 😄

2020-10-02T21:43:20.135800Z

I have not used it myself, but you might want to check out babashka https://github.com/borkdude/babashka. Also there is a #babashka channel here. If you have a system with a JVM installed, and the Clojure CLI tools, you can also write a single-file Clojure/JVM program like this: https://github.com/jafingerhut/dotfiles/blob/master/bin/clj-check-added-metadata. (only the first few lines of that file are necessary to adapt for another script -- I do not currently have a shorter example that uses that approach)

sova-soars-the-sora 2020-10-03T21:21:26.140300Z

that's really neat! so it invokes clojure on the command-line...

Miloš Tepić 2020-10-02T21:50:41.136300Z

This looks interesting. Thanks.

2020-10-02T21:57:46.136500Z

Here is a shorter example of a single-file Clojure/JVM program, in case that approach interests you: https://github.com/jafingerhut/dotfiles/blob/master/bin/clj-simple-single-file-script

ballpark 2020-10-02T22:02:08.137200Z

I used babashka with borg-backup and am fairly happy