Understanding the Complexity of Modern Web Dev Stack (Webpack, Babel, TypeScript, React)

  Рет қаралды 34,521

Lachlan Miller

Lachlan Miller

Күн бұрын

A look back on ye old days, where we came from, and how we ended up in this mess. Few mistakes, can you really blame me? 😇 TIMESTAMPS:
1:00 In the beginning
3:00 JS all the things
5:28 Babel
9:00 Introducing Webpack
14:20 Babel with Webpack
16:00 React (no JSX)
19:00 JSX all the things
21:50 TypeScript and TSX
24:17 Bundle all the things... CSS imports
🐦 Twitter: / lachlan19900
👉 Complete Vue.js 3 30% OFF!! www.udemy.com/...
💯 My course "Typing the Test Suite" www.udemy.com/...

Пікірлер: 170
@lotharmohlala851
@lotharmohlala851 2 жыл бұрын
This is absolutely brilliant. Attaching a storyline to this was genius. This is how everyone learns; through context and use cases. Keep to this style of tutorials and this channel will sky rocket. Well done 💯
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Thanks Lothar!
@_SoundByte_
@_SoundByte_ Жыл бұрын
History in tech is important. Someone needs to do a video of the history of the internet (from a network point of view)
@menglin7432
@menglin7432 5 ай бұрын
Now this is something I'd highly recommend any JS developer to watch
@brentleemans
@brentleemans Жыл бұрын
Amazing video! With every part you explained WHY something was needed. This is missing in most of explanation videos on the internet. Thank you!
@marianrys316
@marianrys316 3 жыл бұрын
Great stuff! Thank you ! In less than 30 min you fast-forwarded me from the 90's to modern era :)
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Thanks ⚡️
@narayan1509
@narayan1509 2 жыл бұрын
One of the best video I come across while searching for basics
@johnphillips8600
@johnphillips8600 3 жыл бұрын
This is the best explanation I've come across... Most videos are too long and too minified. Thank you for this ❤️
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Glad you found it useful!
@pkproductions1623
@pkproductions1623 Жыл бұрын
This video is awesome. In just 25 minutes you explained the whole modern javascript paradox. How a simple button click in JavaScript is evolved to be so complex. Thanks a lot it made me understand concepts that are very confusing.
@paperC_CSGO
@paperC_CSGO 9 ай бұрын
The video I have been looking for as a junior developer - to actually try and understand the bigger picture and fundementals. Please make more of these type of videos! You are hitting a much neglected part of the web development KZbin tutorial/course/explainer videos market!
@LachlanMiller
@LachlanMiller 9 ай бұрын
Thank you! I'l do my best, glad it helped you, good luck!!
@Speglritz
@Speglritz 3 жыл бұрын
We transpile typescript to javascript then transpile javascript to older versions of javasript for wider browser support and then the browers JIT compile the javascript it loads to run the actual code. Even without webpack, different loaders, webassembly and the other stuff going on it's complex enough.
@jfsimard2
@jfsimard2 Жыл бұрын
Rare you can have a history Today. Big picture is always forgotten making if difficult to get clarity. Thank you for taking the time to do it.
@XpressBits
@XpressBits 9 ай бұрын
Best tutorial watched in the recent days.. Precise and no BS... you got a great teaching skills, mate! Please keep doing the videos..
@LachlanMiller
@LachlanMiller 9 ай бұрын
thanks!!
@michaelhashimoto1650
@michaelhashimoto1650 Жыл бұрын
This is amazing.. front end is so crazy…. Thanks for bridging the gap!
@LachlanMiller
@LachlanMiller Жыл бұрын
Give m a like/sub, announcement soon but I'm going to be making a course/book going way deeper on frontend tooling!
@soumyasagar2305
@soumyasagar2305 27 күн бұрын
Never had I understood babel soo deeply. Kudos to you man!!
@uchihai_a_h4871
@uchihai_a_h4871 Жыл бұрын
now finally all the dots got connected... brilliant mate !
@AkshyatChapagain
@AkshyatChapagain 5 ай бұрын
Just amazing, every new person getting into web dev should watch this video. I can't believe you don't have more subscribers.
@LachlanMiller
@LachlanMiller 5 ай бұрын
thanks!
@karanuday6803
@karanuday6803 20 күн бұрын
THIS IS AMAZING!!! I've been looking for a way to trace and understand the journey to our current setup and there's just so many different parts to it that I've just never managed to understand how all fell into place. This video explains all of that in almost an ELI5 way and covers almost everything needed! Thank you so much for this!
@贺彦文
@贺彦文 11 ай бұрын
This video is really helpful to me. When I dive into Huge numbers of libraries from single page with HTML CSS JS. it really drive me crazy. But thank your sharing. I understand a lot and get a clearness feel.
@Usmankhaled
@Usmankhaled 8 ай бұрын
Absolutely brilliant. Seems like you witnessed everything as if you yourself was a kernel routing and directing every piece to work together just like that :)
@okamianimes8190
@okamianimes8190 11 ай бұрын
this is just beautiful, i had a lot of troubles understanding what webpack, babel were, and where are they exactly used, but this video just puts everything together in a brilliant way, thank you for the video
@LachlanMiller
@LachlanMiller 11 ай бұрын
No problem, glad you found it useful!
@aashisrimal7379
@aashisrimal7379 3 жыл бұрын
Great video on how modern web development has evolved.
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Thanks :D
@reralt
@reralt 10 ай бұрын
This was so good. All the confusion regarding modern web cleared in one video ! Thanks a lot.
@LachlanMiller
@LachlanMiller 10 ай бұрын
thanks glad you liked it!!
@vitaliyd23
@vitaliyd23 5 ай бұрын
What a gem! Love that you included the error solving parts and the "single take" nature of the video. Liked, subscribed, and added to a playlist)
@ДаниелДианов
@ДаниелДианов Ай бұрын
Thank you for sharing this. I find it very informative for every new developer to understand where all things came from and why it evolved that way.
@MoizAli-eh9gv
@MoizAli-eh9gv Жыл бұрын
a beginner learning this. Honestly great video
@LachlanMiller
@LachlanMiller Жыл бұрын
Thanks!
@wattsfield1889
@wattsfield1889 4 ай бұрын
Great vid! Love how you went on the whole journey from just html to more.
@opsJson_
@opsJson_ Жыл бұрын
Congratulations from Brazil. content like this is very rare, i'm subscribing.
@LachlanMiller
@LachlanMiller Жыл бұрын
Thanks for the support!
@michaelvigato3228
@michaelvigato3228 3 жыл бұрын
Man this content is plain and simply amazing
@LachlanMiller
@LachlanMiller 3 жыл бұрын
thanks for the praise Michael, I appreciate it. also, the comments help me know what kind of content people like to see.
@chubbycat9212
@chubbycat9212 2 жыл бұрын
This is the best explanation I've come across
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Glad you found it useful!
Жыл бұрын
I'm honestly impressed with how good this was to give and idea about how we ended up using all of these tools in the modern web development. Thanks for your effort!
@user-tt6nc6mo7k
@user-tt6nc6mo7k 3 жыл бұрын
This really confused me too when I started learning web development. Now I have a great resource to refer to other people thanks! On another note, I see you have a few videos on testing using Jest, Cypress, etc. I personally am quite new to testing I understand there are different types of tests like unit testing, integration testing and end to end tests. I know what each of them are but I do not understand how they all come together in one project? Would be great if you could do a similar overview type video on how all these are implemented in a production application.
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Yeah this stuff is confusing - there is way more tools in the average project too, but this is the general idea. Sure, I will definitely do more content around all the different types of testing... great suggestion. One of my favorite topics.
@davevids95
@davevids95 3 жыл бұрын
This is the explanation I've been looking for!! Subscribed!
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Thanks! I'll try to make more videos about tooling in the future.
@jordantseng8330
@jordantseng8330 Жыл бұрын
god tier explanation
@LachlanMiller
@LachlanMiller Жыл бұрын
Thank you!
@gionatha3747
@gionatha3747 Жыл бұрын
Fantastic video!
@taaaaaaay
@taaaaaaay 3 жыл бұрын
Thanks for the 20 minute headache :) No but really, this made it so much easier to understand what tf is going on.
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Thanks, glad you found it useful!
@deveshprasad6418
@deveshprasad6418 6 ай бұрын
This is amazing. You're a genius. You made it so easy to understand.
@senayb3
@senayb3 3 ай бұрын
Great run through!! Helps wrap my head around things.
@johnas3
@johnas3 2 жыл бұрын
Bro you are now my new history teacher. Great work and thanks for the explanation🔥
@thequang9234
@thequang9234 Жыл бұрын
with a bit of luck, this is one of the coolest video i've ever watched :)
@LachlanMiller
@LachlanMiller Жыл бұрын
Thanks! What did you like about it?
@shinobi1975
@shinobi1975 6 ай бұрын
Finally someone that explains the problem that is being solved by these stupid installs lol. 10/10 vid.
@fogguy3838
@fogguy3838 9 ай бұрын
exactly what I was looking for, Thanks, great job
@LachlanMiller
@LachlanMiller 8 ай бұрын
Glad it helped!
@abuzarbaig3116
@abuzarbaig3116 Жыл бұрын
Great & short Video that explains what's going behind the scenes with modern web dev, Thanks 😊
@kerimzunic
@kerimzunic 6 ай бұрын
I'm glad this video exists
@LachlanMiller
@LachlanMiller 6 ай бұрын
thanks I am glad you exist and watched it!
@jhonyortiz5
@jhonyortiz5 Жыл бұрын
This entertaining and very eye opening when it comes to the past couple decades of web development. I hate when people use simple examples that have been simplified so much that they don't represent reality anymore. But your example was as simple as it needed to be but no more. It's really cool to see how it all really works and how it came together.
@mmkvhornet7522
@mmkvhornet7522 Жыл бұрын
I like your methodology , it's a very great and enjoyable learning experience !
@rajeev2127
@rajeev2127 Жыл бұрын
You nailed it!!! Finally I understood, Thank you so much from the heart, you're awesome
@siddharthnayak4448
@siddharthnayak4448 2 жыл бұрын
Excellent video explaining the history and transition to modern js libraries.Superb!!!!!!
@micahtonning7967
@micahtonning7967 5 ай бұрын
Thank you for creating this video. It was extremely helpful.
@zalabhaskar9795
@zalabhaskar9795 9 ай бұрын
You have nicely explained in simple way with good example. Thank you.😊
@roronoa_d_law1075
@roronoa_d_law1075 Жыл бұрын
10:37 I don't understand why webpack is needed here if the improvement is to export createElement and import it in index.js. It's impossible to to do this without webpack?
@rioredwards
@rioredwards 6 ай бұрын
This was awesome! Thank you for making this!
@NoName-tt9ye
@NoName-tt9ye 4 ай бұрын
Great video, I really like the flow of it
@longb1913
@longb1913 2 жыл бұрын
3k views wtf... u need to be recognised
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Thanks for the motivation!
@needtubes121
@needtubes121 Жыл бұрын
thanks for explaining all this from basics.
@slahomar1497
@slahomar1497 Жыл бұрын
that is the best video I watched in my life
@bhavyabansal1143
@bhavyabansal1143 3 жыл бұрын
I became your fan in just 26 minutes and 41 seconds....
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Hey, thanks for the praise! Any other kind of videos you would like to see? Trying to find a good direction for my content and channel 🤔
@bhavyabansal1143
@bhavyabansal1143 3 жыл бұрын
@@LachlanMiller if you ask me, I will say that given there are lot of tools out there like your video has explained, it will be good if you can make individual in depth videos of each tool and explain different configurations and what they are used for. I am happy to help as I am also learning these things and there is lot to learn out there.
@bhavyabansal1143
@bhavyabansal1143 3 жыл бұрын
@@LachlanMiller just sent you request on LinkedIn. Let’s connect.
@apereiracv
@apereiracv 2 жыл бұрын
Amazing explanation, love the approach and evolution of the code, great stuff
@almuhanadal-nihmy7452
@almuhanadal-nihmy7452 Жыл бұрын
Great explanation. Thanks I hope you do more videos about tooling. It's really helpful
@GoatCS
@GoatCS 10 ай бұрын
This is why WordPress is so popular. Running SQL HTML PHP and sometimes JavaScript and you don't even know it.
@CyberCass2000
@CyberCass2000 Жыл бұрын
This is just amazing, hat off to you!
@kashnigahbaruda
@kashnigahbaruda 3 жыл бұрын
As a newbie this was great. Struggled today with some jest testing presets and had absolutely no idea what was going on. I think I solved it because the error went away but I am worried the test was just skipped. Luckily I have no idea how to check which tests was skipped or not so I can go to bed without worry.
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Glad you got it working - skipping a test is never ideal, might be good to find out why it's failing lol. Sleep tight
@kashnigahbaruda
@kashnigahbaruda 3 жыл бұрын
@@LachlanMiller turns out it was marked with test.skip(...). All greens.
@KousayJebir
@KousayJebir 5 ай бұрын
awesome video man ! i do have a quick question tho , when you reached the part of using react and imported React from 'react' what tool was responsible to resolve the location of 'react' or to be more precise the actual location of the file that contains the React object
@LachlanMiller
@LachlanMiller 5 ай бұрын
Whatever runtime you are using will resolve modules using its own pre-determined rules. In this video the runtime is Node.js. You can google "node.js module resolution algorithm" or read here. nodejs.org/api/modules.html#loading-from-node_modules-folders In Node.js if the import is not a relative path, it will look in `node_modules` and then find the `package.json` for the module. In there it looks at specific fields like "main", etc.
@KousayJebir
@KousayJebir 5 ай бұрын
@@LachlanMiller thank you very much
@AnthonyObi-wr6ro
@AnthonyObi-wr6ro Жыл бұрын
All your tutorials are always fast pace that it becomes hard for one to follow your pace
@DjSeymur
@DjSeymur 2 жыл бұрын
Superb explanation! Thanks a lot for this 🙌
@LachlanMiller
@LachlanMiller 2 жыл бұрын
thanks!
@austincodes
@austincodes Жыл бұрын
And this is just the top of the iceberg
@LachlanMiller
@LachlanMiller Жыл бұрын
Damn straight, below lies dragons Maybe I should make an iceberg video on JS tooling!
@universalkittii
@universalkittii 2 жыл бұрын
This was very helpful thank you for making this!
@makealemonade
@makealemonade 9 ай бұрын
My brain is thanking you.
@andriopratama6587
@andriopratama6587 2 жыл бұрын
Awesome! Thank you for the explanation and case study
@marcialabrahantes3369
@marcialabrahantes3369 2 ай бұрын
webpack was built FOR react. aside from that, great content we've been building on complicated frontends for a while before webpack
@theisaacmoses
@theisaacmoses Жыл бұрын
Pure awesomeness 😍
@YoussefAdelWahba
@YoussefAdelWahba 3 ай бұрын
thank you, this is extremely helpful and clear.
@bakaleisanich
@bakaleisanich 3 жыл бұрын
Thank you! More course React!!!
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Main focus is around Vue, but definitely could look into some more generic tutorials on concepts that apply to both React and Vue.
@dimitriborgers9800
@dimitriborgers9800 5 ай бұрын
One question: if webpack bundles everything (including third party modules) into bundle.js, doesn't that ever get too big for the browser? The Gatsby library has 1200+ modules; I would assume the bundle.js would be absolutely massive.
@LachlanMiller
@LachlanMiller 5 ай бұрын
You can load modules async, so the initial bundle isn't huge. But yes, some libs have really huge bundles - I do not think there is any upper limit, I have worked on apps with 20mb of JS. This takes a long time to parse in the browser. Things like gzip, minify, etc can make it a lot smaller.
@imheretohelp2075
@imheretohelp2075 2 жыл бұрын
very good content, pedagogically supreme
@jimbrannlund4677
@jimbrannlund4677 2 жыл бұрын
This was AWESOME! Thank you!
@aidanwelch4763
@aidanwelch4763 8 ай бұрын
There's so much worse it can be with SASS, handlebars, WASM, and so much extra complexity you can add on top lol
@letscode4277
@letscode4277 4 ай бұрын
any updates with the book? I've been waiting for it since i subscribed
@LachlanMiller
@LachlanMiller 4 ай бұрын
I'm sorry I haven't been active in this regard. I ended up going back to study part-time and content creation, my hobby, has taken a bit of a back seat. I might just aim for some more videos in the interim... any particular topic that fascinates you, that'd you like to know more about?
@alextonev4145
@alextonev4145 2 жыл бұрын
Simply amazing. Thank you so much.
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Thanks! Glad you enjoyed it.
@oscardasilva971
@oscardasilva971 2 жыл бұрын
This is just one of the web development tutorials I have ever seen, Why don't everybody create tutorials like that?
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Many people don't understand it all haha
@slahomar1497
@slahomar1497 Жыл бұрын
in babel.config, how wepback knows the order to use ? in case of tsx, which loader is gonna run first ?
@LachlanMiller
@LachlanMiller Жыл бұрын
It goes in the order of the array. I think it goes last to first (weirdly enough).
@udonjijiwaiwai935
@udonjijiwaiwai935 2 жыл бұрын
This is great and very helpful! Thank you!
@oleksandraokhotnykova8672
@oleksandraokhotnykova8672 7 ай бұрын
"We're not sane, we're INSANE, we're modern web developers" LMAOOO
@naveedalirehmani4135
@naveedalirehmani4135 Жыл бұрын
legacy code be like : Look what they need just to mimic a fraction of our power. 😃
@dipanshuikey6650
@dipanshuikey6650 10 ай бұрын
great video 🔥
@NomanKhan-pi2dc
@NomanKhan-pi2dc Жыл бұрын
When i see a guy using vim, I just assume that he is a godly tier developer. Once more I was proved right
@squarerootof2
@squarerootof2 2 жыл бұрын
hilarious and brilliant!!!
@webb-developer
@webb-developer Жыл бұрын
this is amazing . thank you
@fnfal113
@fnfal113 Жыл бұрын
welcome to js land where people over engineer stuffs for convenience
@mr_bolnik7534
@mr_bolnik7534 Ай бұрын
Briliant video . Thnx
@edwinquinonespardo4768
@edwinquinonespardo4768 2 жыл бұрын
Amazing
@codybontecou
@codybontecou 3 жыл бұрын
If given the choice, would you support ES5? It seems a lot of this complexity comes from supporting old browsers.
@LachlanMiller
@LachlanMiller 3 жыл бұрын
Depends, last job I worked we had a lot of users on IE11 (hospitals) so we just used babel to target es5. Nowdays browsers can actually load es modules natively via , so depending on your project you might not even need webpack, just a simple typescript build that exports modules, but I think a pre-configured setup (vue cli, create react app) is probbly the way to go.
@RikThePixel
@RikThePixel 2 жыл бұрын
I would like to see how server-side JavaScript comes into play with this 😂
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Another can of worms, maybe soon!
@RikThePixel
@RikThePixel 2 жыл бұрын
@@LachlanMiller ooh 👀
@AiwwwA
@AiwwwA Жыл бұрын
Best explanation
@learncodeinbangla9181
@learncodeinbangla9181 2 жыл бұрын
It's really awesome things to me. Thanks a lot.
@LachlanMiller
@LachlanMiller 2 жыл бұрын
Glad you found it useful!!
@topsy_kreds
@topsy_kreds Жыл бұрын
Excellent
@LachlanMiller
@LachlanMiller Жыл бұрын
Thanks so much 😀
@laithdrebaty6709
@laithdrebaty6709 2 жыл бұрын
Great video, thanks a lot!
@anudeepreddy1027
@anudeepreddy1027 11 ай бұрын
Bro casually flexing his VIM skills
@LachlanMiller
@LachlanMiller 11 ай бұрын
I'm very much an average Vim user - always learning new things! Although nowadays I'm using VS Code with the Vim plugin.
@LachlanMiller
@LachlanMiller 11 ай бұрын
Why? I am tired of configuring Vim!
@StandardLoop
@StandardLoop 6 ай бұрын
Really great video
@LachlanMiller
@LachlanMiller 6 ай бұрын
thanks!
@HejaBibani-u9z
@HejaBibani-u9z Ай бұрын
thank you sir
@rossli8621
@rossli8621 Жыл бұрын
This is treasure!
@jpmohan96
@jpmohan96 3 жыл бұрын
Incredible 👌
@LachlanMiller
@LachlanMiller 3 жыл бұрын
thanks JP
The Difference Between Vue and React
10:27
Lachlan Miller
Рет қаралды 42 М.
Webpack 5 Crash Course | Frontend Development Setup
41:17
Traversy Media
Рет қаралды 307 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 19 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 15 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 21 МЛН
The First Real Webpack Alternative (Written in Rust!)
19:28
Theo - t3․gg
Рет қаралды 64 М.
Webpack 5 Full Course (Babel, PostCSS, npx, Node.js & npm)
1:28:22
Webpack crash course | easy way
32:07
Hitesh Choudhary
Рет қаралды 61 М.
Create a React App WITHOUT Create React App
26:21
WittCode
Рет қаралды 55 М.
Why Can't We Make Simple Software? - Peter van Hardenberg
41:34
Handmade Cities
Рет қаралды 152 М.
My Favorite TypeScript Tips and Tricks
10:21
Lachlan Miller
Рет қаралды 7 М.
How Hot Module Replacement REALLY Works | JS Toolchain From Scratch
29:05