Recent submissions

Comment · 4 days ago
Wezterm has a similar feature with QuickSelect, absolutely game-changing for keyboard-driven workflows
Comment · 4 months ago
For context, from wiki:

> Remigration is a far-right concept referring to ethnic cleansing via mass deportation of non-white minority populations [...] to their place of racial ancestry

Comment · 5 months ago
Two points make a line in any number of dimensions.
Comment · 7 months ago
Ah, good well-architected code, finally... With most of the code in utils/other :D
Comment · 7 months ago
Comment · 7 months ago
5, no? Null, Optional::empty, Optional(null), Optional(true), Optional(false)
Comment · 8 months ago
Also known as "Make the change easy, then make the change"

Something to realize is that every codebase is legacy. My best new feature implementations are always several commits that do no-op refactorings, with no changes to tests even with good coverage (or adding tests before the refactoring for better coverage), then one short and sweet commit with just the behavior change.

Comment · 8 months ago
Rust has clippy nagging you with a bunch of modernity fixes, and sometimes it can autofix them. I learned about a lot of small new features that make the code cleaner through clippy.
Comment · 8 months ago
Isn't that the classic argument "Real C programmers don't write defaults!" ?

The one that companies have spent billions of dollars fixing, including creating new restrictive languages?

I mean, I get the point of tests, but if your language obviates the need for some tests, it's a win for everyone. And as for the "how much code will I need to change to propagate this null?", the type system will tell you all the places where it might have an impact; once it compiles again, you can be fairly sure that you handled it in every place.

Comment · 9 months ago
Client-side pre-commit hooks are there to help you in the same way that type checking (or a powerful compiler) is there to help you avoid bugs. In particular with git, you can skip the hooks when committing.

Now, if the server enforces checks on push, that's a project policy that should be respected.

Comment · 9 months ago
For CLI arguments, have you checked out clap? It's declarative (you create and annotate a struct, it generates the parser), and can be agremented with man page generation or shell completion generation.

And as a result of the parsing step, you get a fully typed struct

Comment · 9 months ago
I added "kudu", a type of antilope, and it replaced it with "turtle". I don't know the relationship between the 2, but it doesn't pass a toddler's sniff test!
Comment · 9 months ago
You need to go all-in on tea and make your own mark. Get a fancy Chinese teapot with holes in the spout to use loose leaf tea, and start getting snobby about traditional vs modern techniques of Pu'er tea, and you'll get your own brand of respect!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton