This video - Rust Is Easy (The COMPILER teaches you!) - makes a good point about just how good the Rust compiler is. Saying that, I still don’t know what to do most of the time!
Ruby memoization with nil values. Sprinkling
||=around your codebase with wild abandon might not be doing what you think.
For my own benefit, I’ll copy the example here.
def ticket @ticket ||= Ticket.find_by(owner:) end
You might need.
def ticket return @ticket if defined?(@ticket) @ticket = Ticket.find_by(owner:) end
One-to-Many LiveView Form – great tips on implementing dynamic one-to-many forms with LiveView. Unfortunately a bit late for me as I’ve been doing something similar, but some useful tips nonetheless.
The idea that collaboration is the absolute best way to work is pervasive. You can understand why, it just sounds like the right thing to do. But not always. Agreeing with any of this article feels like heresy. Should it?
Introverts have some of the best ideas but often don’t feel very comfortable talking openly about them in a group setting.
Extroverts are only too willing to share their ideas (in fact they rarely shut up about them) but are sometimes reluctant to listen to good ideas proposed by others.
Many thoughtful points on what “collaboration” is.
It’s not been a great week to be honest. Car repair-related stress, general low mood, and work anxiety all culminating in catching a cold (I think?!) which took me out of action for most of the week. Motivation is also an issue in this run up to Christmas.