shawndumas

Joined 17 years ago

Karma
66,722
Submissions
9,605
Member since
Sep 14
NB: My having submitted or quoted anyone should not be read as an endorsement. I have in the past and will in the future interact with material with which I do not agree.

Staff UX Engineer at Google (all of my opinions are my own and do not represent Google in any capacity).

me [at] shawndumas [dot] com

[ my public key: https://keybase.io/shawndumas; my proof: https://keybase.io/shawndumas/sigs/hEp0jqcjwi845hlFoFicqSUMkgq36PwGH4VWIphPxvY ]

View on Hacker News

Recent submissions

Comment · 3 months ago
from the dog’s pov; so much noise and so many strangers. the smell of fresh dirt, then cement, water… so much water. the kids were excited and when it was done, oh the days of swimming, fetch, and fun. soon the stress was forgotten. the hot days of cool water and the smell of the food on the grill. but then the kids grew and left. and then the adult male was gone, too. now this is a reminder of how much fetching and roughhousing we did. now she’s gone a lot too. stupid fence; at least i could swim… but no.
Comment · 4 months ago
i feel like OP put their money where their mouth was. they dug in and did the analysis. they also capitulated and rewrote the lest interesting and easiest part of the post; the prose.

i also am seeing them engage aptly with constructive criticism and adapting the material while handily dispatching the non-constructive critiques. most of which amounts to a colossal missing-of-the-point.

they have made no out of proportion claims, no non-recreate’able analysis, used exactly the correct tools, and, frankly have addressed all of your points

i am not sure you’ll agree with anything i’ve said either so feel free to misunderstand me too

Comment · 9 months ago
from the article, “There's this common argument that only those who are bad at coding, or don't care about the craft of it, use AI to code. I think this is pretty clearly false. Let's look at a list, shall we?”
Comment · 9 months ago
Yes! When you are deep in the code, your brain operates in a non-linear way. You try a solution, it breaks a test. You patch the test. You realize the variable name is wrong. You fix a typo.

Without Squash, the main branch history becomes a timeline of your mental struggle.

With Squash, the main branch becomes a catalog of features delivered.

No body needs to take a trip on the struggle bus with me...

Comment · 11 months ago
there's no reliable evidence he ever uttered that phrase
Comment · 1 year ago
agreed, the interest rates and the overestimation on the stickiness of the pandemic’s increase in internet usage post-pandemic are the primary other contributing factors that, imo, represent the lion’s share; even allowing that the tax changes are tertiary is a stretch much less as the primary/secondary reason
Comment · 1 year ago
second system syndrome
Comment · 2 years ago
#include <iostream>

int main() { long long d; std::cout << "Enter a Julian Day Number: "; std::cin >> d;

    if (d < 0) {
        std::cerr << "Error: Invalid Julian Day Number (must be non-negative)." << std::endl;
        return 1; // Indicate an error to the system
    }

    const int DAYS_PER_YEAR = 365;
    const int DAYS_PER_LEAP_YEAR = 366;
    const int DAYS_PER_LEAP_CYCLE = 1461; // 4 years
    const int JULIAN_TO_GREGORIAN_THRESHOLD = 2299161; // Oct 15, 1582

    // Adjust for Julian-to-Gregorian transition
    if (d >= JULIAN_TO_GREGORIAN_THRESHOLD) {
        d += 10; // Account for dropped days
    }

    int a = d + 32044;
    int b = (4 * a + 3) / DAYS_PER_LEAP_CYCLE;
    int c = (4 * a + 3) % DAYS_PER_LEAP_CYCLE;

    int y = (b / 1460) + 1970; 
    d = (c / 4) - 365;

    if (d < 0) {
        y--;
        d += DAYS_PER_YEAR + (y % 4 == 0);
    }

    std::cout << "Gregorian Year: " << y << std::endl;
    std::cout << "Day of Year: " << d + 1 << std::endl; // Add 1 as days are typically 1-indexed

    return 0;
}
Comment · 2 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton