Jonathan (@JonathanSeni0r) header
Jonathan (@JonathanSeni0r) profile picture

developer. into fiction, databases and niche wikipedia pages

berlin
Joined April 2020
Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)Photo by Jonathan (@JonathanSeni0r)
Every software team has a folk memory of some traumatic, disastrous previous feature that's taken on archetypal significance. In refinement meetings or standups someone will say "I just don't want this to end up like... *campaigns*", and everyone will nod solemnly
4
26
filter_map is a really handy ruby enumerable I just discovered! It saves you looping twice over some enumerable if you only want to include some elements according to a particular condition. (Previously, I would have used reject). So these two snippets are equivalent:
1
4
378
The most friendly thing you can do to help PR reviewers is to add little inline comments throughout the github diff to point out important stuff. More useful than a summary of all the changes in the PR description, imho
1
22
GPT-4 feels like having a genius personal tutor. For coding, it's very good at generating the first draft of a class ("please write a PORO ruby service object that accepts X and Y and produces Z"), which you can iterate on (even doing followup requests like "write the tests")
1
42
it's also surprisingly good at debugging. The value here is twofold: it generates good ideas, and it acts like a rubber duck to organise your thoughts with (just like a good colleague). Today, it helped me solve a tricky intermittent bug that's eluded me for a couple of months
1
11
openAI's business plan is to build a really intelligent AI and once they've done that ask it how to make money. wild
In 2019 I was one of those chuckling in the audience. Each year I laugh less and less. "You can laugh, it's alright. But it is what I actually believe is going to happen." - @sama Looking forward to an even more serious 2023.
1
88
Some things I've used chatGPT for in the past few days: - Write an email in German to my landlord telling them about black mold in the bathroom - Write a haiku referencing an inside joke for a friend - Explain the syntax of a confusing Typescript function (inc followup Qs!)
1
Getting crucial Buddhist wisdom about England's World Cup loss 🪷
this "npm for rubyists" article by @matthewpearse just helped me a ton 👌 matthewlehner.net/npm-basics…
Never once managed to pronounce the word 'idempotent' correctly on my first try
1
love to tempt fate when naming my commits
1
The faker gem for generating fake data has a whole module for weed lol github.com/faker-ruby/faker/…
1
1
I've been using "how easy is it for me to admit to this person that I made a mistake?" as a barometer of work relationships. If it's easy you're good, it it's harder that suggests there's some submerged resentment or insecurity or lack of trust to work on 🌥️
The advice here to "make editing your dotfiles frictionless" is really really good. My .zshrc has been a messy terra incognita of undocumented stuff for a while - adding a command to open it in my editor led me to clean everything up
This @JasonSwett article hasn't made me give up service objects entirely, but I use them less now and PORO Rails models more: codewithjason.com/code-witho…
1
3
11
Unthinkingly relying on service objects can lead to "conceptual holes" in a codebase. For example, an `AuthenticateExternalUser` service, but there's no `ExternalUser`. Creating an ExternalUser PORO model with a public `authenticate!` method is much more intuitive!
1
3
The @dry_rb gems are my favourite 💎 discovery in the past few months. Dry-Struct helped me refactor a messy hash representing a complex API response into an immutable + strongly-typed first-class citizen in our application. Fake snippet:
1
2
🧙‍♂️ summoning order from mushy chaos using value objects 🧙‍♂️
1
Do Nothing meditation has been my main practice for the past couple of months (instructions: sit down - do nothing). Feels good! (sometimes I cheat though and add in "warmly welcome whatever happens")
In the 1970s & 80s, anthropologists working in small-scale, non-industrial societies fastidiously noted down what people were doing throughout the day. I’ve been exploring the data & am struck by one of the most popular activities: doing nothing. [thread]
local optima are so brutal lol
Replying to @mipsytipsy
Besides the obvious benefits of knowing how to operate in two domains, it also prevents you from reaching premature seniority. (charity.wtf/2020/11/01/quest…) The best gift you can give your future self is the habit of regularly returning to the well to learn, feeling like a beginner.
4
18
every startup's got a person who's job it is to tell you to share content about the company on linkedin