Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
5Qn8mNbc2FNCiVV
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
5Qn8mNbc2FNCiVV
3y ago
I found their docker-compose more helpful than their chart: https://github.com/neondatabase/neon/blob/main/docker-compos... But I also needed to read their Ansible files to understand how they manage the
92.
▲
by
5Qn8mNbc2FNCiVV
3y ago
Neon sounds good for you. I'd wager any kind of managed database is fine, so the question is if you enjoy the features/cost savings Neon brings. Otherwise I cannot recommend using a managed DB enough because that's the best 2
93.
▲
by
5Qn8mNbc2FNCiVV
3y ago
It's less keeping track of state is hard and more keeping state in a medium that isn't suitable for it (the DOM). The argument of too much state in a single view is nil by what applications are built nowadays (and also expected).
94.
▲
by
5Qn8mNbc2FNCiVV
3y ago
Self managing storage is never easy to configure, especially not when it's storage that you want to access in a timely manner
95.
▲
by
5Qn8mNbc2FNCiVV
3y ago
The diffing algorithm for preact is super simple, I think it's along the lines of a dozen lines of code. I'd wager the code to directly updating the DOM will be larger than preact + usage code
96.
▲
The Cabal: Valve’s Design Process for Creating Half-Life
(gamedeveloper.com)
3 points
by
5Qn8mNbc2FNCiVV
3y ago
|
0 comments
97.
▲
by
5Qn8mNbc2FNCiVV
3y ago
I'd argue being able to stop worrying about your code after writing it and not making decisions like these is a good enough reason to just do it right. Especially when it's not much more additional work
98.
▲
by
5Qn8mNbc2FNCiVV
3y ago
Unpopular opinion: If you use k8s mostly for scaling, you're using it for the wrong reasons. Also the numbers are still irrelevant for the server because if you do 500k orders a month you owe it to the users to respond faster than 1s a
99.
▲
by
5Qn8mNbc2FNCiVV
3y ago
Afaik you cannot discern null and undefined. So, not there and "null"? Either that or I'm going to have to have a good talk with my colleague
100.
▲
by
5Qn8mNbc2FNCiVV
3y ago
It's JavaScript Object Notation. An array of objects looks like that, if you want to have another data structure you can do it and have the accompanying code to consume it. The only thing holding you back from doing that is 1kb of JS a
101.
▲
by
5Qn8mNbc2FNCiVV
3y ago
You can (mostly) avoid double counting without PII. Track the page view and store in local state that you tracked for this day and that's it. I opted out not mentioning the caveats but that's what the mostly is there for. Obviousl
102.
▲
by
5Qn8mNbc2FNCiVV
3y ago
I'm also not sure about why multiple notification channels can't be used. If there's an alert I'd like to be notified by all means possible (depending on severity)
103.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Just basic page views by throwing the script in and that's it. Nothing fancy
104.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Just added it to my page, was super easy. It doesn't count the same user reloading the page as a single event though. This can be done without PII so yeah, I'd love to see that to be honest
105.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Hybrid approaches are also really good, but I'm gonna be honest: If capital is not an issue and the growth is to be expected, I wouldn't steer into dedicated server region. It's just such an headache if it's not the core
106.
▲
Rust may become a licensed term
(twitter.com)
10 points
by
5Qn8mNbc2FNCiVV
4y ago
|
3 comments
107.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Link to the form: https://docs.google.com/forms/d/e/1FAIpQLSdaM4pdWFsLJ8GHIUFI...
108.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Since it runs on AWS, it has the same limit/quota lag as AWS has
109.
▲
by
5Qn8mNbc2FNCiVV
4y ago
I'm sorry to break it to you, but monorepos are extremely common. Doesn't mean they have to be as large but every company I've been at had a monorepo. And as soon as you have to manage PRs for multiple repos with a new cross-
110.
▲
by
5Qn8mNbc2FNCiVV
4y ago
More like Vercel -> any Node service -> remainder
111.
▲
by
5Qn8mNbc2FNCiVV
4y ago
That's what I would do and use the dark: classes for adding borders and other styles that make dark themes work. F.e. shadows and floating cards doesn't really work with dark themes but does with light colors.
112.
▲
by
5Qn8mNbc2FNCiVV
4y ago
I would flag the solution code in a code review because the Badge is not a composable component and still concerns itself with passing in the styles from outside. If it would have accepted any children and only provided the box, it should h
113.
▲
by
5Qn8mNbc2FNCiVV
4y ago
It's not like the servers running the LLMs suddenly feel pain. At least for now
114.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Theres no vendor lock-in if you can scp your codebase to any vps and run `next build && next start` and have it work out of the box
115.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Just use Next.js? If you just use it by following the getting started and don't use their SSR features if you don't want them, it will Just Work™ I really don't understand why the outcry even exists. It's recommended for
116.
▲
A C++ vectorized database acceleration library
(github.com)
2 points
by
5Qn8mNbc2FNCiVV
4y ago
|
0 comments
117.
▲
by
5Qn8mNbc2FNCiVV
4y ago
If this was code I'd have to review I'd give the feedback that the wrong information is kept in state. After start the only thing the setTimeout should do is set the game to be finished and then show the final count to the user. I
118.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Isn't Record<EnumType, whatever> working? Then instantiate like: ``` { [EnumType.First]: ..., [EnumType.Second]: ... } ```
119.
▲
by
5Qn8mNbc2FNCiVV
4y ago
I know that, I was asking more about the specifics of the Crunchydata postgres operator since they have replication built-in. If it was just them using the volumes and doing the replication on the application level (not using k8s storage ma
120.
▲
by
5Qn8mNbc2FNCiVV
4y ago
Can you tell me how the storage there works when using their replica feature? Can I just provide it storage from a k8s-host and it replicates it to the hosts where the other replicas live via software or do I need to provide it a StorageCla
More ›