Blazingly Fast JavaScript with ThePrimeagen | Preview

  Рет қаралды 100,514

Frontend Masters

Frontend Masters

Күн бұрын

Full Course:
Blazingly Fast JavaScript: frontendmasters.com/courses/b...
About this Course:
Make your code faster through benchmarking and optimization. Using a practical Web Sockets game demo, you'll learn to optimize memory and asynchronous JavaScript, testing and iterating throughout the course. You'll tackle garbage collection, memory profiling, data structures like sets and arrays, and event loop management. Gain advanced techniques such as employing memory pools and understanding Prime's philosophy of performance-driven programming, preparing you to write blazingly fast and efficient code!
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 & Course Description
0:35 - Refactoring Set to Array
8:00- Event Loops & Promises
14:16 - Optimizing Logging

Пікірлер: 151
@Kane0123
@Kane0123 2 ай бұрын
Watching in 2x to learn even more blazingly faster.
@lukedefreitas7930
@lukedefreitas7930 2 ай бұрын
Amazing
@AdamFiregate
@AdamFiregate 2 ай бұрын
Every time 😊
@Sakrosankt-Bierstube
@Sakrosankt-Bierstube 2 ай бұрын
Wrote a chrome addon to speedup the video 4x, just to learn even faster than even blazingly faster.
@nullbeyondo
@nullbeyondo 2 ай бұрын
@@Sakrosankt-Bierstube What if our brains become a bottleneck... skill-issue?
@amalvincent20
@amalvincent20 2 ай бұрын
me 4x
@lukedefreitas7930
@lukedefreitas7930 2 ай бұрын
"Engineer to a streaming giant. Husband to a beautiful wife. Father of 4 kids. King of the rustaceans. And I will have my vengeance against JavaScript frameworks in this life or the next."
@aslkdjfzxcv9779
@aslkdjfzxcv9779 2 ай бұрын
bravo
@romainvincent7346
@romainvincent7346 2 ай бұрын
@@aslkdjfzxcv9779 Gladiator mentionned, let's go!
@lukedefreitas7930
@lukedefreitas7930 2 ай бұрын
@@romainvincent7346 The name is.... Gladiatagen
@uuu12343
@uuu12343 2 ай бұрын
Prime is so chill here, im not used to it I'm uncomfortable
@rosyidharyadi7871
@rosyidharyadi7871 2 ай бұрын
Yeah, it looks like someone does deepfake his face or something
@TehKarmalizer
@TehKarmalizer 2 ай бұрын
Looks tired, tbh.
@Requiem100500
@Requiem100500 2 ай бұрын
Yeah it's rly weird not hearing him scream DEEZ NUTS every 30 seconds
@d_atura
@d_atura 2 ай бұрын
you can see that hes holding back so much
@skrypets
@skrypets 2 ай бұрын
Wait you had 3 kids, damn you're blazing fast...
@vicca4671
@vicca4671 2 ай бұрын
He's allocating memory _blazingly fast_
@darukutsu
@darukutsu 2 ай бұрын
but compiling was 9months
@phoenix-tt
@phoenix-tt 2 ай бұрын
​@@darukutsu It's IO bound
@forinda
@forinda 2 ай бұрын
Now ThePrimeagen is very humble. He's really intelligent🚀
@bombrman1994
@bombrman1994 2 ай бұрын
feels like a meme more than an actual course
@gauravkelkar8824
@gauravkelkar8824 2 ай бұрын
Just watching this course humbles me. I havent event scratched the surface
@robonator2945
@robonator2945 2 ай бұрын
I can't wait for his presentation on how to make the coldest fire or the hardest pillow.
@MrGeerye
@MrGeerye 2 ай бұрын
I love how the student learning is also learning how to grow a TheMoustagen moustache.
@ged9925
@ged9925 2 ай бұрын
So good!
@nikolaicholakov2798
@nikolaicholakov2798 2 ай бұрын
hahaah ThePrimeagen is such a character, love it
@maxwebstudio
@maxwebstudio 2 ай бұрын
Another amazing course
@TheHTMLCode
@TheHTMLCode 2 ай бұрын
Resubbing to FEM for this and primes 2nd algorithms course. Hype!
@OverPwng
@OverPwng 2 ай бұрын
Seeing Prime this calm is unnerving lmao
@rmbl349
@rmbl349 2 ай бұрын
He's like the Dr. Disrespect of programming. Humble guy playing his role.
@danielmajer1648
@danielmajer1648 2 ай бұрын
Tom has taught Prime. He is a genius.
@konfcyus4865
@konfcyus4865 2 ай бұрын
Dear FrontendMasters , please implement a regional pricing or course based pricing to your site , 39$ a month is a little steep price considering im only interested in some of the courses.
@C4CH3S
@C4CH3S 2 ай бұрын
39$ is a week of working where I live. I wanted to watch the svelte courses but for me it's extremely expensive.
@FrontendMasters
@FrontendMasters 2 ай бұрын
This is something we'd love to do. In the meantime, we do have a discount for countries with lower purchasing power! Email support@frontendmasters.com to inquire.
@C4CH3S
@C4CH3S 2 ай бұрын
@@FrontendMasters awesome. I will send email
@darkarie
@darkarie 2 ай бұрын
@@FrontendMastersI did send the mail and the response was the following: "We don't have any discounts or promotions available at this time."
@zalic
@zalic 2 ай бұрын
But why a subscription not a "buy once, own forever"?
@ujjawal_
@ujjawal_ 2 ай бұрын
the keyboard sound is amazing. Do anyone know which keyboard is this?
@kon-jakub
@kon-jakub 2 ай бұрын
LETS GO! LETS GO!
@leaodev
@leaodev 2 ай бұрын
I don't hava a moustache. Can I sill take this course? thanks
@abubakarsadeeq2974
@abubakarsadeeq2974 2 ай бұрын
Awesome
@DanielToebe
@DanielToebe 2 ай бұрын
I thought it was a joke at first, but it looks pretty good.
@pavloburyanov5842
@pavloburyanov5842 2 ай бұрын
omg, Primagen without a headphones!
@von.changfeng
@von.changfeng 2 ай бұрын
hahahah
@natescode
@natescode 2 ай бұрын
They must have drugged him to make that happen
@Pixlcaster
@Pixlcaster 2 ай бұрын
I wonder what diagraming tool he is using there. Looks cool
@jellyfish1772
@jellyfish1772 2 ай бұрын
I love you brother ❤
@zeebs7163
@zeebs7163 2 ай бұрын
hey, i like this tutor. He's so calm and composed. Does he have a youtube channel?
@ninlanalumni2233
@ninlanalumni2233 2 ай бұрын
Yup. ThePrimeagen
@AdamFiregate
@AdamFiregate 2 ай бұрын
It is so fast I needed to slow down the video tempo 😊
@justkant
@justkant 2 ай бұрын
Set to Array refactoring seems a bit misleading, grouping 3 loops into 1 and then going 3x faster I'm wondering what would be the result with the same loop and a set, probably still faster with the array tho
@AK-vx4dy
@AK-vx4dy 2 күн бұрын
@4:31 are you modyfing outer loop control value using i--(post decrement) ? it wii be very hard to understand for next person. From my personal experience using while for outer loop can give more understandable code in such case. But other way if some one will grasp what happen with array with this splicing he shoud grasp this too.
@haxxor7606
@haxxor7606 2 ай бұрын
How many dependencies does it take to support his mustacho?
@haxxor7606
@haxxor7606 2 ай бұрын
7 apparently
@haxxor7606
@haxxor7606 2 ай бұрын
9 now
@conorx3
@conorx3 2 ай бұрын
This looks pretty good. Will it get me a job at Netflix?
@bombrman1994
@bombrman1994 2 ай бұрын
NOPE
@excelnutcracker4312
@excelnutcracker4312 2 ай бұрын
yes and a free subscription /jk
@not_a_cool_handle
@not_a_cool_handle 2 ай бұрын
you look high my boi
@stefanosgiannakis7151
@stefanosgiannakis7151 2 ай бұрын
gold
@andrewnleon
@andrewnleon 2 ай бұрын
Really love this Prime great explanation from a master! Please dont use a gaming keyboard lol! Your key clicks are so loud!
@miguelduarte75
@miguelduarte75 2 ай бұрын
Maybe someone knows if there is this kind of analysis but for C#?
@TheD3adlysin
@TheD3adlysin 2 ай бұрын
FEMBOYZ for life!!
@9remi
@9remi 2 ай бұрын
dude i need this keyboard
@thegrumpydeveloper
@thegrumpydeveloper 2 ай бұрын
I hope there’s a chapter in the paid version that tells me how to grow a moustache half as good as prime’s.
@thefullstackproject
@thefullstackproject 2 ай бұрын
mouse left the conversation !!
@gavinvales8928
@gavinvales8928 2 ай бұрын
I clicked on this blazingly fast
@rawallon
@rawallon 2 ай бұрын
How much dos it cost
@nejathakan5521
@nejathakan5521 2 ай бұрын
I removed also all the BULLETS on the Back End to make Java Script even more BULLET PROOF BLAZINGLY fast.
@MarcosVinicius-zs7je
@MarcosVinicius-zs7je 2 ай бұрын
I'm just starting to learn programming and i'm focusing on javascript, it would be of great help if someone explain to me all that is happening on this video. what are those programs that he is using? What do they do? What are they purpose? How can i be good at it?where can i learn it? What are those (in my perspective)advanced programming functions that are in his code? Thanks in advance for everyone who takes the time to answer me.
@okie9025
@okie9025 2 ай бұрын
The program where you see him editing code is the Vim text editor - a special terminal text editor for advanced users where you memorize a bunch of ergonomic keystrokes for moving through the code which seem weird at first ("hjkl" instead of arrow keys for moving around) but supposedly make you faster at typing and moving through the code. Other alternatives are VSCode, Sublime Text, etc. The program which shows the graphs and which allows profiling is Google Chrome, specifically with the Chrome Dev Tools sidebar opened. This allows you to test your code for performance, network, and memory usage, along with much more. It has many options and is extremely useful. The place where he types things like "cargo run" or otherwise runs the actual programs is the terminal emulator - this is the most basic way to communicate with your computer where you type commands that run programs and give back results. The commands he runs are (I'm assuming) a benchmarking program written in Rust powered by the Cargo package manager, and the actual Node.js process itself which is being tested. He can run both of these commands at the same time by having 2 terminals opened. The website where he draws shapes in order to explain concepts is Excalidraw. The functions in his code (I'm assuming) are for a video game example program, or at least a simulation of a video game (you simulate things like player movement and shooting bullets but don't actually draw/render anything to the screen). The actual code itself seems to be written using classes and in a standard JS manner using modern ES6 methods and no special libraries. He uses a special "logger" variable in his code which I'm not sure is a 3rd party library or his own custom class, but all it does is write text to a file in a temporary directory in the system, which I'm not sure what is used for. There is also another file specifically for testing the code - this is where you see function calls like test() and expect(). This code runs a simulation of the main program (which is already a video game simulation - simulationception!) and tests whether certain variables are what they should be. For example if you add an item to an empty array, then we should expect that array to now have exactly one item. If not, the program exits and show you where you went wrong. These tests are hand-written and help you avoid mistakes in the logic of your code.
@MarcosVinicius-zs7je
@MarcosVinicius-zs7je 2 ай бұрын
@@okie9025 Man you helped alot! i will writte this down and study it in due time. Thanks man
@deluxe_1337
@deluxe_1337 2 ай бұрын
This is the first time I've seen his ears.
@user-ji8bh2by3f
@user-ji8bh2by3f 2 ай бұрын
Can you tell me the brand and model of the keyboard?
@Aabid789
@Aabid789 2 ай бұрын
and what about the name and model of the Editor 😜
@sametYi97
@sametYi97 2 ай бұрын
@@Aabid789I think he is using Vim
@henokhsatrio8804
@henokhsatrio8804 Ай бұрын
it's probably kinesis advantage pro. That brand is his favorite
@AK-vx4dy
@AK-vx4dy 2 күн бұрын
Skill is strong here. But is it for Masters who have unconcius skill issues by not knowing enough about funadamentals (Theo ;)?).
@steefen
@steefen 2 ай бұрын
step 1: grow a glorious moustache
@pratik_dev
@pratik_dev Ай бұрын
i need s1 e1
@douglascounts4634
@douglascounts4634 2 ай бұрын
CHROOT!!!
@douglascounts4634
@douglascounts4634 2 ай бұрын
Father of the "Gang of Four"
@arnesl929
@arnesl929 2 ай бұрын
I like for loops😂
@doyoufeel...thatyoulackcri6760
@doyoufeel...thatyoulackcri6760 2 ай бұрын
In raw machine code you can do branch on zero and save a clock cycle instead of first doing a comparison and then branch on equal, can you do that with javascript too, by counting downwards instead of upwards?
@bleakCode
@bleakCode 2 ай бұрын
"I wrote one unit test, one integeration test. Might not work on mac. It just spawns bunches of processes and one zombie process". LMAO can't stop laughing
@aaaaanh
@aaaaanh 2 ай бұрын
Where’s my unhinged primeagen? Is this the calm before the storm that absolutely blued his hair? 😭
@RobertDogo
@RobertDogo 2 ай бұрын
Only works if you use vim btw
@allesarfint
@allesarfint 2 ай бұрын
FEM I just want to notice that the renders have the wrong hair color, you should redo it with the correct one.
@shrimpoffthebarbie
@shrimpoffthebarbie 2 ай бұрын
What game?
@oleksiistri8429
@oleksiistri8429 2 ай бұрын
I love for loops with index and hate foreach, am I the only one?
@thygrrr
@thygrrr 2 ай бұрын
Hello Off-by-One-Prime, I'm Naming-Things-Tiger.
@AB-kq9xm
@AB-kq9xm 2 ай бұрын
Wheres the jsx bro
@philadams9254
@philadams9254 2 ай бұрын
Where are his headphones???? 😮😮
@kapraltygrys2603
@kapraltygrys2603 2 ай бұрын
when you need to teach basic loop and sell it as "something normal" the society has already fallen, no kidding
@kapraltygrys2603
@kapraltygrys2603 2 ай бұрын
array's live matter
@bobanmilisavljevic7857
@bobanmilisavljevic7857 2 ай бұрын
Whos this brown hair guy?
@electrolyteorb
@electrolyteorb 2 ай бұрын
Dont know... Ai or something?
@AdamFiregate
@AdamFiregate 2 ай бұрын
The Brownagen
@powerofpavan7710
@powerofpavan7710 2 ай бұрын
robot
@DaviAreias
@DaviAreias 2 ай бұрын
He’s the CEO of neovim
@nullbeyondo
@nullbeyondo 2 ай бұрын
Lmfao, because he died his hair blue recently
@matthewrossee
@matthewrossee 2 ай бұрын
"people hate this idea of for loops", it's amazing how javascript contaminated the programming world, people would rather spawn some closure bois instead of just using a base programming concept
@prodbybence8882
@prodbybence8882 2 ай бұрын
W
@foqsi_
@foqsi_ 2 ай бұрын
I don't even know wtf he doing in vim.
@Triplechomending
@Triplechomending 2 ай бұрын
when watching on 2x is not enough
@bleakCode
@bleakCode 2 ай бұрын
Great meme
@alltheserobotsshallfall
@alltheserobotsshallfall 2 ай бұрын
using the hoodie indoors makes you look extremely silly. i mean, EXTREMELY silly.
@dytra_io
@dytra_io 2 ай бұрын
bro, where's the game
@AdamS-lo9mr
@AdamS-lo9mr 2 ай бұрын
I cannot imagine being so allergic to a for loop
@weeb3277
@weeb3277 2 ай бұрын
blazing or blazingly? 🤔 i think one of them is a bit more efficient... if you catch my drift...
@vhaangol4785
@vhaangol4785 2 ай бұрын
Uncanny-valley-eagen
@wlockuz4467
@wlockuz4467 2 ай бұрын
Didn't say "btw" after saying he works at Netflix. I think they got the bootleg Prime.
@josematos1695
@josematos1695 2 ай бұрын
Why primagean dressed like a jedi?
@cameronadams4366
@cameronadams4366 2 ай бұрын
I still dont understand why people roast 'class' in JavaScript/TypeScript. How would you code a game like this without 'class'
@oopss794
@oopss794 2 ай бұрын
blazingly beautiful wife
@klirmio21
@klirmio21 2 ай бұрын
no blue hair 😭😭😭😭
@viniciusmorgado9722
@viniciusmorgado9722 2 ай бұрын
No waifu background?
@13odman
@13odman 2 ай бұрын
Dude needs to reduce the adhd meds a few mg
@AdiktdToLoli
@AdiktdToLoli 2 ай бұрын
Who the heck is this person... he's not the utubr i know 😅
@dangallagher6176
@dangallagher6176 2 ай бұрын
This "father of 4 kids" thing is getting boring, make some more kids man. "father of a small platoon of 13 children" has a much better ring to it
@douglascounts4634
@douglascounts4634 2 ай бұрын
Father of the "Gang of Four" though sounds even better.
@gravityshark580
@gravityshark580 2 ай бұрын
he can pump them out blazingly fast
@elvispalace
@elvispalace 2 ай бұрын
who? i mean. that guy doesn't seems prime
@noext7001
@noext7001 2 ай бұрын
prime coding oop ? is this a deep fake ?
@douglascounts4634
@douglascounts4634 2 ай бұрын
Yes....
@desireco
@desireco 2 ай бұрын
He screams a lot, I just can't...
@MorRobots
@MorRobots 2 ай бұрын
Lol the intro Cringe... lol. It's almost so bad it's good.... almost.
@bitmanagent67
@bitmanagent67 2 ай бұрын
Fkn hate JavaScript. It is like God was mad at devs and created JavaScript as punishment.
@thygrrr
@thygrrr 2 ай бұрын
And those devs deserved it.
@idlesky
@idlesky 2 ай бұрын
wtf is this, its not JavaScript, its TS
@xoskvr
@xoskvr 2 ай бұрын
and what is TS? the javascript.
@idlesky
@idlesky 2 ай бұрын
no, TS is per definition not JavaScript. you can arguee it is, but the language specification proofs its not. Most TS code cannot be executed in an ECMASctipt engine and that is the requirement, whatever you like it or not.
@xoskvr
@xoskvr 2 ай бұрын
@@idlesky ts is superset of js
@idlesky
@idlesky 2 ай бұрын
@xoskvr its not. its it however popular myth. Every expirenced developer knows TS is a limitation if you are good. it produce more bugs, slow down development and add a bunch of complexity. Even Microsoft knows it themselves. It only shine if you are medium/avarage in skill.
@xoskvr
@xoskvr 2 ай бұрын
@@idlesky if you are that experienced, why you watch primeagen 💀💀💀 ts is superset of js and stop arguing
@humansaremortal3803
@humansaremortal3803 2 ай бұрын
Don't believe his lies.
@havocthehobbit
@havocthehobbit 2 ай бұрын
I was just about to ask how many jobs does "The Prime.." have , but now that his intro has told us that he has 4 children, I kind of understand why , he's at Netflix, Posting Twitch/YT vids every day and creates courses like this ,...kids chew on finances . Lucky man but it must be such hard work keeping up with all of that and a big family.
@bandinopla
@bandinopla 2 ай бұрын
why you have to say you are a "husband" and a "father" like if that would have any relevance on what you do as a developer? why not say you have a mustache also? add more irrelevant shit while you're at it.
Rust for TypeScript Developers by ThePrimeagen | Preview
14:59
Frontend Masters
Рет қаралды 95 М.
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 553 М.
ТОМАТНЫЙ ДОЖДЬ #shorts
00:28
Паша Осадчий
Рет қаралды 9 МЛН
КАКАЯ ХИТРАЯ КОШКА! #cat #funny #pets
00:50
SOFIADELMONSTRO
Рет қаралды 16 МЛН
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Рет қаралды 1,6 МЛН
[실시간] 전철에서 찍힌 기생생물 감염 장면 | 기생수: 더 그레이
00:15
Netflix Korea 넷플릭스 코리아
Рет қаралды 37 МЛН
Building the Formula 1 App with React Native
3:58:45
notJust․dev
Рет қаралды 205 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 282 М.
This Algorithm is 1,606,240% FASTER
13:31
ThePrimeagen
Рет қаралды 693 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 204 М.
How Slow Is JavaScript? | Prime Reacts
15:34
ThePrimeTime
Рет қаралды 164 М.
Technical Neglect - Kevlin Henney - NDC London 2024
1:07:18
NDC Conferences
Рет қаралды 13 М.
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,2 МЛН
5 Uncommon Python Features I Love
15:09
Indently
Рет қаралды 111 М.
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 35 М.
ТОМАТНЫЙ ДОЖДЬ #shorts
00:28
Паша Осадчий
Рет қаралды 9 МЛН