Content pfp
Content
@
0 reply
0 recast
2 reactions

Haardik pfp
Haardik
@haardikkk
websocket servers in nodejs are a sin
1 reply
0 recast
6 reactions

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I'd argue that all nodejs servers for more than just a toy app are a sin. (Even though I work on one lol) Bun seems like a promising solution for folks that want to stay in JS/TS land. I'd still chose something else though.
2 replies
0 recast
4 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
What would you use instead? Feel free to specify a small handful based on use cases, if "depends". Working on side projects and might be good to try my hands at a few thing
1 reply
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I'm a big fan of Go since it's great across the board, regardless of use case. In the rare case where you need to squeeze as much performance as possible then languages such as Rust, Zig and C/C++ will do. I've never used it myself but if I were to start a backend focused on real-time and websockets then I'd try Elixir since it seems to be the best for that. Scala might be another good option if your servers are always on since JVM has a cold-start problem but given its learning curve, I might as well just use Rust instead.
1 reply
0 recast
2 reactions

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
I think I saw somewhere that Merkle uses Nodejs for its web api. Do you guys also use Go and or other languages across different services?
2 replies
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
We use TS for everything Warpcast except for some Python for ML. For Farcaster, Snapchain and parts of Hubs use Rust.
1 reply
0 recast
0 reaction

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
lol so it is possible to build more than a toy app on Node js?
1 reply
0 recast
1 reaction

Haardik pfp
Haardik
@haardikkk
There’s a reason hub is being deprecated and snapchain being built in rust 😅
1 reply
0 recast
0 reaction

Tayyab - d/acc pfp
Tayyab - d/acc
@tayyab
For Hubs, I get.
1 reply
0 recast
1 reaction

Haardik pfp
Haardik
@haardikkk
What else then? Frontend being built in typescript isn’t rly a surprise and modern day web apps that are also mobile apps require it pretty much unless you have enough money and resources to have separate web, iOS, and android teams
0 reply
0 recast
0 reaction