W1D4/D5

I finished coding tic-tac-toe in rust today! I am pleased with this and learned a few things along the way about coding in rust vs python. Two interesting things that stand out so far are :

  • Variable scope in python is at a function level whereas it is at a block level due to differences in memory management of the programming languages (rust has no garbage collector).

  • Multiple errors shown at compilation unlike python which stops at the first error during execution because rust compiles while python interprets. Also rust's compiler suggests fixes to my errors which is both surprising and neat.

I did this by reading chapters 1-3 of the rust book that @Hamilton Greene (he) (W2'26) recommended. I am excited to learn about ownership in the next chapter although I might need to find a good application to build for since I am not sure making a simple game would require that.

Other things that I have been spending time on:

  • Worked through a binary tree LC problem with @Raq Robinson (they)

  • Played a text generation game (Zork) with @Mike Cugini (they/he) (SP1'26) @Isha Bhand (she/they) (W2'26) @Kevan Hollbach (he) (SP1'26) @Joshua Cohen (he) (W2'26). I enjoyed trying something new and I loved the moment we tried to feed the troll to bribe it instead of trying to kill it.

  • Coffee chat with @Shalini Pyapali (she) (W2'26) where I learned more about my natal chart through her very pretty app. I also learned that there are two main house systems -- Placidus vs Whole Sign -- and I get assigned two different moon signs depending on the chosen system..which is actually very important information to me :P

Previous
Previous

W2D1

Next
Next

W1D3