this post was submitted on 27 Jun 2023
0 points (NaN% liked)

Programming

13097 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
 

I'm looking to get a lemmy bot figured out for posting sports scores in real-time (or near it) like Reddit had for NHL games. The lemmy api reference states that rust has the api as a loadable library, but I've only ever done C/C++ and python. Anything Coursera style to get a basic overview of how to get started in Rust?

I did also see lemmy-bot but it looks like it doesn't handle post editing at the moment, and not sure i really want to learn how to use npm to be honest.

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 1 year ago

If you have a JetBrains IDE you can install this plugin, which interactively works you through the rustlings course: https://plugins.jetbrains.com/plugin/16631-learn-rust/about

[โ€“] [email protected] 1 points 1 year ago

There are a few resources out there, but a good starting place is the book. There's also Rust by example which has example snippets for doing various tasks.

Also, keep in mind that Rust is a very different language from C, C++, and Python. It's going to be hard to learn it if you try to treat the higher level concepts (structs, enums, traits, etc) like how other languages you know work. Take your time, it takes most people a lot longer to learn Rust than to learn most other traditional languages.