HNHacker News
TopNewBestAskShowJobs

CafeRacer

269 karma · joined June 23, 2023

submissionscomments
CafeRacer··on Show HN: Learn what CQRS, Event Sourcing and co. Are all about
Do you have code samples?
CafeRacer··on 4-Year-Old US Citizen Fighting Stage 4 Cancer Deported to Honduras
Well, it seems like it's mostly "regular" folk who get respiratory issues or accidentally trip near open windows with poor safety standards.
CafeRacer··on My inbox is a mess from signing up for everything. How do you handle it?
I use aliases from proton, then filters to automatically mark anything unwanted as spam.
CafeRacer··on Let's get real about the one-person billion dollar company
Ok, so you're saying that there were not a single 1B+ valuation company out there that failed?
CafeRacer··on Let's get real about the one-person billion dollar company
I mean... you can just copy/paste BTC or ETH software, name it differently... or get ERC721 and name it something.

Software itself will not make people use it.

CafeRacer··on Let's get real about the one-person billion dollar company
I'd predict a one person unicorn company potentionally possible, but this will be an inflated valuation company backed by someone, who is willing to prove a point. Not a company that delivers a great product and can be sustainable in the long run.

Purely from the operational perspective, you need to handle support, you need to handle billing, to handle lawsuits, to handle infrastructure, to handle incidents... and still have a good idea of what's going on.

So no, not sure it's happening.

CafeRacer··on Ask HN: What tech skill gave you the biggest boost in your career?
Pretty much above, but I'd say it as "exposure to many different business problems"
CafeRacer··on Linear sent me down a local-first rabbit hole
Nope, locally. Roughly I'm doing something like that https://gist.github.com/vladmiller/0be83755e65cf5bd942ffba22...

Example is a bit bad, but roughly shows how we're using. I have built a custom sync API that accepts in the body a list of <object_id>:<short_hash> and returns a kind of json-list in a format

<id>:<hash>:<json_object>\n <id>:<hash>:<json_object>\n

API compares what client knows vs. current state and only returns the objects that were updated/created and separately objects that were removed. Not ideal for large collections (but then again why did I store 50mb of historical data on the client in the first place? :D)

CafeRacer··on Linear sent me down a local-first rabbit hole
We're using dexie+rxjs. A killer combination.

Described here https://blog-doe.pages.dev/p/my-front-end-state-management-a...

I've already made improvements to that approach. decoupling of backend and front end actually feels like you're reducing complexity.

CafeRacer··on AWS Lambda now supports GitHub Actions to simplify function deployment
Here is my rant

debugging complex GH workflows is pita.

You can't imagine now many times I had to reverse ssh from running GH action because of some fucking little intricacy. Act is cool, but still not a 1-1.

If you fixed something you have to commit/push/rinse/repeat.

Then before arm machines... my fucking god, to get a worker connected... for fucks sake. And then your worker environment may be slightly different from whatever ubuntu-latest is and then you'd have to rebuild/fox the workflow again.

Commit/push/rinse/repeat... commit/push/rinse/repeat.

It works for something small, but as soon as you'll have an actual process - you probably fucked.

Now, lambdas... the amount of things you have to configure around lambdas is insane. There was serveless framework that used cloud formation, but at this point I am not even sure why cloud formation exists. It's bad. Go ahead argue with me.

Deploying non-binary code is pita. As soon as you have some custom module that needs to compile - there is a chance it'll break.

deploying python lambda that is technically acts as oauth endpoint that needs access to Postgres (psycopg2 and bcrypt). Have fun figuring out what's available on lambda runtime itself and then what's the fucking libc version and why it's so old. And as a developer function code makes sense, you do simple password auth and hash the password. As "deployer" of that it's insane how many hoops you have to jump trough.

