Better HN
topnewbestaskshowjobs
Log inSign up

code_biologist

1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions

Submissions

comment 4y ago · link · parent

I'm about 15ish years in and I have a jaundiced view of the jaundiced view. I've learned a lot of "the right way" things from HN that are genuinely better. True shop knowledge from people "in the arena" with expertise building and running the kind of systems I build and run. There are a lot of pricks though, to be sure.

comment 4y ago · link · parent

Great article from a few years ago "A Codebase is an Organism": https://meltingasphalt.com/a-codebase-is-an-organism/

HN discussion: https://news.ycombinator.com/item?id=20787848

comment 4y ago · link · parent

I've recently been printing a lot of terrain STLs for miniature games (MyMiniFactory or patreons are great) using a 0.25mm nozzle on my FDM printer, then airbrushing to paint them quickly. It's a far more satisfying justification than just printing random brackets and boxes!

comment 4y ago · link · parent

One other great thing about the ring buffer is built-in sane backpressure. I think the article is good, but too quickly dismissive of backpressure as a tool for system health.

comment 4y ago · link · parent

What I'd add your summary: Flex wrapping is a different kind of 2-dimension behavior than a grid, but they're both useful 2 dimensional layout behaviors.

In fact, you can use flexbox and grid in the same layout, each doing its thing.

100% At 17:30 near the end of that video I linked is an example of mixing them.

comment 4y ago · link · parent

For anyone unsure whether to use flex or grid, the mental shorthand that I use is whether the container or the elements in a container should have more control over the layout.

Flex is better if the individual elements should have some control over the layout, whereas grid is better if the container should be fully controlling the layout.

Great 20min tutorial vid with examples and details on the above: https://www.youtube.com/watch?v=3elGSZSWTbM

comment 4y ago · link · parent

My first thought on interacting was "Thanks, I hate it."

comment 4y ago · link · parent

Thank you for all your work. I've learned a very great deal from you and hopefully given the world a little more quality Python.

comment 4y ago · link · parent

A 3.85 avg rating with 9,862 ratings on Goodreads, so: average, but ever so slightly tilted towards good?

comment 4y ago · link · parent

I'm mildly hard of hearing and the poor audio mixes in movies and shows are very difficult for me. For example with House of the Dragon, there is no volume where I can understand all the words in quiet conversations without blowing my ears out in battle scenes. Fiddling with the volume constantly is annoying. I've looked for dynamic volume features, but my TV doesn't have them and I'm not interested in a new TV or sound system.

So it's subtitles — especially for shows with poor audio mixes, where people whisper, talk quietly, or with heavy accents.

comment 4y ago · link · parent

100%

https://en.wikipedia.org/wiki/Crash-only_software

comment 4y ago · link · parent

Anti-service oriented architecture: continually asking myself in what way could I solve a problem with less complexity, fewer dependencies, and permitting shitty solutions as long as they are vaguely adequate to customer need.

comment 4y ago · link · parent

Try this one maybe? https://milvus.io/docs/v2.1.x/overview.md

comment 4y ago · link · parent

You're describing a column store there, not a vector store.

comment 4y ago · link · parent

Reminds me of a classic quote from a stat mech textbook:

“Ludwig Boltzmann, who spent much of his life studying statistical mechanics, died in 1906, by his own hand. Paul Ehrenfest, carrying on the work, died similarly in 1933. Now it is our turn to study statistical mechanics.”

David L. Goodstein, States of Matter

comment 4y ago · link · parent

Uh... why would they do that? He was selected because of his love and appreciation for the source material, as well as being a brilliant and capable fantasy writer himself.

comment 4y ago · link · parent

* 2. Move the insertion point by dragging around the keyboard.*

Anyone know how to go down doing this? Left, right, and up are all good, but I can’t figure out how to go down consistently. The 1.5mm below the space bar is really fiddly.

comment 4y ago · link · parent

For context, I'm in my mid-30s and grew up playing video games. When doing chores I listen to podcasts or audio books.

I really like to think of media consumption in terms of attentional pressure. How long can you not pay attention without "missing something". For movies and TV shows it seems like 15 seconds, plus or minus depending on the content itself. Chatty podcasts give you 30 seconds or a minute.

I enjoy the fast video games I play (shoutout to Deep Rock Galactic, killer PVE FPS with a non-toxic player base!) because they modulate their attentional pressure and ratchet it up intensely at moments. It feels great to handle a situation where even a subsecond lapse in attention would result in failure.

