You are just jealous of my mad 90s naming skillzzz0rz. For all ya folks watching: The reason I wrote loadz0r is so that y’all can use all your beautiful modules in workers too! github.com/surma/rollup-plugin-loadz0r #shamelessPlug
How do you prevent spamming the buttons, basically if a user click the button 100 times the script gets imported again. what would be the best practice for this?
the approach described requires typescript to be configured as 'esNext' (as shown in the video) or 'commonjs' (because of dynamic imports). could you desribe how the setup looks like in case I need to target older browsers, like IE11 etc.? (maybe in a separate video)
loadz0r :D. @Surma, what was the thought process here? bootstrap.js 3379.2 bytes? (guessing from the network panel) paulLewis.ts ... export { goodBRoll, goodMusic, goodJokes, theBeard };
Funny, was expecting it to spit out actual ECMAScript dynamic imports at the end! Looking forward to getting rid of all the dynamic loading boilerplate in a couple years when browser and tooling support is there.
I really want to like VSCode, but my experience has been that it complains incorrectly so often that I end up either completely distracted from what I'm trying to accomplish or I end up ignoring things that I've actually mistyped. You clearly have a much higher pain tolerance than I do, for this sort of issue.
I figured what it was in this case; I'd had a branch open previously with a function of that name and VSCode got itself in a funny state. No amount of reveals would have helped, sadly, as the code was not in the checkout.
A nice video after a long time :) If you are taking requests for making videos, can you do a video on "How do you handle authentication on WebApps?" please
Don't the dev tools say the bootstrap.js file is 3.3 kb? I'm going to guess 3324 bytes. Or are you looking for the bytes after minification and gzipping? Great video by the way!
Nice to see even Paul facing stupid errors and not just me. You could directly restart the typescript server from the command menu. (I've had to use it a lot (sad face)).
I love this video, and the B-Roll is quite wonderful. I also had a similar issue with typescript, and fixed it using the command in VS Code " Typescript: Select Typescript Version..." and selecting the workspace version.. perhaps useful in this case, *shrug*, anyways thanks so much for the vids!
@@aerotwist Personally anything not to flashy, chill enough to not capture my attention, some lofi beats maybe, or just some music in the intro, your voice and personnality are bright and energetic, I dont feel like any music is needed.
Its hard to understand why people who use typescript at the same time advocate to use it and also have silly unexplainable errors they would not have otherwise😂 its like u in a bad relationship. just get out of it Paul, you deserve better 😂
bootstrap.js 3064 bytes
Did you check out the code? 😂
@@aerotwist of course :)
You are just jealous of my mad 90s naming skillzzz0rz.
For all ya folks watching: The reason I wrote loadz0r is so that y’all can use all your beautiful modules in workers too!
github.com/surma/rollup-plugin-loadz0r
#shamelessPlug
If I hadn't agreed to pin something else, I'd pin this. But I can't. So I won't.
Your videos are great. You're quickly becoming my favorite source of knowledge for front end development techniques.
Man, you are so enjoyable to watch! Thank you for the videos and keep doing the great work!
"What's your problem, TypeScript?" - Me every 5 minutes using TypeScript.
It _does_ get easier, you just pay the cognitive cost at author time instead of runtime, bugs notwithstanding
@@aerotwist TBH I've given up on Typescript for now. I'll probably come back in a couple years.
That's kind of the point of TS though. It warns you about things so you don't have to deal with them after the code is pushed on production.
How do you prevent spamming the buttons, basically if a user click the button 100 times the script gets imported again. what would be the best practice for this?
Great video and good to have you back! Really digging the new atmosphere!
I'm glad I'm not the only one that sometimes has to just restart VSCode to get rid of errors!
the approach described requires typescript to be configured as 'esNext' (as shown in the video) or 'commonjs' (because of dynamic imports).
could you desribe how the setup looks like in case I need to target older browsers, like IE11 etc.?
(maybe in a separate video)
Great technique, and very well explained. Welcome back.
Thanks Chris! 🙌
So glad your back! And awesome video! Like always
loadz0r :D. @Surma, what was the thought process here?
bootstrap.js 3379.2 bytes? (guessing from the network panel)
paulLewis.ts
...
export { goodBRoll, goodMusic, goodJokes, theBeard };
Funny, was expecting it to spit out actual ECMAScript dynamic imports at the end! Looking forward to getting rid of all the dynamic loading boilerplate in a couple years when browser and tooling support is there.
Would be awesome, but I wonder if we will get there
Doesn't webpack do something similar?
Love the ombré lighting!
I had to Google that...
Instead of reloading VSCode you can also just restart TypeScript server. Much faster
You're gonna need to play that bass some day soon...
Hahaha.... No. Nobody wants a 40 minute bass solo, you know that, Neil ;)
Paul Lewis I dunno, I would happily listen to a Mark King (Level 42) slap solo any day
Welcome back, glad to see you :)
I really want to like VSCode, but my experience has been that it complains incorrectly so often that I end up either completely distracted from what I'm trying to accomplish or I end up ignoring things that I've actually mistyped. You clearly have a much higher pain tolerance than I do, for this sort of issue.
I don't, actually. Generally I've found it very well behaved. I don't really have any extensions or anything.
Great to see you back :)
Welcome back Paul!
Welcome back!!!
Nice Video as always! btw "Quick Fix>Show documentation for x" will take you to the explanation of the error.
I figured what it was in this case; I'd had a branch open previously with a function of that name and VSCode got itself in a funny state. No amount of reveals would have helped, sadly, as the code was not in the checkout.
HELL YEAAAHH PAUL LEWIS IS BACK!!!! 🤘
What's the music at the end of the video?
Finally !!!!! Missed u a lot man
🙌
Good video :) I think you showed bootstrap.ts in your network panel in Development menu. 3300 bytes, no?
Is that an official guess? ;)
A nice video after a long time :)
If you are taking requests for making videos, can you do a video on "How do you handle authentication on WebApps?" please
I'll have a think on that one...
Don't the dev tools say the bootstrap.js file is 3.3 kb? I'm going to guess 3324 bytes. Or are you looking for the bytes after minification and gzipping? Great video by the way!
I'm looking for the size of bootstrap.js in dist as reported by the OS
no vim bindings ... ??? why ?? paul are you not coding for a liv'ing ?
I never really bothered to learn them :)
And yes I code for a living
Nice to see even Paul facing stupid errors and not just me. You could directly restart the typescript server from the command menu. (I've had to use it a lot (sad face)).
Yeah I leave these things in because they happen to us all.
Curious. Where in the UK is your accent from?
The north. About 40 minutes north east of Manchester. Heavily adjusted by living in different places during my childhood.
RUclips recommendations really do work sometimes.
\o/ welcome aboard
Oh! The Surma shade.... :D
(Though...yaknow... Not disagreeing about the name.)
I love him dearly... He just shouldn't name plugins.
there is a vscode command to restart the typescript server
Yeah easy once you know that's the issue
I love this video, and the B-Roll is quite wonderful.
I also had a similar issue with typescript, and fixed it using the command in VS Code " Typescript: Select Typescript Version..." and selecting the workspace version.. perhaps useful in this case, *shrug*, anyways thanks so much for the vids!
why are not you use just -Infinity or Infinity instead of Number.(NEGATIVE|POSITIVE)_INFINITY?
Because both work?
@@aerotwist less code might be more pure i think.
> "Imports 2019 Style"
mfw still no .mjs :c
*feeling deeply frustrated*
:P
About what?
This is why I refuse to switch to ts lol eff that mate
I really enjoy your content it's very high quality (music was not of my taste in this episode and distracted me a bit)
What kind of music do you like?
@@aerotwist Personally anything not to flashy, chill enough to not capture my attention, some lofi beats maybe, or just some music in the intro, your voice and personnality are bright and energetic, I dont feel like any music is needed.
3064 bytes
Pure developer gold..... turn it off ....... wait 30 sec and turn it on .....
Its hard to understand why people who use typescript at the same time advocate to use it and also have silly unexplainable errors they would not have otherwise😂 its like u in a bad relationship. just get out of it Paul, you deserve better 😂
This was a rare outage. Most days I have nearly no problems at all. And for the work I do it's very handy.
Paul Lewis yeah i get it, i was trying humor. failed miserably ;)
3064 bytes
Second place!