RUST Enums ARE Better
138,568
Published 2023-02-13
Twitch
Everything is built live on twitch
Twitch : bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Spotify DevHour: open.spotify.com/show/4MLaDrQcQ5mi3rsnvWkwPt
Editor
All my videos are edited by Flip. Give him a follow! twitter.com/flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his dms.
Join this channel to get access to perks:
youtube.com/channel/UC8ENHE5xdFSwx71u3fDH5Xw/join
Links
Linode: linode.com/prime
discord.gg/ThePrimeagen
Twitch: twitch.tv/ThePrimeagen
Insta: instagram.com/ThePrimeagen
Twitter: twitter.com/ThePrimeagen
VimRC & i3: github.com/ThePrimeagen/.dotfiles
Keyboard 15% off bit.ly/Prime360 USE CODE PRIME360
#coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment #ruststring
All Comments (21)
-
first, also hey, let me know what you think about this code video? I tried to make LOTs of code, but cool and exciting. (also like the video, ty ty :))
-
I feel so hyped to learn Rust every time you make a video on it
-
I really love this new style with showing the ctode, great video!
-
Oh my God, these animations and the code presentations are God tier! What the fuck is this super high quality!!! Also the explanations are top notch. The video is amazing! 10/10
-
I love clear Result/optional types, these are soo much better then exceptions!
-
Seems very similar to language features from the FP world, specifically OCaml. The match functionality with extracting out data from container values is so powerful that it serves as the basis for most algorithms in OCaml. It’s pretty cool to see so many languages adopting FP language features like Python and Rust taking matching.
-
enum RealProgrammingLanguages { Rust, Haskell }
-
Prime, I loved this style of comparing code. Really, really helps and also really dig that colour scheme;)
-
I know this concept from Haskell and Swift. They‘re great! I really hope, that there will someday be an equivalent in TS
-
Waiting for more Rust jobs, to finally switch from TypeScript to Rust. I love TypeScript sooo much, I written lots and lots of code during 5 years of my career, but Rust seems to me to be my next step
-
I am currently doing my CS undergrad and we are doing a one-year-long team-programming exercise. We have to do this in Java and in our code we basically have multiple enums that are templates to build functions out of. The hoops you have to jump through to make this a reality in Java are insane (we ended up coding a bunch of Factories) and I am quite jealous that it does not work like in Rust.
-
Woah Prime! Calm down there! If you continue like this I'll end up learning rust
-
This type of format is so good. I feel that re-watching the video does not tire me at all if I don´t get the concept in the first run.
-
I remember learning how Rust enums can hold a subtype and it blew my mind.
-
Also pretty cool is that Option
(which would be the same as a nullable pointer) actually is represented as a single nullable pointer in memory, since rust knows that the pointer (Box) cannot be null, and therefore uses null to represent None. -
What software you used to show the code? Is the same as code aesthetics? Just curious. I really liked it.
-
It's really crazy how readable rust can be if you don't try to get too fancy. Loving getting to work with TS and Rust on my 2 projects right now
-
Hey Prime! loved the vid. One quick question, what software do you use to edit your coding videos like this?
-
Great video, as usual! The editing on this one however is next level. Well done! Really easy to follow! Good job! Keep up the good work!
-
Nice video! On the array example, am I right that this is demonstrating the difference between structural and nominal typing, and how the latter is stricter?