HNHacker News
TopNewBestAskShowJobs

ryan-duve

762 karma · joined October 4, 2020

submissionscomments
ryan-duve··on I don't like passkeys
> Passkeys are passwords your second device makes/types for you, without you ever seeing it.

My bigger problem with passkeys is how there's no universal way to register more than one device (in case the first one is lost).

ryan-duve··on The power of daily rituals (2021)
They're all set for the day. I probably wouldn't do it if I had to log in every hour.
ryan-duve··on The power of daily rituals (2021)
My work ritual every morning:

1. Power on laptop (it is powered off every day at 5 PM).

2. Log into VPN.

3. Log into Okta.

4. Log into AWS accounts, one per container (about 7 or 8).

5. Log into Docker Desktop.

6. Log into AWS CLI to get daily credentials.

The whole thing takes about 3-4 minutes. A former colleague referred to this as my "mise en place", or my daily arranging of my working environment. Like the article suggests, I find this offers me a "centering" before I open my email, calendar and missed chat messages and get started for the day.

ryan-duve··on Doom has been ported to an earbud
[666]
ryan-duve··on VimDrill: A touch typing trainer for Vim
I only spent a minute on the trainer, but my recommendation is to change the user experience from "type M 5 times in a row" to something like "get to the target with a single keystroke". Without any expertise is making a Vim training program, I feel like showing someone a goal and having them think of what keystrokes gets them there will be more effective than telling them the keystroke and having them type it 5 times consecutively.
ryan-duve··on P-Hacking in Startups
Good news: no p-value threshold needs to be passed to switch from one UI layout to another. As long as they all cost the same amount of money to host/maintain/whatever, the point estimate is sufficient. The reason is, at the end of the day, some layout has to be shown, and if each option had an equal number of visitors during the test, you can safely pick the one with the most signups.

When choosing one of several A/B test options, a hypothesis test is not needed to validate the choice.

ryan-duve··on Why Pandas feels clunky when coming from R (2024)
I wonder if the author would have thought Pandas feels less clunky if they knew about `.eval`?

    import pandas as pd


    purchases = pd.read_csv("purchases.csv")

    (
        purchases.loc[
            lambda x: x["amount"] < 10 * x.groupby("country")["amount"].transform("median")
        ]
        .eval("total=amount-discount")
        .groupby("country")["total"]
        .sum()
    )
ryan-duve··on California is nearly out of license plate numbers
> The current 9-series configuration, which will end with 9ZZZ999, is projected to end sometime in 2026... The next generation of license plates will flip that structure on its head, moving to a “Numeral Numeral Numeral Alpha Alpha Alpha Numeral” format — such as 000AAA0.

Does anyone know why they care about this structure? Naively, there are 36^7 (minus edge cases) combinations available, which will always be sufficient.

ryan-duve··on Mark Zuckerberg says social media is over
When I click "Join the waitlist" on Firefox I see an empty beige box on an otherwise blank page.
ryan-duve··on Max severity RCE flaw discovered in widely used Apache Parquet
What "very simple columnar format" did you switch to?
ryan-duve··on DeepMind program finds diamonds in Minecraft without being taught
For the curious, from the link above:

> log, plank, stick, crafting table, wooden pickaxe, cobblestone, stone pickaxe, iron ore, furnace, iron ingot, iron pickaxe and diamond

ryan-duve··on Pytest for Neovim
Could you share an example of a workflow using the built in feature to run tests in Vim?
ryan-duve··on Architecture Patterns with Python
TL;DR, YAGNI

I had a former boss who strongly pushed my team to use the repository pattern for a microservice. The team wanted to try it out since it was new to us and, like the other commenters are saying, it worked but we never actually needed it. So it just sat there as another layer of abstraction, more code, more tests, and nothing benefited from it.

Anecdotally, the project was stopped after nine months because it took too long. The decision to use the repository pattern wasn't the straw that broke the camel's back, but I think using patterns that were more complicated than the usecase required was at the heart of it.

