1,562 karma · joined Aug 24, 2019 (7y ago) · 536 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
HN discussion: https://news.ycombinator.com/item?id=20787848
comment 4y ago · link · parent
comment 4y ago · link · parent
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
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
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
comment 4y ago · link · parent
“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
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
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
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
comment 4y ago · link · parent
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'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
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