Samir Talwar

@SamirTalwar
1 Followers
164 Following
115 Posts

I make computers go beep boop.

Writing code, making coffee, and posting shit in Zürich, Switzerland.

pronounshe/him; they/them
locationZürich, Switzerland
bloghttps://monospacedmonologues.com
twitterhttps://twitter.com/SamirTalwar
OK, time to move to my personal instance at https://functional.computer. wish me luck.
Starting from scratch / Ideas for free

samir : coffee → nonsense

#BlackMastodon #BlackTwitter

The title of this thread is called "Angry Black Women".

On January 20, 2017 this picture was my Facebook avatar. It is Michelle Obama at the inauguration of the 45th president. About a month later, a white female person I know texted me "Can you change your avatar photo, now." Which I did. The following is a selection of the Angry Black Women avatars I used since. These Angry Black Women changed our lives for the better.

I gotta be honest, J's precedence mechanic is *not* my favourite.

Wrote some more J as a warmup for #adventofcode. This is AOC 2021, day 3, part 1.

Screenshot attached, code's also at https://gist.github.com/SamirTalwar/a0dddc670bda4a5cc757574bdeb5abde#file-aoc_03_1-ijs.

I think I'm done warming up now. Looking forward to the real deal.

Solutions for Advent of Code 2021, in J. This is a warmup for 2022.

Solutions for Advent of Code 2021, in J. This is a warmup for 2022. - AOC_01_1.ijs

Gist
I'm almost ready to switch over to a personal instance. ^_^

Next, I think, "I've got a lot of shell scripts that use Docker and I don't want to rewrite them. Can I use an environment variable?"

`DOCKER_CONTEXT=other docker ps`

And it works!

I just guessed these; I didn't read a man page.

That's how you design a CLI.

Fucking about with Docker, and I discover Docker contexts for running against a remote host over SSH. This is very cool.

I discover you can use `docker context use` to switch contexts. I don't like this. It's stateful. I'll forget to switch it back. So on a whim, I try `docker --context=other ps` and it works!

Most powerful language features to enable reliable software and fast iteration:

- immutability
- enums (sum types/variants)
- static types (real ones, not like java/C++)
- higher-order functions (eg map/filter)

Nothing else comes close

it'll be terrible if twitter dies but i think it might be worse if it lives because then a whole bunch of tech moguls are going to get some very strange and disturbing ideas about how to run their companies