kettro

Joined 7 years ago

Karma
176
Submissions
68
Member since
Jun 25
SWE @ Google > WearOS SW > Silicon Security FW
View on Hacker News

Recent submissions

Comment · 1 year ago
> There is no sport that punishes a competitor who is constantly winning, as long as they are competing fairly

Almost all North American sports have a player entry draft, where the weighting is based on your success. The best teams (eg the Detroit Red Wings of the 90’s and 00’s) are given garbage draft picks, while the bottom-feeders (eg the Edmonton Oilers of the late 00’s-early 10’s) are given (the opportunity for) superstars. This is clearly a punishment for doing well, and a reward for being terrible.

Comment · 2 years ago
Well done!

It is exactly the correct approach — especially with the dataset potentially changing at each iteration, treating it as a contiguous sequence of executions is wrong anyways. Plus, you should always strive to reduce state as much as possible.

Comment · 2 years ago
I would argue that it is society’s job to care for its most vulnerable.
Comment · 2 years ago
This is implying that therapy is nothing more than someone to talk to; if that’s your experience with therapy, then you should get another therapist.
Comment · 2 years ago
Comment · 2 years ago
I find python quite hard to read, honestly. The lack of typing in most python means that it isn’t immediately clear what a given piece of code does without diving into its implementation. You have to rely on docstrings (good luck) or descriptive naming.

The issue with null pointers is that they are, as you said, a stand-in for an invalid state. However, most null pointers don’t prevent you from trying to use the underlying data, which can, among other things, cause crashes (think not checking the return value of malloc). Additionally, it doesn’t make formal the litany of possible forms that a value can take — if you codify possible states, then you don’t always need to check everything. I’m currently working to port security firmware from C to Rust, and I’ve found I make fewer state checks, because the data I’m working with has bounded state — the data given cannot be in an invalid state.

Comment · 2 years ago
My company pays for One Medical, and it’s honestly the best practice I’ve been to in the US. I can typically get an appointment the next day, there are tons of offices (in SF), and everyone is kind and efficient.

They ask you to set a primary care doctor, but I have had more success with seeing a small group of their more available non-MD physicians.

Comment · 2 years ago
I’ve had my New M for a couple years now, and it’s been great. No complaints. Unicomp has sorted out their QC issues, and it’s a solid board. I’d say that the lack of a removable cable is a bit of a bummer, but that’s a nit pick.
Comment · 2 years ago
As a former Garmin employee, a surprising number actually do.
Comment · 3 years ago
I love mine. The refresh rate is absolutely not an issue at all IMO.
Comment · 3 years ago
Thank you for justifying a steam deck for me. Right now, I have to move my desktop over to the TV to play there, but with a Deck I don’t need to do any hauling. I’ve been looking for a good excuse haha. Are you using just the 1st party dock?
Comment · 3 years ago
Honestly, the answer is a Rolex (or another mechanical watch) that you actually wear. A lesson my father taught me was that things were made to be used; the Rolex in this article is just an asset, not a watch.

That, or another piece of jewelry is an obvious place to start. Essentially, anything that has utility, and you use it for that task.

Comment · 3 years ago
Thinkpads still have the F row spacing, though it is small. Their layout is truly the best in laptops.
Comment · 4 years ago
I would consider flipping causality. I think those places, typically cities and ports, are disposed to having larger drug populations, be that from abundance of supply or some other factor. Then, those places end up passing lenient laws as a result of the problem, and instead cope via non-criminal programs like safe injection sites.

It’s not like Vancouver or SF decided first to have safe injection sites, and then suddenly had huge heroin problems.

Comment · 4 years ago
A coworker I had (a good friend and an _amazing_ engineer) would generally just pause silently and think after a question. It was initially off putting, and I couldn’t tell what was happening, but very quickly got used to it. I started doing it myself, but start with a short “hmm” to indicate that I’m now thinking about the question, or just say “let me think”.

Waiting helps you ignore the impulse responses, and double check if you heard the question correctly, whence you can just ask for clarification.

No one complains about a sorta slow speaker, but a frenetic one is hard to follow and will blurt things out.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton