nikhil.io

fifty-two things tagged “web development”

What’s OAuth2 Anyway?

Excellent piece covering OAuth2 in way more depth than I needed for a class I’m taking. But as the author notes:

Thinking about why OAuth2 protocol has been designed the way it is, turned out to be a great exercise in threat modeling with immediate, straightforward and practical approaches to mitigate these threats. They can be reused to solve similar security concerns in other contexts outside of OAuth protocol, so you can benefit from a deep understanding of the protocol even if you are not a security expert who has to know the ins and outs of OAuth2.

There is no useless knowledge. Cached.

Some Amazing Things You can do with Modern CSS

Plenty of good stuff on there but this totally blew my mind. Consider this custom tag (should be lowercased and contain hyphens. Emojis are allowed!):

<cool-thing shadow>wow</cool-thing>

and this valid CSS:

cool-thing {
    display: flex;

    &[shadow] {
        box-shadow: 1px 1px #0007;
    }

    @media (screen < 480px) {
        flex-direction: column;
    }
}

The only thing missing from my beloved SASS are mixins but I suppose you can achieve that by composing attributes (like shadow above). Super cool.

Navidrome is a free, open-source music player with a web UI

Here’s a demo site (demo:demo). I was able to launch it in under 30 seconds (M2 MacBook Air, 24GiB) against a ~200GiB music library.

UX and beets integration aside, it’s essentially what I tried to build a long while ago. A simple music player (based on Rust/Golang, SQLite, and simple Web APIs) whose UI made sense to normal and reasonable people and not ambitious product managers.

“I Fucking Hate Jira” is a collection of people sharing their feelings about one of the worst pieces of software I continue to use every day. (ifuckinghatejira.com)

Jira is middle-management-ware, a term I made up for software that serves the needs of middle management, or, at least, the needs middle management thinks it has, which comes to the same thing as long as you’re selling to them. (link) Jira is a tire fire. It should be condemned and officially d…

UI Pedantry

Can’t Unsee is “Spot the difference” for UI nerds. 6530. On the “hard” sections, wondered how much the minutiae matter if a user is unable to discern the difference between two comps after a few seconds. Via Deepu…