and i already had to rewrite 2/3 of the notes that led to the blog post idea because i found a lower-friction way to do the thing

Show thread

Attention wandered for a bit, but I got code that does the thing and an only slightly sketchy story. Next I ponder how much to clean up the code and how much to fill out the story.

Show thread

hey wanna see an absolute travesty of a "one-liner" in #Nushell of course you do

Show thread
Follow

@randomgeek may I request a oneliner in just for comparison?

@petrisch you could request, but I wouldn’t deliver. I’d need to brush up on my curl, jq, and other such extra tools. Nushell is very much batteries included.

@randomgeek thats why I was asking ;-). This reads just like english, love it.
btw jq is cheating :-D

@petrisch pfft "cheating"

the only fair fight is the one you win

@petrisch BTW I was rushing through because caffeine, but if you were to run this or something like it, insert is the best command for adding a column, not upsert.

@randomgeek true, upsert means "update if it exists, or insert if it doesn't" right?
Shouldn't make a difference here though.

@petrisch Just aesthetic and clarity points, which I tend to weigh disproportionately high.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml