ah, that's the stuff. Because Gnu `date` can create Julian dates but then cannot read them.

Todo: write a script to convert from a given JDN to verbose date. So `babashka-date 2024030` => `Tue 2024.01.30`. Apparently GNU bash `date` can OUTPUT formats that it cannot intake.

At some point (I missed the memo) stopped espousing and invented . I'm guessing this was to step out of any annoying dependencies of datalog and dampen comparison with the other major datalog approaches in .

docs.xtdb.com/intro/what-is-xt I especially enjoy the side-by-side Clojure/JSON comparisons here

We borrowed some code from that had nested ternaries without parenthesis. Turns out that as a fatal error in PHP 8 on our production server but not on the earlier PHP on our development server. Wow... a language with breaking syntax changes. I'll stick with sound , where you never have too few parenthesis.

I always mentally wonder about vs , knowing that 's decision to avoid is very deliberate. But TypeScript is conquering the world; is that an ad populum sign that Types are really a better way to go? Or does ClojureScript offer other things instead? If so, what are they, and to do the benefits of each option find value in different situations?

swizec.com/blog/the-efficacy-o

has a new episode out. Apparently soundcloud doesn't make RSS links obvious for everything, so I grabbed theirs from reversed the URL from Apple Podcasts and plugged it into my readers. feeds.soundcloud.com/users/sou

The language and languages are so stable, with breaking changes being frowned upon in the culture. But breaking in the (frankly, awesome!) tooling has been my difficulty as I maintain a dozen projects of varying ages. It is a real problem.

Wait... do you seriously mean to tell me that I've spent hours debugging the fact that `` is NOT recursive? So ` {"authorizationParams" {"redirect_uri" (-> js/window .-location .-origin)}}` is NOT {"authorizationParams"v {"redirect_uri" (-> js/window .-location .-origin)}}`? I probably read this somewhere, but UGH!

And yes, I know that even fixed this equality wouldn't work because JS always breaks equality... but the point is clear.

If you wish to make an apple pie from scratch, you must first invent the universe. -Carl Sagan

I made a site using . The last step was to remove the . But I still use Shadow to start up a local server and explore my static site in-browser. It works nicely as a quick server.

I just had an unexpected error with a VPN script I run every day. I was re-using a shell that was in a directory of a project and got a NPE and "java.lang.Error: Properties init: Could not determine current working directory." It never occurred to me that Babashka might care about my pwd... I suspect I've been missing something valuable.

The original code author was new to the language (this was his first and maybe only project in ) and loved to explicitly return nil and check `(nil?)` all the time. It turns out, it's harder to remove explicit type and `nil?` checks than I thought.

Apparently I need to practice the "refactor so it's idiomatic, without changing the behavior".

The glory of like is supposed to be the smooth experience. I have gone back to the stoneage because github actions are receiving an error that I cannot reproduce locally, so I keep making a change, pushing to see if that effects the github test error, and then trying again. Like I'm back in the stone age.

Stupid errors. Forgot I needed to insert single quotes in my transpiling. But THEN I found out that you can't have - dashes anywhere in variable names in js. My heart is really ing in sadness.

Those in who have not read the History of Clojure paper by Rich really should; great to get a step into Rich's head and to see the evolution of the language. scribd.com/document/470916091/

A great discussion going on here. Because of the location ( thread) there is a bias in the demographic, but good reasons are provided either way and no thoughtless "it's just better" answers. reddit.com/r/Clojure/comments/

Call me crazy, but I sort of love stacktraces. They are so incredibly useful for debugging.

The Beauty of as a language really shone for me yesterday when I was data crawling -- nay, slogging -- through a big multi-type nested blob.

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.