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
they all accept varargs though, you can't easily get that semantics w/o prefixed syntax
One trick I heard of is to mentally think of them as:
< are-the-following-ordered-from-least-to-greatest?
> are-the-following-ordered-from-greatest-to-least?
etcLike if you imagine the shape of the operator as a picture of the shape the “heights” of the quantities.
Crocodiles always eat the biggest number
@manutter51 That’s nice, so basically “ascending?” and “descending?” respectively I guess
Yeah, it’s the only way I can keep them straight, hat’s off to whoever came up with that.
I picture a little skier going either uphill < or downhill > on the top of the bracket and that helps me.
If I forget, I just mentally move the operator past the first argument and then it becomes clear to me.
lol, that's exactly what i do too 🙂
I like how this community (Rich) has turned "hammock" into a verb 😄 https://clojurians.slack.com/archives/C03S1KBA2/p1601648356409300
Just noodling in my brain now
How would I deploy a service that does its work on the filesystem in an environment where the filesystem if often destroyed
and is it worth the trouble
Maybe use something like https://aws.amazon.com/efs/ if the perf characteristics are sufficient for you
you can mount EFS into a Lambda now
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. 😄
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)
that's really neat! so it invokes clojure on the command-line...
This looks interesting. Thanks.
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
I used babashka with borg-backup and am fairly happy