From wikipedia: Cool media are those that require high participation from users, due to their low definition (the receiver/user must fill in missing information). Since many senses may be used, they foster involvement. Conversely, hot media are low in audience participation due to their high resolution or definition.

Seems like it's hard to place fast video games? You don't have to fill in much of anything (hot) but they require full participation (cool).

comment 4y ago · link · parent

The issue is that the layoff will disproportionately affect protected groups. Engineering is disproportionately male, east asian, south asian, and white. Companies with explicit diversity targets make up for this by compensating in other company orgs (HR, marketing, sales, admin) making them disproportionately female, black, and hispanic.

This means when you keep good engineers but lay off HR, marketing, sales, and admin employees, the layoffs look really bad in terms of affected protected groups.

comment 4y ago · link · parent

Trino (nee Presto) and Hive both have open source Java SQL parsers. I'm sure their connection management code would also be really strong place to start for a full SQL server interface.

That said, it almost certainly is a better idea to write a connector to something like Trino and just build on its capabilities rather than write your own SQL interface.

comment 4y ago · link · parent

This is an internal NeXT video from 1991 with Steve Jobs explaining their product strategy. The more things change, the more they stay the same. https://www.youtube.com/watch?v=KRBIH0CA7ZU

comment 4y ago · link · parent

A good dive into of why lazy IO is a problem are these Oleg slides: https://okmij.org/ftp/Haskell/Iteratee/IterateeIO-talk-notes...

My favorite slide:

I can talk a lot how disturbingly, distressingly wrong lazy IO is theoretically, how it breaks all equational reasoning. Lazy IO entails either incorrect results or poor optimizations. But I won’t talk about theory. I stay on practical issues like resource management. We don’t know when a handle will be closed and the corresponding file descriptor, locks and other resources are disposed. We don’t know exactly when and in which part of the code the lazy stream is fully read: one can’t easily predict the evaluation order in a non-strict language. If the stream is not fully read, we have to rely on unreliable finalizers to close the handle. Running out of file handles or database connections is the routine problem with Lazy IO. Lazy IO makes error reporting impossible: any IO error counts as mere EOF. It becomes worse when we read from sockets or pipes. We have to be careful orchestrating reading and writing blocks to maintain handshaking and avoid deadlocks. We have to be careful to drain the pipe even if the processing finished before all input is consumed. Such precision of IO actions is impossible with lazy IO. It is not possible to mix Lazy IO with IO control, necessary in processing several HTTP requests on the same incoming connection, with select in-between. I have personally encountered all these problems. Leaking resources is an especially egregious and persistent problem. All the above problems frequently come up on Haskell mailing lists.

comment 4y ago · link · parent

I think that Heroku was really nice, post-acquisition mismanagement aside. My deployments weren't special but I got a lot done.

comment 4y ago · link · parent

Also, my password manager is a critical part of my digital life. It's not ok for it to go down. What happens when payments fail for whatever reason? Shit happens. Should I regress to making up passwords on the spot and writing them down?

I'm very happy to pay $50+ every year or two for a password manager with great UX and cross device support. It is not ok if any functionality is contingent on a subscription though. I really like the Jetbrains model, where if your subscription lapses your software just keeps on working — no updates though.

comment 4y ago · link · parent

The combo of more and better people is really a one two punch of being well funded.

comment 4y ago · link · parent

Listening to the empire builders among engineering management, they'll happily tell you that a few more hires will get the current baby back on schedule plus future babies can be done in 8, maybe even 7, months.

comment 4y ago · link · parent

Now that you've hit cloud scale, engineering leadership can make the case for budget for an ops hire to keep the thing working. Bigger headcount is always a plus.

comment 4y ago · link · parent

Two of my favorite parts of CRUD are the data modeling and interface design. There are certain CRUD interfaces that will end up with thousands of user hours in them. It's important that they're good.

Business folks have input, but often you the programmer are on the hook for the data model. The best data models can be incredibly resilient yet evolvable across the lifetime of the business. They'll define how people think about and process the entities in your system for years to come.

Same for user interfaces. People have spent thousands of aggregate hours in CRUD that I've built doing jobs to support themselves and their families. It's the little affordances that make systems reliable, effective and maybe even kinda fun to use as an end user.

Also you can fuck both of the above up really badly and see cascading negative consequences for years... I've definitely needed a few oopsies to learn just how important CRUD decisions can be.

comment 4y ago · link · parent

Love the link to https://slowlearnerclub.com/. I'm definitely in the club.
1
121314
18