ryan-duve··on Architecture Patterns with Python
> And don't even get me started with dependency injection in Python.

Could I get you started? Or could you point me to a place to get myself started? I primarily code in Python and I've found dependency injection, by which I mean giving a function all the inputs it needs to calculate via parameters, is a principle worth designing projects around.

ryan-duve··on The Frontend Treadmill
I've only used Elixir/Phoenix as the backend with Elm as the frontend. If you're familiar with that, can you TL;DR what Phoenix Liveview does differently than a Phoenix/Elm/GraphQL stack?
ryan-duve··on Down the rabbit hole: Implementing SSH port forwarding over AWS Session Manager
Does using SSH this way solves the Ctrl-Y problem in AWS Session Manager, which kills the session?
ryan-duve··on Show HN: Play with real quantum physics in your browser
When I click the coin I see an animation of 7-8 blurry coins spinning. Further clicking seems to have no effect. Is something else supposed to happen?
ryan-duve··on Ask HN: What is interviewing like now with everyone using AI?
My startup got acquired last year so I haven't interviewed anyone in a while, but my technical interview has always been:

- share your screen

- download/open the coding challenge

- you can use any website, Stack Overflow, whatever, to answer my questions as long as it's on the screenshare

My goal is to determine if the candidate can be technically productive, so I allow any programming language, IDE, autocompleter, etc, that they want. I would have no problem with them using GPT/Copilot in addition to all that, as long as it's clear how they're solving it.

ryan-duve··on Some Facts About Vim
I always read these articles that have lists of commands in Vim because I always learn a new one.

> Have you ever used U after dd? Don't even try.

I never know about `U` before now!

ryan-duve··on Kalman Filter Tutorial
I strongly recommend Elements of Physics by Millikan and Gale for anyone who wants to learn pre-quantum physics this way.
ryan-duve··on I've been advocating for RSS support, and you should too
Site feedback: when I drag "Popular sources" into the field, I see the options "YouTube" and "HackerNews". But when I click either I just see a blank modal. I'm using Firefox 135.
ryan-duve··on Lines of code that will beat A/B testing every time (2012)
This can be addressed with some variant of

    random.seed(hash(user_id))

I think the bigger problem is handling the fact that not all users click through the same number of times.
ryan-duve··on Lines of code that will beat A/B testing every time (2012)
> A lot of sites don't have enough traffic to get statistical significance with this in a reasonable amount of time

What's nice about AB testing is the decision can be made on point estimates, provided the two choices don't have different operational "costs". You don't need to know that A is better than B, you just need to pick one and the point estimate gives the best answer with the available data.

I don't know of a way to determine whether A is better than B with statistical significance without letting the experiment run, in practice, for way too long.

ryan-duve··on Lines of code that will beat A/B testing every time (2012)
How do you handle different users having different numbers of trials when calculating the "click through rate" described in the article?
ryan-duve··on Database mocks are not worth it
Do you have a link you can share that demonstrates the details of this approach?
ryan-duve··on Graphene Interconnects Aim to Give Moore's Law New Life
Does anyone know of a way other than Raman spectroscopy to classify graphene monolayers? I recall making the graphene was simple but confirming it was the real chore.
ryan-duve··on Python dependency management is a dumpster fire
Do you recommend something different than the article?
ryan-duve··on SQLite changed temp file prefix after McAfee users called devs to complain (2006)
@nayuki Did this comment change your mind?
ryan-duve··on Kagi Teams
Which Linux distributions are you installing on a new computer that doesn't come with Firefox installed already?
ryan-duve··on Ask HN: Developer PC setup automations for company owned devices
I've never used Ansible. Is it worth using for just this workflow? I'm asking coming from a baseline of just having a Git-versioned shell script which has lines like

    brew install coreutils
and whathaveyou.
Page 1 of 8Next →