Rust for TypeScript Developers by ThePrimeagen | Preview

Sdílet
Vložit
  • čas přidán 28. 05. 2024
  • Full Course:
    Rust for TypeScript Developers: frontendmasters.com/courses/r...
    About this Course:
    As a TypeScript developer, expanding your skills with Rust can be a game-changer. Rust offers memory safety without a garbage collector, impressive performance, and a strong type system similar to TypeScript, but with even more robustness. Learning Rust will not only diversify your skillset but also open up new opportunities in systems programming, WebAssembly, and performance-critical applications!
    Find Frontend Masters Online:
    Twitter: / frontendmasters
    LinkedIn: / frontend-masters
    Facebook: / frontendmasters
    Instagram: / frontendmasters
    About Us:
    Advance your skills with in-depth, modern front-end engineering courses - our 150+ high-quality courses and 18 curated learning paths will guide you from mid-level to senior developer! frontendmasters.com/?...
    Sections:
    0:00 - Introduction and Course Description
    0:35 - Iterating Through a Text File
    5:56 - Options in Rust
    10:53 - Creating Modules

Komentáře • 162

  • @thienlacho860
    @thienlacho860 Před rokem +737

    It's funny to see ThePrimeagen that calm 😂

    • @bangunny
      @bangunny Před rokem +1

      ông này là ai vậy

    • @UliTroyo
      @UliTroyo Před rokem +43

      He tries so hard to keep it in check, and mostly succeeds, it’s very funny

    • @cowslaw
      @cowslaw Před rokem +15

      Uncanny valley prime

    • @parlor3115
      @parlor3115 Před rokem +17

      You should've seen how he started randomly laughing after one of the class goers mentioned Figma

    • @MrTyty527
      @MrTyty527 Před rokem +7

      yayayayyaayayayayya tokioooo

  • @kasper369
    @kasper369 Před rokem +98

    In the strat of the video, i was like "thats not ThePrimeagen i know " and @ 0:36 'ya that the ThePrimeagen i know'

  • @Definesleepalt
    @Definesleepalt Před 7 měsíci +8

    "vim btw" 30 seconds in .... i love this guy

  • @franekkorulczyk8887
    @franekkorulczyk8887 Před rokem +91

    The most ThePrimeagenish sentence you can imagine:
    "Did you see how fast I deleted that? Vim btw"
    Ps: I use vim btw

  • @256k_
    @256k_ Před rokem +87

    I became a member to FEM specifically for this course!
    I've been reading and studying rust for over a month now in evenings and weekends and while im starting to get comfortable with it, having only javascript as the main programming language i am proficient in, some of the things in rust felt awkward or confusing.
    what sets this course apart from other rust courses is that Prime bases all of the course on small examples and problems that they first solve in typescript to explain to logic then show how its done in rust to map that logic to the new way of doing things. its a fantastic course and a great way to learn Rust coming from JS/TS! immensely helpful to me as a js dev and i'm very happy i paid for the FEM membership!

    • @orhancekic_
      @orhancekic_ Před rokem

      please censor the word as "j*v*script", we don't want to offend our master primeagen

  • @tbfromsd
    @tbfromsd Před rokem +93

    Most impressive part of his resume is Father of Four. The best time of my life was rolling into my defense contractor gig with a 2 year old strapped to my chest, and watching former killing machines for people melt. But multiply that by 4 and I'd be in a straight jacket.

    • @NathanHedglin
      @NathanHedglin Před rokem +7

      Lol same. I have twin daughters. That is PLENTY for me

    • @hakooplayplay3212
      @hakooplayplay3212 Před rokem +4

      im backend dev and father of 4 :) and glad that my favorite dev is also :)

  • @thegrumpydeveloper
    @thegrumpydeveloper Před rokem +8

    What I was looking for. The fact that prime delivers the lesson in full hoodie uniform is what seals the deal.

  • @tyu3456
    @tyu3456 Před rokem +24

    Thank you Professor Doctor Prime

  • @samconran
    @samconran Před rokem +7

    That defence of traits being localised was awesome, I'm pretty new to rust and didn't realise that!

  • @pervognsen_bitwise
    @pervognsen_bitwise Před 8 měsíci +5

    Instead of lines().enumerate().filter(...) you can do lines().step_by(2) and then you also don't have to project away the enumerate index afterwards.

  • @zm7985
    @zm7985 Před rokem +30

    Prof Prime, the lost brother of Dr Disrespect.

  • @nomadtrails
    @nomadtrails Před rokem +13

    So happy to see Prime could keep his personality in tact in the context. I don't want to see every presenter cursing, but with Prime, I'm more happy haha.

  • @StuartLoria
    @StuartLoria Před 8 měsíci +4

    I would pay just to see Prime explaining himself for once, huge fan.

  • @maadmoode
    @maadmoode Před rokem +27

    For a hot sec I thought this was AI generated or something but it only took 00:37 to know its real.

  • @kurokurovich
    @kurokurovich Před rokem +3

    it's less than 1 minute and primeagen is already flexing vim

  • @Disorrder
    @Disorrder Před rokem +11

    wow, amazing video! Just started to learn Rust as a TypeScript dev, and that last thing about scoped traits looks very impressive 🤯

    • @ryanmill2574
      @ryanmill2574 Před rokem

      I'm in the same boat, how's that going for you?

    • @Disorrder
      @Disorrder Před rokem

      I’m learning it for using in Tauri, very excited with this stuff. I’m not very far, didn’t finish to read rustbook yet

  • @thatguynar
    @thatguynar Před 10 měsíci +2

    I'm sort of not prepared to see him this calm

  • @MirkoVukusic
    @MirkoVukusic Před rokem +2

    Oh yesssss. This is what I needed!

  • @NphiniT
    @NphiniT Před rokem +22

    I'd give anything for a Rust course side-by-side with C like this

  • @vitinhuffc
    @vitinhuffc Před rokem

    Thanks for the lesson prime❤

  • @Alkis05
    @Alkis05 Před 6 měsíci +1

    That vim flex though, right of the bet... it killed me

  • @NssYWanyonyi
    @NssYWanyonyi Před rokem

    Cool video.
    Makes me feel like there is a long way to go.
    But will try to keep up.

  • @lThePotatoCrew
    @lThePotatoCrew Před rokem +2

    Rust looks great xD, I wish I had the opportunity to use it more in my work xD.

  • @bielgaucho_real
    @bielgaucho_real Před rokem

    Quite nice demo of rust

  • @sofiaknyazeva
    @sofiaknyazeva Před rokem +2

    12:31
    I saw semicolon (";") in self * self (where f64 area is implemented in presentation)

  • @georgehelyar
    @georgehelyar Před rokem +2

    "unwrap() sorry for cursing."
    This is the right thing to do after using unwrap

  • @vncntjms
    @vncntjms Před 6 měsíci

    11:43 that's mindblowing!

  • @AndraBullar
    @AndraBullar Před 8 měsíci +1

    "Don't read the warnings, they'll ruin the surprise" is going in my next commit message

  • @rayhankessal6976
    @rayhankessal6976 Před rokem

    The one and only, going at it again

  • @KSmifune
    @KSmifune Před rokem +4

    cool my fav rust youtuber

  • @AwesomeAsh99
    @AwesomeAsh99 Před 11 měsíci

    That was a sick video! I want to get a better job so my company would buy me this course 😂

  • @doesitmatter
    @doesitmatter Před rokem +1

    0:22 its probably first time I see someone do a conference with a hood up

  • @user-bd2qu9bm6c
    @user-bd2qu9bm6c Před 4 měsíci

    It's funny and interesting, I love this kind of vedio !

  • @John223
    @John223 Před rokem +2

    The moment I saw that fluffy moustache with that smug smile underneath, I could not stop laughing. I'll see you in the HR office, Karen already knows about this, please don't break my laptop 😂

  • @rob2theworld
    @rob2theworld Před 7 měsíci

    Big fan of the Primeagne!

  • @angeldev96
    @angeldev96 Před rokem

    OMG ThePrimeagen!!

  • @DavidAlsh
    @DavidAlsh Před rokem +7

    I use Rust daily for work and enjoy it but I have come here for an internet fight so here goes 🥊🥊
    I'm not a smart guy so I really appreciate boring and obvious, particularly on projects where I work with other engineers. Rust is amazing in so many ways but it has a few language design choices that I personally find to be a little unergonomic.
    - I really really miss structurally evaluated types. I have found that using TS interfaces/type literals as function parameters is more ergonomic than traits as I find traits to be highly coupling and can result in worse testing ergonomics.
    - Even though it's scoped to a file, I find it disorienting tracking down where methods come from when you have a bunch of use statements (same problem with C# namespaces). Personally I really appreciate the unambiguity in TS where "you import a thing from a place and use it in another thing". In Rust you see less `app.use(foo)` and more `app.foo()` , where the `.foo()` method appears because a namespace import extends `app`. With TS you can trace an import without any tooling - just look at the import path, where in Rust you need to have the language server running to know where a method comes from.
    - I'm the kind of guy who organizes my code and _marinades_ my code in tests. With TypeScript; I use folders to describe/group related module code into "packages". I tend to separate functions/classes (composition > inheritance tho) into their own files and each function/class file is paired with an adjacent testing file which is long and extremely thorough. Rust modules don't like to be split into multiple files so this sort of workflow isn't easy to achieve and is not considered idiomatic - In Rust projects I tend to see a lot of monolithic thousands-of-lines single file modules, with all the structs, functions, traits and tests in them. It triggers my autism seeing such disorder, it's like putting everything on the floor 🥲
    All said though, the borrow checker is lit af, the wild types and symbol soup you can get used to, lifetimes are a necessary evil, language features are constantly streaming in - my only gripe it's just so hard to have an OCD-level neatly organized Rust project 😂
    TypeScript is still my favorite language from an ergonomics/language design standpoint - but the runtime is poop. Rust is my favorite language because it's conceptually _perfect_ for writing GUI applications. In GUI applications you can't horizontally scale a client device so multi-threading is essential. The fact that Rust guarantees fearless concurrency through it's ownership system makes this _the_ language for GUI applications. Linux has first class support for native applications written in Rust via gtk-rs - would love to see GUI UI kits using native OS widgets for Web, Windows and MacOS too.

    • @sohn7767
      @sohn7767 Před rokem

      While I love rust, I also still aren’t satisfied with how the module system (or my compatibility with it too! It tends to become very messy, I still find my way around to navigate but if I were to forget what things are named I think I would be running into difficulties by not being able to use search

  • @thommccarthy1139
    @thommccarthy1139 Před rokem +33

    Crablang for Soydevs!

    • @honeyfuntime
      @honeyfuntime Před rokem +6

      * intensely soyfaces *

    • @SlavaBagmut
      @SlavaBagmut Před rokem

      Haha it's so funny seeing you shitting on Typescript developers thinking that you are some kind of elitists. Not everything should be done in Rust. You will not be using microscope instead of hammer for nails.

  • @JamesJon1187
    @JamesJon1187 Před rokem

    Heeeey look who it is on FE masters!

  • @radicaledo8737
    @radicaledo8737 Před 7 měsíci +1

    anyone knows how he makes the error to appear in a neat box? timestamp 5:08

  • @salimpradhan1065
    @salimpradhan1065 Před rokem +1

    Professor ThePrimeagen

  • @VectirR6
    @VectirR6 Před rokem

    Intro music is dope

  • @ArtemSuchov
    @ArtemSuchov Před rokem

    Go ThePrimeagen!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @Brainiac5
    @Brainiac5 Před rokem +1

    I guess we're using the more widely-accepted Olive Oil instead of Coconut Oil in this case. I shall obey master Prime 🥥

  • @CarlosReyes-ku6ub
    @CarlosReyes-ku6ub Před rokem +1

    What pill did he took??? I'm interested pm me

  • @kesoBJJ
    @kesoBJJ Před 8 měsíci +1

    prime = GOAT

  • @jgfurlan_
    @jgfurlan_ Před 7 měsíci

    What font is he using?

  • @guynameddan427
    @guynameddan427 Před rokem

    Blazingly fast!

  • @MrKKrueger
    @MrKKrueger Před rokem

    Is it blazingly fast?

    • @heater5979
      @heater5979 Před 10 měsíci

      Blazing! Great balls of fire, blazing!

  • @michah3956
    @michah3956 Před rokem

    ❤ Rust

  • @Khari99
    @Khari99 Před rokem

    Professor Primeagen

  • @merimbungur8724
    @merimbungur8724 Před rokem +1

    I am 2 minutes in and I am still not sure if this is a skit or is this an actual tutorial.
    The hipster mustache hoodie presenter, the hipster mustache beanie bro in audience.
    Flourishing vim editor.
    EDIT: It's real
    EDIT2: And its good

  • @codingmates
    @codingmates Před 3 měsíci

    Fecking love this guy!

  • @surajraika7821
    @surajraika7821 Před 6 měsíci +1

    wait those guys are using Vscode
    now ThePrimeagen have to make a different cource on how use nvim
    and other premium course on how to exit nvim

  • @onepunchman8721
    @onepunchman8721 Před rokem +2

    Me:
    Who are you?
    ThePrimeagen:
    I am a husband to a beautiful wife
    Me:
    okay, got that!

  • @frknue
    @frknue Před rokem +4

    vim btw :)

  • @orhanmadiassani
    @orhanmadiassani Před 5 měsíci

    My takeaway is not Rust here. It’s how fast editing is with Vim.

  • @oussama40612
    @oussama40612 Před rokem

    Why did u decide to skip showing how to handle the error?

    • @B20C0
      @B20C0 Před rokem

      Because this is more of a teaser. They sell courses.

  • @encapsulatio
    @encapsulatio Před rokem

    Arch BTW transformed into I use Vim BTW...as expected.

  • @verified_tinker1818
    @verified_tinker1818 Před rokem +1

    Great stuff! Now, if only he'd stop using the explicit return statement where it's not necessary... That was killing me.

  • @snatvb
    @snatvb Před rokem

    I like Rust, but I still have no idea where I can use it

    • @_danisson
      @_danisson Před rokem

      Same, never touched anything besides web haha, you figured out?

    • @snatvb
      @snatvb Před rokem

      @@_danisson even in web will easier node for web as fullstack, or need to use fullstack rust, but it's too hard

  • @Requiem100500
    @Requiem100500 Před rokem +1

    I dunno, it just feels wrong to see Prime speak so seriously without shouting "DEEZ NUTS" every 5 minutes...

  • @itsanurag1111
    @itsanurag1111 Před rokem

    please provide your vim and this course for free
    really really need this .........can't afford though

    • @felixs6795
      @felixs6795 Před rokem

      Vim is free

    • @itsanurag1111
      @itsanurag1111 Před rokem

      @@felixs6795 is it

    • @felixs6795
      @felixs6795 Před rokem

      @@itsanurag1111 yes, vi, vim and neovim are all free open source software

  • @juniorceccon
    @juniorceccon Před rokem +1

    It seems like he forgot to drink 5 liters or so of coffee

  • @Santon-Motho
    @Santon-Motho Před rokem +4

    Who names their child ThePrimeagen?

  • @Sam-wl4vo
    @Sam-wl4vo Před rokem

    Prime is the best

  • @Bourn77
    @Bourn77 Před rokem

    Who even is this guy? This is not the prime i know. 😂 This guy is calm and doing programming like an average guy.

  • @ikkenzo3948
    @ikkenzo3948 Před rokem +3

    oi prime there's someone using vs code in your room oi

  • @peter8261
    @peter8261 Před rokem

    "Vim by the way.... if you didn't know"
    Lol what a nurd.

  • @sofiaknyazeva
    @sofiaknyazeva Před rokem

    Wait for real?? I'm little confused

  • @jayman1ism
    @jayman1ism Před 4 měsíci

    whats up with the hood

  • @allan_archie
    @allan_archie Před rokem

    He always says 'beautiful wife'. When she bring him food he goes... 'Thanks beautiful wife... That's my beautiful wife'

  • @user-kw9cu
    @user-kw9cu Před rokem

    the name is the P R I M E A G E N

  • @jaroslavhuss7813
    @jaroslavhuss7813 Před rokem +1

    ThePrimeagen spelled typescript calmly... WTF!!!!!!

  • @CuriousSpy
    @CuriousSpy Před rokem

    Typescript for Rust developers - npm package kirka

  • @thui09
    @thui09 Před rokem

    He’s coming 😂

  • @adrien-barret
    @adrien-barret Před rokem +8

    ok, a wife and 4 kids, how, how do you find time to do all theses stuff in addition of web content !! you're so blazzingly fast !

    • @linminsu3443
      @linminsu3443 Před rokem +2

      He said he was dealing with burnout during his period of making this, but then said that taking a break is counter productive and that he knew he'd be more satisfied when it's finished if he didn't take the break. Truly a different breed.

    • @adrien-barret
      @adrien-barret Před rokem

      @@linminsu3443 I can understand him, but still, the time... when you have just one kid, work time, home to clean / repair.... find time for personal project need lot of energy

    • @marceugeni
      @marceugeni Před rokem +2

      With a lot of money, that's it. This guy's a beast, hence he earns quadruple (minimum) of our salaries. For sure cleansing, shopping, tide up, laundries, and maintenance is done by someone else. I have two, but with that amount of money for sure I can have 2 more childs and have time for dinner and read them books and play and do the nice things not the uglies. ;DD

    • @stryyker9
      @stryyker9 Před rokem +2

      vim of course

    • @adrien-barret
      @adrien-barret Před rokem

      @@stryyker9 the only one good awnser !

  • @DavidFregoli
    @DavidFregoli Před rokem

    The name...

  • @ahmadjames151
    @ahmadjames151 Před rokem +2

    Can Rust make games ? 🤪🧐

  • @luca4479
    @luca4479 Před 8 měsíci

    ‘Return Value*5 ?? Undefined’ is easier

  • @bakenbard
    @bakenbard Před 11 měsíci

    0:26 - should I wear a hat or look like a hipster to enter this course?

  • @DaviAreias
    @DaviAreias Před rokem

    Rust turns all your bad code into good code, it’s a nightmare!

  • @HelloThere-xs8ss
    @HelloThere-xs8ss Před rokem

    Look how beautiful vim is

  • @toshevislombek
    @toshevislombek Před 3 měsíci

    Less symbols more words is java

  • @dacam29
    @dacam29 Před rokem

    Now do a Zig course 😂

  • @darkquaesar2460
    @darkquaesar2460 Před měsícem

    former netflix engineer*

  • @dripcaraybbx
    @dripcaraybbx Před 7 měsíci

    I may be in the minority but I found this video as a fellow man with four kids and a beautiful wife and am just peripherally aware of this coding thing at all

  • @aakarshan4644
    @aakarshan4644 Před rokem

    THE NAME ......

  • @max_ishere
    @max_ishere Před rokem

    Why does this look like an ad?

  • @MrLowbob
    @MrLowbob Před rokem +1

    "here is a rust course"
    *first seconds: let me casually namedrop vim*
    I like vim too, but i swear, sometimes vim users are like vegans ;D

  • @AdamButler-gv2gv
    @AdamButler-gv2gv Před rokem

    wait he isn't shouting?

  • @royz_1
    @royz_1 Před rokem +4

    This video is not endorsed by Rust

  • @chrisalexthomas
    @chrisalexthomas Před rokem

    Where is the incoherent screaming? TOKIOOOOOOOO!!

  • @phongphanthanh6878
    @phongphanthanh6878 Před rokem

    Why Frontend Masters need to learn Rust?

  • @EmielvanGoor
    @EmielvanGoor Před rokem +1

    Done. i'm signing up! My wife is going to **** me, goddammit there goes my time off ;-)

  • @isaacqadri
    @isaacqadri Před rokem

    existing

  • @BlueDippy
    @BlueDippy Před rokem +1

    😂😂😂😂😂

  • @Thorax232
    @Thorax232 Před rokem

    I'll take it this was recorded awhile ago. Maybe Zig for Typescript developers is next. 😂

  • @user-ov5nd1fb7s
    @user-ov5nd1fb7s Před rokem

    He hasn't shipped any Rust software but makes courses on Rust. Aham...

  • @iamworstgamer
    @iamworstgamer Před 8 měsíci

    to be honest after you watch kyle simpson no other teacher seems to be worth it. me be because i am such a stupid