Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kennu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
kennu
3y ago
These have not been an issue in my projects.
62.
▲
by
kennu
3y ago
I think that would only make my apps much more complicated, and also more difficult to understand and to develop, since they would not rely on standard React API but some kind of outside integration. I don't really see the value.
63.
▲
by
kennu
3y ago
Okay, but my point is that somewhere along the line there always is a useEffect() that reacts to something. Maybe it's in your own component, maybe it's in a third party component.
64.
▲
by
kennu
3y ago
Yeah and then the router sends you property changes which you react to with useEffect().
65.
▲
by
kennu
3y ago
You can overuse useEffect() for sure. But I don't know how else you'd react e.g. to the page query string parameters or component properties changing, when the rendered content depends on them.
66.
▲
by
kennu
3y ago
React documentation lists a lot of other use cases for useEffect() than just that: - useEffect is a React Hook that lets you synchronize a component with an external system. - Connecting to an external system - Wrapping Effects in custom Ho
67.
▲
by
kennu
3y ago
A couple of things make React extremely valuable to me: - The functional programming model (State => UI) allows building very complicated interfaces in a very simple way, by defining dependencies with useEffect() and other hooks. It can
68.
▲
by
kennu
3y ago
Usually plain water is fine but sometimes you need a bit of extra electrolytes to rehydrate. I wouldn't drink too much of them though.
69.
▲
by
kennu
3y ago
MaxiNutrition Hydration Tabs. Much easier to drop into a glass of water than powder-form electrolytes (no messing around with a spoon etc). Also something to keep in your pocket/bag on a longer bar night. I can't guarantee the nut
70.
▲
by
kennu
3y ago
Best way to keep your attention on an audiobook is to simultaneously play a game that offers repetitive tasks and requires no cognitive effort. For instance, mine/build stuff with Minecraft or clean objects with PowerWash Simulator. If
71.
▲
by
kennu
3y ago
To me it's a good goal. I want to keep things simple and minimize my work. It works very well with a document database like DynamoDB. Even if often there is a small translation going on, removing a few attributes or adding a few to ach
72.
▲
by
kennu
3y ago
It's 2-3 hours for the first version. Then you want to add something to the website, and you find you don't have the feature for it, and need to spend another 2-3 hours. This repeats every time you're adding something and bec
73.
▲
by
kennu
3y ago
My point about arrays vs maps is based on the idea that you store the data in e.g. DynamoDB as the same structure as it is represented in the API. If you store an array in an attribute of the database item, you cannot update its contents in
74.
▲
by
kennu
3y ago
The "v3/application/shops/{shop_id}/listings/{listing_id}/properties" structure is typically important for database partitioning when using e.g. DynamoDB. You have to include both the partition key an
75.
▲
by
kennu
3y ago
Typical usage is one Lambda per service. Then use switch (event.routeKey) { case 'GET /path: ... } to serve the different API Gateway routes attached to the Lambda. It doesn't have to be very complicated.
76.
▲
by
kennu
3y ago
Awesome, I think I had the same book in 1990s. Things were so simple back then, when the default approach to anything was to start writing some C code with socket calls.
77.
▲
by
kennu
3y ago
Worst for me is CloudFront not supporting IPv6 for custom origins. If you happen to run a lot of separate Fargate containers as origins, you have to enable public IPv4 addresses for them, and that will soon double the price of small confain
78.
▲
by
kennu
3y ago
> It's really not that hard to run a node, and could be packaged into common usage easily. In my experience, it's not hard to run a node, but it can be hard to get it to sync with the Ethereum network, especially using older ha
79.
▲
by
kennu
3y ago
What really bugs me nowadays is lack of dark mode support on HN. Quite many websites Will autodetect it when I turn dark mode on on my phone, but for some reason HN refuses to do that. It seems like a no-brainer feature to autodetect it.
80.
▲
by
kennu
3y ago
Many comments seem to miss the point that nowadays native AWS cloud applications are meant to be built by combining various AWS services using Lambda as the glue between them. It's not about serverless vs non-serverless: it's abou
81.
▲
by
kennu
3y ago
I've been hoping to have WASM/WASI as an official AWS Lambda runtime for a long time. Ideally, it would be an evergreen platform that runs code forever once deployed. I'm pretty bored with updating Node.js versions every year
82.
▲
by
kennu
4y ago
Based on the article, his critique and analysis of in-game NFT usage was pretty shallow and not very technical. I think there would be many ways to synchronize blockchain NFTs into game items, make them disappear from the game (with some de
83.
▲
by
kennu
4y ago
That's all nice, but I have more than 5 machines, so there doesn't seem to be a well fitting pricing option for this kind of home power users.
84.
▲
by
kennu
4y ago
Ubuntu Pro pricing ( https://ubuntu.com/pro/subscribe ) seems pretty weird for a power user with a few desktops and a bunch of servers at home. Apparently it would cost thousands of dollars per year to subscribe them all
85.
▲
by
kennu
4y ago
People who say this should have been done earlier, what is the use case where you considered this a problem? This was already the console UI default for manually created new buckets. Was it a problem with using CloudFormation or APIs to cre
86.
▲
by
kennu
4y ago
On the Ethereum side, the cryptocurrency is used as an incentive for nodes to operate the global EVM (Ethereum Virtual Machine), which processes smart contract transactions. So one could argue that as long as the transactions have at least
87.
▲
by
kennu
4y ago
Nice to see there is a release date now! Wishlisted quite a while ago already, when no date was set.
88.
▲
by
kennu
4y ago
I think that semantic discussion on what constitutes as "listening" is not as interesting as what it actually does with the signal received from the microphone. I posted a description of that in this thread earlier.
89.
▲
by
kennu
4y ago
Safe assumptions are great for managing personal privacy, but in my view, one should be careful not to present them as facts in discussions. E.g. I use privacy shields on cameras to mitigate risk of eavesdropping, but I don't claim it&
90.
▲
by
kennu
4y ago
Amazon has a white paper on how it's supposed to work. According to the paper, yes, it's technically listening to audio, but storing it only in a temporary RAM buffer until it detects the wake word. I'm personally mostly inte
More ›