"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."
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.
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.
"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
@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.
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.
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.
"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
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
The answer to your question is both simple and stupidly non-performant: you use functions that return either objects or object properties, then compose them together. const name = (x) => { name: x } const bullets = (y) => { bullets: [y] }; const makeGuy = (x,y) => { name(x), bullets(num) }; const partyLeader = makeGuy( Morpheus, 100000 ); To be fair, composition is both a clever and “functional” approach. If you like that, you need a clever functional language. Otherwise you’re just doing dumb fringe sh*t.
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?
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.
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.
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 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.
Watching in 2x to learn even more blazingly faster.
Amazing
Every time 😊
Wrote a chrome addon to speedup the video 4x, just to learn even faster than even blazingly faster.
@@Sakrosankt-Bierstube What if our brains become a bottleneck... skill-issue?
@@nullbeyondogenetic issue
"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."
bravo
@@aslkdjfzxcv9779 Gladiator mentionned, let's go!
@@TheAxeForgetsTheTreeRemembers The name is.... Gladiatagen
Prime is so chill here, im not used to it
I'm uncomfortable
Yeah, it looks like someone does deepfake his face or something
Looks tired, tbh.
Yeah it's rly weird not hearing him scream DEEZ NUTS every 30 seconds
you can see that hes holding back so much
@@rosyidharyadi7871 True man
Wait you had 3 kids, damn you're blazing fast...
He's allocating memory _blazingly fast_
but compiling was 9months
@@darukutsu It's IO bound
Now ThePrimeagen is very humble. He's really intelligent🚀
Just watching this course humbles me. I havent event scratched the surface
I can't wait for his presentation on how to make the coldest fire or the hardest pillow.
I love how the student learning is also learning how to grow a TheMoustagen moustache.
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.
39$ is a week of working where I live. I wanted to watch the svelte courses but for me it's extremely expensive.
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.
@@FrontendMasters awesome. I will send email
@@FrontendMastersI did send the mail and the response was the following: "We don't have any discounts or promotions available at this time."
feels like a meme more than an actual course
But why a subscription not a "buy once, own forever"?
hahaah ThePrimeagen is such a character, love it
hey, i like this tutor. He's so calm and composed. Does he have a youtube channel?
Yup. ThePrimeagen
I wonder what diagraming tool he is using there. Looks cool
This looks pretty good. Will it get me a job at Netflix?
NOPE
yes and a free subscription /jk
omg, Primagen without a headphones!
hahahah
They must have drugged him to make that happen
How many dependencies does it take to support his mustacho?
7 apparently
9 now
I don't hava a moustache. Can I sill take this course? thanks
He's like the Dr. Disrespect of programming. Humble guy playing his role.
Resubbing to FEM for this and primes 2nd algorithms course. Hype!
"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
Seeing Prime this calm is unnerving lmao
the keyboard sound is amazing. Do anyone know which keyboard is this?
I love you brother ❤
Tom has taught Prime. He is a genius.
Another amazing course
I hope there’s a chapter in the paid version that tells me how to grow a moustache half as good as prime’s.
Really love this Prime great explanation from a master! Please dont use a gaming keyboard lol! Your key clicks are so loud!
@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.
So good!
Skill is strong here.
But is it for Masters who have unconcius skill issues by not knowing enough about funadamentals (Theo ;)?).
This is the first time I've seen his ears.
step 1: grow a glorious moustache
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.
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.
@@okie9025 Man you helped alot! i will writte this down and study it in due time. Thanks man
"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
LETS GO! LETS GO!
I thought it was a joke at first, but it looks pretty good.
It is so fast I needed to slow down the video tempo 😊
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
Where’s my unhinged primeagen? Is this the calm before the storm that absolutely blued his hair? 😭
when you need to teach basic loop and sell it as "something normal" the society has already fallen, no kidding
array's live matter
I love for loops with index and hate foreach, am I the only one?
blazing or blazingly? 🤔
i think one of them is a bit more efficient... if you catch my drift...
Didn't say "btw" after saying he works at Netflix. I think they got the bootleg Prime.
Wheres the jsx bro
Only works if you use vim btw
FEM I just want to notice that the renders have the wrong hair color, you should redo it with the correct one.
Maybe someone knows if there is this kind of analysis but for C#?
you look high my boi
I removed also all the BULLETS on the Back End to make Java Script even more BULLET PROOF BLAZINGLY fast.
How much dos it cost
Awesome
Whos this brown hair guy?
Dont know... Ai or something?
The Brownagen
robot
He’s the CEO of neovim
Lmfao, because he died his hair blue recently
i need s1 e1
First. You need to rock a mustache to be blazing fast
I clicked on this blazingly fast
Father of the "Gang of Four"
Where are his headphones???? 😮😮
I don't even know wtf he doing in vim.
What game?
mouse left the conversation !!
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
Father of the "Gang of Four" though sounds even better.
he can pump them out blazingly fast
Can you tell me the brand and model of the keyboard?
and what about the name and model of the Editor 😜
it's probably kinesis advantage pro. That brand is his favorite
bro, where's the game
FEMBOYZ for life!!
dude i need this keyboard
I still dont understand why people roast 'class' in JavaScript/TypeScript. How would you code a game like this without 'class'
The answer to your question is both simple and stupidly non-performant: you use functions that return either objects or object properties, then compose them together.
const name = (x) => { name: x }
const bullets = (y) => { bullets: [y] };
const makeGuy = (x,y) => { name(x), bullets(num) };
const partyLeader = makeGuy( Morpheus, 100000 );
To be fair, composition is both a clever and “functional” approach. If you like that, you need a clever functional language. Otherwise you’re just doing dumb fringe sh*t.
Hello Off-by-One-Prime, I'm Naming-Things-Tiger.
I like for loops😂
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?
gold
No waifu background?
when watching on 2x is not enough
I cannot imagine being so allergic to a for loop
blazingly beautiful wife
Why primagean dressed like a jedi?
Great meme
CHROOT!!!
who? i mean. that guy doesn't seems prime
Dude needs to reduce the adhd meds a few mg
no blue hair 😭😭😭😭
W
prime coding oop ? is this a deep fake ?
Yes....
Lol the intro Cringe... lol. It's almost so bad it's good.... almost.
He screams a lot, I just can't...
Uncanny-valley-eagen
Don't believe his lies.
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.
Fkn hate JavaScript. It is like God was mad at devs and created JavaScript as punishment.
And those devs deserved it.
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.
wtf is this, its not JavaScript, its TS
and what is TS? the javascript.
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.
@@idlesky ts is superset of js
@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.
@@idlesky if you are that experienced, why you watch primeagen 💀💀💀 ts is superset of js and stop arguing
Who the heck is this person... he's not the utubr i know 😅