how many things do you need to do to have your lambda connect to a Postgres database and also be exposed over api gateway (don't even get me started that piece of shit ever)? Configure this, configure that, run your iac, configure this... oh you made a mistake, now wait for 15 minutes until it rolls back.

Then having a warm lambda negates the entire cost-savings idea. And some lambdas should be fast. And the cost of running lambda is larger that the cost of running same code in vm.

the entire serverless platform on aws is horrible.

I was really trying to love lambdas, even created my own cdktf based deployment framework for lambdas that would do everything I need. It's just there is a resistance at every step. As soon as there is something unknown, you can't be sure it'll work.

Alternatives? I have bash scrips running inside of a container doing my CD/CI. I have a controlled container and scripts that I can easily reproduce locally. GH sends me a webhook, I start the process.

These are simple reproducible bash scrips, that I can run/debug locally.

For functions I was toying around with cloud flare that seems decent'ery. I think you can do more with it, seems like entire workos platform runs on CF. Seems like it has better DX.

In general, I've been heavily frustrated with many of the DevOps advancements.

For example there is Earthly, docker bake, something from redhat that seemingly supposed to help with container builds. Docker started crashing on my Mac and been crashing for two years ever since (Orb is decent, been using podman for a while). Earthly just complicated and weird (I had other issues with it as well). Redhat tool also did not give me flexibility I needed.

Whereas a bash script with ~50 lines of code produces a nice distroless or alpine container with exactly what I need. In 50 lines of code. No ads or enter your email to receive newsletters.

I'm trying to love most of the modern devops things, but most of them is just a reinvention of 50 lines of bash with logo, price tag and reduced flexibility. And you'll encounter resistance every other step.

---

Here is what I'd want from my ideal function experience. First of all, have an access to a full'er production container that has all libc's and whatnot. It'd be ideal if I could also use that to build my binaries and choose whether it's statically linked vs dynamic libs/binaries. Even for scripting languages you may have dependencies that needs compiling.

Then I'd like to be able to preconfigure the environment. I think aws uses fireckacker vm, that I think is actual microvm, not a container. So if I make my lambda run from a container it doesn't make sense anymore because it's container inside of vm. Fuck off aws. So ability to preconfigure the environment itself would be nice. Like ideally ability to push microvm image instead of code would be nice.

I haven't been using lambdas in the last two years. So maybe it's better now.

CafeRacer··on AWS Lambda now supports GitHub Actions to simplify function deployment
Title should be - Insanely expensive and poorly designed compute platform supports the worst cd/ci service ever.
CafeRacer··on "I met a founder who writes 10k lines of code a day thanks to AI"
"I met your wife, she was happy I did not say a word about AI".

AI is a too and can be useful at times. But amount of hype is unjustified in my opinion. Ergo, I am getting a feeling that there is some kind of elite conspiracy going on.

CafeRacer··on Warp.dev Terminal – Overpriced, Buggy, and AI-Sabotaged My Code
So you can delete it later?
CafeRacer··on Warp.dev Terminal – Overpriced, Buggy, and AI-Sabotaged My Code
Yes, and I find it mad when this stuff is used without source control.

Claude code, for example, sometimes is incredibly useful in generating repeatable patterns, and sometimes it just walks in circles. But at least I always understand what's it's doing, can revert and tell it to do differently.

CafeRacer··on How to make websites that will require lots of your time and energy
The reason why I dislike ORMs is that you always have to learn a custom DSL and live in documentation to remember stuff. I think AI has more context than my brain.

Sql does not really needs fixing. And something like sqlc provides a good middle ground between orms and pure sql.

CafeRacer··on How to make websites that will require lots of your time and energy
Sir, sqlc for example.

I know exactly what's going on, while getting some level of idiocy protection (talking about wrong column names, etc).

CafeRacer··on No AI Content
So... a reasonably stupid question - captchas and bot protection (e.g. cloudflare stuff) do not deter bots anymore?
CafeRacer··on AI overviews cause massive drop in search clicks
Literally this other link from a first page of HN: https://www.androidauthority.com/why-i-use-grapheneos-on-pix...
CafeRacer··on How to Firefox
Life is unfair to me and Firefox works just fine.
CafeRacer··on My favorite use-case for AI is writing logs
Yeah! And actually writing this inefficient code in python? Seriously? Be a man, write assembly.
CafeRacer··on I want an iPhone Mini-sized Android phone (2022)
I wish there was a phone, preferably with buttons (bb q10 like), that can run WhatsApp, banking app and Apple Pay (or whatever android version is). Also it should be running these stupid government apps. And music please... preferably with 3.5mm jack so I can connect my nice headphones. This phone can have mediocre camera.
CafeRacer··on Fast cryptographically safe GUID generator for Go
Would have been nice if that included timestamp information, to make them orderable. Similar to what uuid v7 does.
CafeRacer··on EU to ban carry-on baggage fees
You know other countries have laundries too, right?
CafeRacer··on Unexpected security footguns in Go's parsers
Humanity should ignore gorm in all honesty
CafeRacer··on I Am So Tired
Ignore the news and everyone talking about it. It's a clown circus.
CafeRacer··on Reverse Engineering Cursor's LLM Client
Soooo.... wireshark is no longer available or something?
CafeRacer··on Meta: Shut down your invasive AI Discover feed
I mean if you're using meta, x or whatever 'free' apps, you're the product. I am not sure why anyone would he surprised at this point.

The article really reads like as if Mozilla just wants attention.

CafeRacer··on Cursor 1.0
I've given up on cursor a while back. Too many updates, sometimes if produces shit when you don't need it to react at all, and sometimes for simple really useful autocompletions it hangs for a long time making snippets way more approachable.

Overall, I am having hard time with code autocompletion in IDE. I am using Claude desktop to search for information and bounce off ideas, but having it directly in IDE – I find it too disturbing.

Also there is this whole ordeal with VSCode Marketplace no longer available in Cursor.

I'm not saying AI in IDE is bad, it's just I personally can't get into it to actually feel more productive.

CafeRacer··on Ten years of JSON Web Token and preparing for the future
Is there a proposed rfc for revocation lists?
CafeRacer··on Toyota CEO Koji Sato: A Car Is Not a Car If It's Not Fun
I am never getting a car unless it's out of necessity.

Plus all modern cars look exactly the same boring.

← PreviousPage 3 of 6Next →