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
14 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
6 reactions

zoo pfp
zoo
@zoo
πŸ¦€
0 reply
0 recast
2 reactions