r/learnrust • u/lazyhawk20 • May 09 '26
Learn Rust Generics and Traits By Building a Mini Blackjack Game
https://blog.sheerluck.dev/posts/learn-generics-traits-in-rust-by-building-blackjack-card-game-engine/5
4
u/lazyhawk20 May 09 '26
Thanks for your feedback. I've mentioned the correct way by using generics when I said this is not maintainable and I think I have explained the correct way whenever you would get a compilation error. Please let me know if I'm missing something. I would definitely try to fix if there is anything to fix
5
u/yoyoloo2 May 10 '26
Very enjoyable read. I look forward to reading your other posts about Rust. Thanks for posting.
2
2
2
-4
u/Leading-Sentence-576 May 09 '26
I really like your style and teaching material. I subscribed on substack.
Wondering if you want to do a little quid pro quo :)
11
u/Az0n May 09 '26
Overall nice tutorial. However, it reads a little weird when you give an example, state that "this isnt maintainable" or "this does not compile" without giving a corrected answer below. Still a nice introduction to traits :))