Rust for TypeScript Developers by ThePrimeagen | Preview
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
It's funny to see ThePrimeagen that calm 😂
ông này là ai vậy
He tries so hard to keep it in check, and mostly succeeds, it’s very funny
Uncanny valley prime
You should've seen how he started randomly laughing after one of the class goers mentioned Figma
yayayayyaayayayayya tokioooo
In the strat of the video, i was like "thats not ThePrimeagen i know " and @ 0:36 'ya that the ThePrimeagen i know'
"vim btw" 30 seconds in .... i love this guy
The most ThePrimeagenish sentence you can imagine:
"Did you see how fast I deleted that? Vim btw"
Ps: I use vim btw
litterly burst out laughing when he said that
@@oscarhagman8247 same bro. I was eating and you probably know what happened next...
We use vim btw
Probably typed that comment in Vim
@@guyfromdubai wait you can type outside of vim?
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!
please censor the word as "j*v*script", we don't want to offend our master primeagen
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.
Lol same. I have twin daughters. That is PLENTY for me
im backend dev and father of 4 :) and glad that my favorite dev is also :)
What I was looking for. The fact that prime delivers the lesson in full hoodie uniform is what seals the deal.
Thank you Professor Doctor Prime
That defence of traits being localised was awesome, I'm pretty new to rust and didn't realise that!
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.
Prof Prime, the lost brother of Dr Disrespect.
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.
I would pay just to see Prime explaining himself for once, huge fan.
For a hot sec I thought this was AI generated or something but it only took 00:37 to know its real.
it's less than 1 minute and primeagen is already flexing vim
wow, amazing video! Just started to learn Rust as a TypeScript dev, and that last thing about scoped traits looks very impressive 🤯
I'm in the same boat, how's that going for you?
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
I'm sort of not prepared to see him this calm
Oh yesssss. This is what I needed!
I'd give anything for a Rust course side-by-side with C like this
mmm Crust
@@gercius 😁
Thanks for the lesson prime❤
That vim flex though, right of the bet... it killed me
Cool video.
Makes me feel like there is a long way to go.
But will try to keep up.
Rust looks great xD, I wish I had the opportunity to use it more in my work xD.
Quite nice demo of rust
12:31
I saw semicolon (";") in self * self (where f64 area is implemented in presentation)
"unwrap() sorry for cursing."
This is the right thing to do after using unwrap
11:43 that's mindblowing!
"Don't read the warnings, they'll ruin the surprise" is going in my next commit message
The one and only, going at it again
cool my fav rust youtuber
That was a sick video! I want to get a better job so my company would buy me this course 😂
0:22 its probably first time I see someone do a conference with a hood up
It's funny and interesting, I love this kind of vedio !
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 😂
Big fan of the Primeagne!
OMG ThePrimeagen!!
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.
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
Crablang for Soydevs!
* intensely soyfaces *
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.
Heeeey look who it is on FE masters!
anyone knows how he makes the error to appear in a neat box? timestamp 5:08
Professor ThePrimeagen
Intro music is dope
Go ThePrimeagen!!!!!!!!!!!!!!!!!!!!!!!!!!
I guess we're using the more widely-accepted Olive Oil instead of Coconut Oil in this case. I shall obey master Prime 🥥
What pill did he took??? I'm interested pm me
prime = GOAT
What font is he using?
Fira Code
Blazingly fast!
Is it blazingly fast?
Blazing! Great balls of fire, blazing!
❤ Rust
Professor Primeagen
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
Fecking love this guy!
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
Me:
Who are you?
ThePrimeagen:
I am a husband to a beautiful wife
Me:
okay, got that!
vim btw :)
My takeaway is not Rust here. It’s how fast editing is with Vim.
Why did u decide to skip showing how to handle the error?
Because this is more of a teaser. They sell courses.
Arch BTW transformed into I use Vim BTW...as expected.
Great stuff! Now, if only he'd stop using the explicit return statement where it's not necessary... That was killing me.
I like Rust, but I still have no idea where I can use it
Same, never touched anything besides web haha, you figured out?
@@_danisson even in web will easier node for web as fullstack, or need to use fullstack rust, but it's too hard
I dunno, it just feels wrong to see Prime speak so seriously without shouting "DEEZ NUTS" every 5 minutes...
please provide your vim and this course for free
really really need this .........can't afford though
Vim is free
@@felixs6795 is it
@@itsanurag1111 yes, vi, vim and neovim are all free open source software
It seems like he forgot to drink 5 liters or so of coffee
Who names their child ThePrimeagen?
ThePrimeagen’s parents?
Prime is the best
Who even is this guy? This is not the prime i know. 😂 This guy is calm and doing programming like an average guy.
oi prime there's someone using vs code in your room oi
"Vim by the way.... if you didn't know"
Lol what a nurd.
Wait for real?? I'm little confused
whats up with the hood
He always says 'beautiful wife'. When she bring him food he goes... 'Thanks beautiful wife... That's my beautiful wife'
the name is the P R I M E A G E N
ThePrimeagen spelled typescript calmly... WTF!!!!!!
Typescript for Rust developers - npm package kirka
He’s coming 😂
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 !
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.
@@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
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
vim of course
@@stryyker9 the only one good awnser !
The name...
Can Rust make games ? 🤪🧐
Yes but the tooling isn't there yet
‘Return Value*5 ?? Undefined’ is easier
0:26 - should I wear a hat or look like a hipster to enter this course?
Rust turns all your bad code into good code, it’s a nightmare!
Look how beautiful vim is
Less symbols more words is java
Now do a Zig course 😂
former netflix engineer*
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
THE NAME ......
Why does this look like an ad?
"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
wait he isn't shouting?
This video is not endorsed by Rust
😂
Where is the incoherent screaming? TOKIOOOOOOOO!!
Why Frontend Masters need to learn Rust?
Done. i'm signing up! My wife is going to **** me, goddammit there goes my time off ;-)
existing
😂😂😂😂😂
I'll take it this was recorded awhile ago. Maybe Zig for Typescript developers is next. 😂
He hasn't shipped any Rust software but makes courses on Rust. Aham...
to be honest after you watch kyle simpson no other teacher seems to be worth it. me be because i am such a stupid