Blazingly Fast JavaScript with ThePrimeagen | Preview

Поділитися
Вставка
  • Опубліковано 7 чер 2024
  • 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

КОМЕНТАРІ • 152

  • @Kane0123
    @Kane0123 4 місяці тому +603

    Watching in 2x to learn even more blazingly faster.

    • @lukedefreitas7930
      @lukedefreitas7930 4 місяці тому +3

      Amazing

    • @AdamFiregate
      @AdamFiregate 4 місяці тому

      Every time 😊

    • @Sakrosankt-Bierstube
      @Sakrosankt-Bierstube 4 місяці тому +10

      Wrote a chrome addon to speedup the video 4x, just to learn even faster than even blazingly faster.

    • @nullbeyondo
      @nullbeyondo 4 місяці тому +5

      @@Sakrosankt-Bierstube What if our brains become a bottleneck... skill-issue?

    • @amalvincent20
      @amalvincent20 4 місяці тому

      me 4x

  • @lukedefreitas7930
    @lukedefreitas7930 4 місяці тому +215

    "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."

  • @uuu12343
    @uuu12343 4 місяці тому +241

    Prime is so chill here, im not used to it
    I'm uncomfortable

    • @rosyidharyadi7871
      @rosyidharyadi7871 4 місяці тому +7

      Yeah, it looks like someone does deepfake his face or something

    • @TehKarmalizer
      @TehKarmalizer 4 місяці тому

      Looks tired, tbh.

    • @Requiem100500
      @Requiem100500 4 місяці тому +5

      Yeah it's rly weird not hearing him scream DEEZ NUTS every 30 seconds

    • @d_atura
      @d_atura 3 місяці тому

      you can see that hes holding back so much

  • @skrypets
    @skrypets 4 місяці тому +74

    Wait you had 3 kids, damn you're blazing fast...

    • @vicca4671
      @vicca4671 4 місяці тому +4

      He's allocating memory _blazingly fast_

    • @darukutsu
      @darukutsu 4 місяці тому +5

      but compiling was 9months

    • @phoenix-tt
      @phoenix-tt 3 місяці тому +1

      ​@@darukutsu It's IO bound

  • @bombrman1994
    @bombrman1994 4 місяці тому +44

    feels like a meme more than an actual course

  • @forinda
    @forinda 4 місяці тому +24

    Now ThePrimeagen is very humble. He's really intelligent🚀

  • @gauravkelkar8824
    @gauravkelkar8824 4 місяці тому +5

    Just watching this course humbles me. I havent event scratched the surface

  • @robonator2945
    @robonator2945 4 місяці тому +15

    I can't wait for his presentation on how to make the coldest fire or the hardest pillow.

  • @MrGeerye
    @MrGeerye 4 місяці тому +10

    I love how the student learning is also learning how to grow a TheMoustagen moustache.

  • @maxwebstudio
    @maxwebstudio 4 місяці тому

    Another amazing course

  • @ged9925
    @ged9925 4 місяці тому +3

    So good!

  • @nikolaicholakov2798
    @nikolaicholakov2798 4 місяці тому +9

    hahaah ThePrimeagen is such a character, love it

  • @TheHTMLCode
    @TheHTMLCode 4 місяці тому

    Resubbing to FEM for this and primes 2nd algorithms course. Hype!

  • @ujjawal_
    @ujjawal_ 3 місяці тому +1

    the keyboard sound is amazing. Do anyone know which keyboard is this?

  • @leaodev
    @leaodev 4 місяці тому +4

    I don't hava a moustache. Can I sill take this course? thanks

  • @zalic
    @zalic 4 місяці тому +5

    But why a subscription not a "buy once, own forever"?

  • @Pixlcaster
    @Pixlcaster 4 місяці тому +1

    I wonder what diagraming tool he is using there. Looks cool

  • @kon-jakub
    @kon-jakub 4 місяці тому

    LETS GO! LETS GO!

  • @OverPwng
    @OverPwng 4 місяці тому +1

    Seeing Prime this calm is unnerving lmao

  • @konfcyus4865
    @konfcyus4865 4 місяці тому +13

    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 4 місяці тому +4

      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  4 місяці тому +12

      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 4 місяці тому +1

      @@FrontendMasters awesome. I will send email

    • @darkarie
      @darkarie 4 місяці тому +8

      @@FrontendMastersI did send the mail and the response was the following: "We don't have any discounts or promotions available at this time."

  • @rmbl349
    @rmbl349 4 місяці тому +1

    He's like the Dr. Disrespect of programming. Humble guy playing his role.

  • @DanielToebe
    @DanielToebe 4 місяці тому +1

    I thought it was a joke at first, but it looks pretty good.

  • @justkant
    @justkant 4 місяці тому

    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 Місяць тому

    @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.

  • @abubakarsadeeq2974
    @abubakarsadeeq2974 4 місяці тому +1

    Awesome

  • @danielmajer1648
    @danielmajer1648 4 місяці тому

    Tom has taught Prime. He is a genius.

  • @zeebs7163
    @zeebs7163 4 місяці тому +2

    hey, i like this tutor. He's so calm and composed. Does he have a youtube channel?

  • @miguelduarte75
    @miguelduarte75 4 місяці тому

    Maybe someone knows if there is this kind of analysis but for C#?

  • @pavloburyanov5842
    @pavloburyanov5842 4 місяці тому +9

    omg, Primagen without a headphones!

    • @von.changfeng
      @von.changfeng 4 місяці тому

      hahahah

    • @natescode
      @natescode 4 місяці тому

      They must have drugged him to make that happen

  • @AdamFiregate
    @AdamFiregate 4 місяці тому +2

    It is so fast I needed to slow down the video tempo 😊

  • @rawallon
    @rawallon 4 місяці тому

    How much dos it cost

  • @jellyfish1772
    @jellyfish1772 3 місяці тому +1

    I love you brother ❤

  • @stefanosgiannakis7151
    @stefanosgiannakis7151 4 місяці тому

    gold

  • @andrewnleon
    @andrewnleon 4 місяці тому

    Really love this Prime great explanation from a master! Please dont use a gaming keyboard lol! Your key clicks are so loud!

  • @haxxor7606
    @haxxor7606 4 місяці тому +9

    How many dependencies does it take to support his mustacho?

  • @conorx3
    @conorx3 4 місяці тому +7

    This looks pretty good. Will it get me a job at Netflix?

  • @thegrumpydeveloper
    @thegrumpydeveloper 4 місяці тому +1

    I hope there’s a chapter in the paid version that tells me how to grow a moustache half as good as prime’s.

  • @not_a_cool_handle
    @not_a_cool_handle 4 місяці тому +1

    you look high my boi

  • @steefen
    @steefen 4 місяці тому +2

    step 1: grow a glorious moustache

  • @9remi
    @9remi 4 місяці тому

    dude i need this keyboard

  • @shrimpoffthebarbie
    @shrimpoffthebarbie 4 місяці тому

    What game?

  • @AK-vx4dy
    @AK-vx4dy Місяць тому

    Skill is strong here.
    But is it for Masters who have unconcius skill issues by not knowing enough about funadamentals (Theo ;)?).

  • @deluxe_1337
    @deluxe_1337 4 місяці тому +3

    This is the first time I've seen his ears.

  • @RobertDogo
    @RobertDogo 4 місяці тому

    Only works if you use vim btw

  • @MarcosVinicius-zs7je
    @MarcosVinicius-zs7je 4 місяці тому +1

    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 4 місяці тому +3

      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 4 місяці тому +1

      @@okie9025 Man you helped alot! i will writte this down and study it in due time. Thanks man

  • @pratik_dev
    @pratik_dev 3 місяці тому

    i need s1 e1

  • @TheD3adlysin
    @TheD3adlysin 4 місяці тому

    FEMBOYZ for life!!

  • @user-ji8bh2by3f
    @user-ji8bh2by3f 4 місяці тому

    Can you tell me the brand and model of the keyboard?

    • @Aabid789
      @Aabid789 4 місяці тому

      and what about the name and model of the Editor 😜

    • @sametYi97
      @sametYi97 4 місяці тому

      @@Aabid789I think he is using Vim

    • @henokhsatrio8804
      @henokhsatrio8804 2 місяці тому

      it's probably kinesis advantage pro. That brand is his favorite

  • @nejathakan5521
    @nejathakan5521 4 місяці тому

    I removed also all the BULLETS on the Back End to make Java Script even more BULLET PROOF BLAZINGLY fast.

  • @AB-kq9xm
    @AB-kq9xm 3 місяці тому

    Wheres the jsx bro

  • @gavinvales8928
    @gavinvales8928 4 місяці тому

    I clicked on this blazingly fast

  • @thefullstackproject
    @thefullstackproject 4 місяці тому

    mouse left the conversation !!

  • @allesarfint
    @allesarfint 4 місяці тому

    FEM I just want to notice that the renders have the wrong hair color, you should redo it with the correct one.

  • @oleksiistri8429
    @oleksiistri8429 4 місяці тому

    I love for loops with index and hate foreach, am I the only one?

  • @douglascounts4634
    @douglascounts4634 4 місяці тому

    Father of the "Gang of Four"

  • @prodbybence8882
    @prodbybence8882 4 місяці тому

    W

  • @philadams9254
    @philadams9254 4 місяці тому

    Where are his headphones???? 😮😮

  • @aaaaanh
    @aaaaanh 4 місяці тому

    Where’s my unhinged primeagen? Is this the calm before the storm that absolutely blued his hair? 😭

  • @arnesl929
    @arnesl929 4 місяці тому +2

    I like for loops😂

    • @AntiAtheismIsUnstoppable
      @AntiAtheismIsUnstoppable 4 місяці тому

      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 4 місяці тому

    "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

  • @douglascounts4634
    @douglascounts4634 4 місяці тому

    CHROOT!!!

  • @dytra_io
    @dytra_io 4 місяці тому

    bro, where's the game

  • @kapraltygrys2603
    @kapraltygrys2603 4 місяці тому +8

    when you need to teach basic loop and sell it as "something normal" the society has already fallen, no kidding

  • @thygrrr
    @thygrrr 4 місяці тому

    Hello Off-by-One-Prime, I'm Naming-Things-Tiger.

  • @matthewrossee
    @matthewrossee 4 місяці тому +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

  • @foqsi_
    @foqsi_ 4 місяці тому +3

    I don't even know wtf he doing in vim.

  • @bobanmilisavljevic7857
    @bobanmilisavljevic7857 4 місяці тому +12

    Whos this brown hair guy?

  • @weeb3277
    @weeb3277 4 місяці тому +1

    blazing or blazingly? 🤔
    i think one of them is a bit more efficient... if you catch my drift...

  • @vhaangol4785
    @vhaangol4785 4 місяці тому

    Uncanny-valley-eagen

  • @bleakCode
    @bleakCode 4 місяці тому

    Great meme

  • @josematos1695
    @josematos1695 4 місяці тому

    Why primagean dressed like a jedi?

  • @wlockuz4467
    @wlockuz4467 4 місяці тому +1

    Didn't say "btw" after saying he works at Netflix. I think they got the bootleg Prime.

  • @alltheserobotsshallfall
    @alltheserobotsshallfall 4 місяці тому

    using the hoodie indoors makes you look extremely silly. i mean, EXTREMELY silly.

  • @AdamS-lo9mr
    @AdamS-lo9mr 4 місяці тому

    I cannot imagine being so allergic to a for loop

  • @cameronadams4366
    @cameronadams4366 4 місяці тому

    I still dont understand why people roast 'class' in JavaScript/TypeScript. How would you code a game like this without 'class'

  • @Triplechomending
    @Triplechomending 4 місяці тому

    when watching on 2x is not enough

  • @oopss794
    @oopss794 4 місяці тому +2

    blazingly beautiful wife

  • @viniciusmorgado9722
    @viniciusmorgado9722 4 місяці тому

    No waifu background?

  • @klirmio21
    @klirmio21 4 місяці тому

    no blue hair 😭😭😭😭

  • @13odman
    @13odman 4 місяці тому

    Dude needs to reduce the adhd meds a few mg

  • @AdiktdToLoli
    @AdiktdToLoli 4 місяці тому

    Who the heck is this person... he's not the utubr i know 😅

  • @elvispalace
    @elvispalace 4 місяці тому

    who? i mean. that guy doesn't seems prime

  • @dangallagher6176
    @dangallagher6176 4 місяці тому +4

    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 4 місяці тому +1

      Father of the "Gang of Four" though sounds even better.

    • @gravityshark580
      @gravityshark580 4 місяці тому

      he can pump them out blazingly fast

  • @noext7001
    @noext7001 4 місяці тому +2

    prime coding oop ? is this a deep fake ?

  • @MorRobots
    @MorRobots 4 місяці тому

    Lol the intro Cringe... lol. It's almost so bad it's good.... almost.

  • @desireco
    @desireco 4 місяці тому

    He screams a lot, I just can't...

  • @havocthehobbit
    @havocthehobbit 3 місяці тому

    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.

  • @bitmanagent67
    @bitmanagent67 4 місяці тому

    Fkn hate JavaScript. It is like God was mad at devs and created JavaScript as punishment.

    • @thygrrr
      @thygrrr 4 місяці тому

      And those devs deserved it.

  • @humansaremortal3803
    @humansaremortal3803 4 місяці тому

    Don't believe his lies.

  • @idlesky
    @idlesky 4 місяці тому

    wtf is this, its not JavaScript, its TS

    • @xoskvr
      @xoskvr 4 місяці тому

      and what is TS? the javascript.

    • @idlesky
      @idlesky 4 місяці тому

      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 4 місяці тому

      @@idlesky ts is superset of js

    • @idlesky
      @idlesky 4 місяці тому

      @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 4 місяці тому

      @@idlesky if you are that experienced, why you watch primeagen 💀💀💀 ts is superset of js and stop arguing

  • @bandinopla
    @bandinopla 4 місяці тому +1

    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.