Content pfp
Content
@
0 reply
0 recast
2 reactions

dusan.framedl.eth pfp
dusan.framedl.eth
@ds8
just finished rewriting a small API i'm using to power my browser extensions from typescript (nextjs) to rust. i have never touched rust before, but i was able to move (relatively) quickly thanks to chatgpt and cursor with claude. my rough timeline: - 30min: brief intro asking chatgpt about ecosystem, package managers, frameworks, building and deploying app (on EC2) - 30min: environment setup - 1h: first working route - 3h: first half (3 routes) rewritten - basically just proxying requests to neynar + airstack (graphql 😓) - 1h: encountering some basic value object mapping pains and trying to solve them by typing stuff and accepting claude suggestions until it works — should've just asked ChatGPT/Claude for conceptual explanation and tackle it with logic instead of stochastic approach (chaining random function calls) https://github.com/cryptods8/modcast-extension-api 1/2
13 replies
1 recast
8 reactions

dusan.framedl.eth pfp
dusan.framedl.eth
@ds8
- 4h: graphql custom scalars + having 5 types for essentially the same data structure due to how `graphql-client` works (or doesn't) — in the end did the right thing and defined my own mappings - 30min: redis cache for some requests - 2h: my micro EC2 couldn't build the app so i did that on my machine and just copied the binaries (thank you, @hollyr.eth) - 1h: preflight requests (nginx to the rescue) and that's basically it. used nginx to switch the server and now all my extensions are powered by this fresh API. and i still don't know rust 2/2
2 replies
0 recast
4 reactions

Ryan J. Shaw pfp
Ryan J. Shaw
@rjs
Nice! Pretty sure nobody knows rust and this is exactly all rust stuff is built, because that language is impenetrable.
1 reply
0 recast
1 reaction

koisose.lol pfp
koisose.lol
@koisose
just use cobol then mate 🤣 🤣
0 reply
0 recast
1 reaction