DEV Community

Cover image for Learning Rust: Grasping the concepts

Learning Rust: Grasping the concepts

Andrew Bone on March 04, 2024

Time for another Rust lesson. Following on from my last post, we're delving into Common Programming Concepts. As a web developer, I'm interested to...
Collapse
 
therabak profile image
The-Rabak

Great article, thanks!
I think it could've been a good opportunity to also demonstrate using functions and returning a val from them, especially for fib which is usually done recursively.
Also it might've been a better practice to first break out of the input loop before looping to get the fib value.

Collapse
 
link2twenty profile image
Andrew Bone

A recursive function would have made sense for the Fibonacci sequence, I wanted to play with loops as that's what the lesson seemed to hunt towards but you're absolutely write.

Though remember my solutions are not the definitive answer just the way I happened to solve the problem ☺️

Collapse
 
kapaseker profile image
PangoSea

Great article, Keep eyes on it

Collapse
 
volodyslav profile image
Volodyslav

Nice article 😁

Collapse
 
harsh2909 profile image
Harsh Agarwal

Great Article

Collapse
 
link2twenty profile image
Andrew Bone

Thank you ☺️

Collapse
 
danielhe4rt profile image
Daniel Reis

Ok. I think that I'm into Rust studies has a couple of months but didn't saw these "named loops" or even the break being a literally if condition.

Amazing content, dude! Hope to see more of it here.

Collapse
 
link2twenty profile image
Andrew Bone

I'm glad you're enjoying the series ☺️

Collapse
 
get_pieces profile image
Pieces 🌟

I think I am starting to love these Rust articles, great content here! πŸ”₯

Collapse
 
link2twenty profile image
Andrew Bone

Thank you ☺️

Collapse
 
shedrick profile image
Shedrick Williams

This is an article I can see myself referencing next time I pick up rust! Nice job

Collapse
 
link2twenty profile image
Andrew Bone

That's the best compliment you could give, thank you ☺️

Collapse
 
dev_sd profile image
Soumajit Das • Edited

Really good article 😊, by the way do write an article about the generic types and traits, it'd be very helpful.