Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
silviogutierrez
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
silviogutierrez
6y ago
Maybe I'm missing something, but ultimately, isn't this just a re-invention of a site-wide cache? Back in the day, in Django/Drupal/any CMS, for anonymous users, you'd just dump each page into memcached with a path
62.
▲
by
silviogutierrez
6y ago
Neat trick. Is this any faster than pg_dump and pg_load? Note: there's plenty of optimization you can apply to pg_dump and even use pg_restore, none applied below. Like so: function save_database() { mkdir -p /tmp&#x
63.
▲
by
silviogutierrez
6y ago
Neat!
64.
▲
by
silviogutierrez
6y ago
Alas, not as an expression. Just a statement. I couldn't disagree more with that decision.
65.
▲
by
silviogutierrez
6y ago
Happened to my app[1] in the last couple of weeks. No big new features, it was just blocked for a minor update. So now, I lose control over the process and can't even refund the customer if they forget. And people won't try the ap
66.
▲
by
silviogutierrez
6y ago
I'm hoping for that too. I really try to make Safari my daily driver (performance, privacy, battery life). But the dev experience is lacking. Also the network tab is just... odd.
67.
▲
by
silviogutierrez
6y ago
This is great, but desperately needs a way to also fix these issues. And all functionality should run locally as well. I imagine the latter is possible thanks to it being a docker image. So far I've been using this script I built for s
68.
▲
by
silviogutierrez
6y ago
Great post! Noticed you have the Logitech webcam. I think it'd be helpful if you: - Added a picture of the back of your 6k with the webcam. I'm sure it changes the look, however short the cable is. - Address the lack of speakers.
69.
▲
by
silviogutierrez
6y ago
Huge nix fan. Question: how do you deploy these with k8s? Do you just build a NixOS docker image "wrapper" around all the other stuff?
70.
▲
by
silviogutierrez
6y ago
Agreed on pattern matching, though mypy can help a lot here with exhaustive checks at the very least. They do work on enums and discriminated unions. They should document it: https://github.com/python/mypy/issues&#
71.
▲
by
silviogutierrez
6y ago
Late reply: I used to do this. These days, I treat my projects like cattle, not pets.[1] Using nix I made everything reproducible. So given a project name and branch name, everything is checked out (shallow checkout for big projects) and se
72.
▲
by
silviogutierrez
6y ago
Looks great! Any plans to support SSR in say, the React use case? useEffect won't run on the server and obviously you don't have the DOM. I'd love to use this for the table to come rendered from the server then hydrate on the
73.
▲
by
silviogutierrez
6y ago
Are your venvs themselves the git repo too? Sounds like they're not, because you have a different project folder. What's your rationale for now putting the venv inside the project and ignoring it? À la node_modules. I've sh
74.
▲
by
silviogutierrez
6y ago
That's spectacular. And a great project name too.
75.
▲
by
silviogutierrez
6y ago
You can get a k8s cluster on DO for around $15 p/m. And that itself can host all your apps.
76.
▲
by
silviogutierrez
6y ago
Reading this charitably: I guess I agree. k8s is definitely overpowered for my needs. And I'm almost certain my blog or my business will never need that full power. Fully aware of that. But I'm not sure one can find something of
77.
▲
by
silviogutierrez
6y ago
Alas, still rely on bash for that. Practically a one liner. Mainly just kustomize piped into kube apply. But, but, but. Having to a create a one-off database migration script imperatively.
78.
▲
by
silviogutierrez
6y ago
I've avoided home manager for now. I'll get into it soon. Instead, every project I work on has a shell.nix in the root (and if it's not a project I control, I have a shell.nix mapping elsewhere). Check it out, run nix-shell.
79.
▲
by
silviogutierrez
6y ago
Exactly. That's a great way to put it. A bunch of Bash glue reimplementing what Kubernetes already does. Poorly.
80.
▲
by
silviogutierrez
6y ago
I don't. I use a cloud cluster. But that still has to be provisioned? You need to choose size, node pool, VPC, region, etc.
81.
▲
by
silviogutierrez
6y ago
Check out nix for actual development environments. Huge fan of that as well. I can buy a new laptop and be back to 100% in a few minutes. Though the amount of time I spent learning how to get there far exceeds any time savings. Ever.
82.
▲
by
silviogutierrez
6y ago
Maybe? I'm too lazy to formally verify if the YAML files k8s accepts are Turing complete. With kustomize they might very well be. How about "infrastructure-as-some-sort-of-text-file-versioned-in-my-repository". It's a mo
83.
▲
by
silviogutierrez
6y ago
I'm not intimately familiar with those, but I did a lot of similar things with scripts. As far as I can tell: those are imperative. At least in some areas. Kubernetes is declarative. You mention the end state and it just "figures
84.
▲
by
silviogutierrez
6y ago
"What cron jobs does this app run?" Open cron.yaml and see. With schedule. Self documented. Amazing. Every time. Even when some as my k8s battle wounds are still healing (or permanently scarred). See other replies for more info.
85.
▲
by
silviogutierrez
6y ago
So terraform is a higher-order, meta-Kubernetes. It's very rarely used, but who provisions the cluster itself? That's terraform. So terraform creates the cluster, DNS and VPC. Then k8s runs pretty much everything.
86.
▲
by
silviogutierrez
6y ago
No. Not easier in my opinion. And some of the fires you only learn after getting burnt badly . [1] Note: my experience was all with cloud-provided Kubernetes, never running my own. So it was already an order of magnitude easier. Can't
87.
▲
by
silviogutierrez
6y ago
I haven't, and since I've sunk the cost into Kubernetes and know it very well now, likely won't end up there. In retrospect though, maybe it's exactly what I needed. Great suggestion.
88.
▲
by
silviogutierrez
6y ago
I sure will. 99% of the work was ingress handling and SSL cert generation. Everything else was fairly seamless. Even ingress is trivial if you use a cloud balancer per ingress. But I wanted to save money so use a single cloud balancer for m
89.
▲
by
silviogutierrez
6y ago
For me, and many others: infrastructure as code. Kubernetes is very complex and took a long time to learn properly. And there have been fires among the way. I plan to write extensively on my blog about it. But at the end of the day: hav
90.
▲
by
silviogutierrez
6y ago
I try to be reasonable here. If it's something from a business I transacted with in the past or recognize the name, I will unsubscribe. I don't consider it spam. And I don't want to hurt their reputation. I do keep track of i
More ›