Recent submissions

Comment · 4 months ago
We don't care about click counts. We just want people to see art.
Comment · 4 months ago
This is it precisely. AI bots ruined it for everyone.
Comment · 4 months ago
We're having ongoing issues with bot traffic, so we're constantly tweaking our Cloudflare settings.
Comment · 4 months ago
We're not worried about ruining this metric. We want people to see art.
Comment · 4 months ago
Comment · 3 years ago
I must be really out of touch, because I cannot imagine how this is a billion dollar business.
Comment · 3 years ago
The bastards finally did it. They rewrote Rust in Rust.
Comment · 3 years ago
I think maybe you're overextrapolating here. Classes are meant to hold state. If you have a bunch of related state, wrapping it up in a class has been a common use of classes even before `dataclass` existed.

What the talk is discussing is the creation of classes for wrapping related _functionality_, sans state. The class isn't really necessary at that point, so you should just create a module with functions instead of a class.

Even if you do need your related functionality to reference some common state, you still might not need a class, because modules themselves are objects and can hold state.

The point of the talk is not to dissuade you from _ever_ using classes, it's to make you think more judiciouly about adding new classes you probably don't need. Python isn't Java, and you dont need everything to be a class.

Comment · 3 years ago
I've used https://pentest-tools.com in the past. It's not exhaustive, but can be a good starting point.
Comment · 3 years ago
Honestly, I think the generic and model views are way more impressive than the ORM or the admin. They take away all of the boilerplate usually associated with CRUD apps.
Comment · 3 years ago
I remember encountering number 4 in the wild, so I think it deserves to be a genuine "wat". That said, I'm not sure why I (or anyone else) thought I would need to use the identity operator on numbers, but it's certainly a head-scratcher until you dig into the underlying reason.
Comment · 3 years ago
> So every company should cease all AI development for an indefinite period of time

The letter quite clearly asks for six months.

Comment · 3 years ago
I have been really impressed with PopOS so far.
Comment · 3 years ago
You should lead by example.
Comment · 3 years ago
Fan fiction is getting weird.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton