100 Days of Rust : Day 2

Today I started with Data Types While most of it is intuitive, it is useful to go over the documentation. e.g. For tuple, I had expected that to access specific index, syntax would be mytuple[0]. mytuple.0 was not I had expected. I also tried to print the tuple. In the process, I learnt about pretty printing only from the compiler errors. The compiler errors are so descriptive 😍 Here is the code in case you are interested

Continue Reading »

100 Days of Rust : Day 1

Today I finished the Number guessing game During the early part of the code, my mind started thinking “How will comparing string input from the user, work with a number? 🤔” (💪 of having gone through such issues numerous times over the years) Of course, it was explained later. I was a bit disappointed that the code paniced upon entering non-number 😞 especially after the expect clause. Turns out that is expected behaviour.

Continue Reading »

100 Days of Rust : Day 0

In this new year, I have decided to learn rust All my recent experience has been in dynamic languages (90% python, 10% ruby) But I started my software development career in C, and did that for probably 10 years. So I’m not new to compiled languages.1 But things have changed a lot (for the better) in these years. Additionally, rust is getting a lot of attention from bigwigs like MS.

Continue Reading »