HNHacker News
TopNewBestAskShowJobs

brooke2k

518 karma · joined January 2, 2022

submissionscomments
brooke2k··on Greppability is an underrated code metric
with all due respect, it sounds like you have the privilege of working in some relatively tidy codebases (and I'm jealous!)

with a legacy codebase, or a fork of a dependency that had to be patched which uses an incompatible buildsystem, or any C/C++/obj-c/etc that heavily uses the preprocessor or nonstandard build practices, or codebases that mix lots of different languages over awkward FFI boundaries and so on and so forth -- there are so many situations where sometimes an IDE just can't get you 100% of the way there and you have to revert to grepping to do any real work

that being said, I don't fully support the idea of handcuffing your code in the name of greppability, but I think dismissing it as a metric under the premise that IDEs make grepping "obsolete" is a little bit hasty

brooke2k··on Leaving Rust gamedev after 3 years
last I used OCaml, the standard library situation was abysmal (compared to say Haskell's), and you had to go searching for third-party "batteries included" crates to cover simple stuff. Has that gotten any better the last few years?
brooke2k··on LÖVE: a framework to make 2D games in Lua
it's kind of like lisp's ugly cousin. Super-duper simple at its core, built around a single data structure (tables instead of lisp's lists), and flexible enough, thanks to meta-tables, that you can build extensions on top of it to fit it to what you need
brooke2k··on Coroutines make robot code easy
I had a similar revelation a few months ago when working on a little game in Lua.

Since a game runs as a loop, all synchronous code needs to be able to execute within one frame.

So you end up making overcomplicated state machines to represent processes that last for multiple frames.

Coroutines make writing this code sooooo much easier. You can actually start to see the logic again at a glance rather than having to dive into a big stateful mess.

brooke2k··on Mercedes beats Tesla to autonomous driving in California
Proportionally, they are far, far closer to self driving even with multiple people driving the train. A ratio of just 1:100 drivers:passengers is a vast improvement on personal cars which would probably be what, 1:1? Maybe 1:2 on average?
brooke2k··on 'Tylenol Lite' – Will a safer new useless painkiller replace a dangerous old one
As someone who is allergic to NSAIDs and who gets no relief from Tylenol, it's really apparent the lack of effective OTC painkiller options.

When I herniated a disc in my lower back, the ER doctor was very very hesitant to give me an opioid even though I was in constant, excruciating pain. But if you're allergic there's basically no other options out there.

brooke2k··on The Mysterious Disappearance of a Revolutionary Mathematician
https://venhance.github.io/napkin/Napkin.pdf

This textbook (work in progress but mostly complete) is an attempt to do exactly that: start at foundational math like group theory and topology and build up to higher and higher levels of math.

I worked through the first few chapters a while ago, and it's very good. My only issue is that sometimes he assumes knowledge of things that I didn't know about, but cursory googling was good enough for those situations.

brooke2k··on My lizard brain is no match for infinite scroll
Couldn't you just disconnect from wi-fi on your phone and access everything via cellular?
brooke2k··on The Miseducation of Maria Montessori
Exactly the same experience here - montessori until 3rd grade
← PreviousPage 4 of 4