9:15 I kinda got used to the ternaries, I made a numeric system and a number parser using pure typescript types before, the end result was cool, it is fun to explore those things
4:05 I've to point out that function overload is not type safe. You could return an array even in the branch for SelectionKind.Single. With the new functionality, you get type safety and TS doesn't allow you to return array of strings in the Single branch
I love TS and see no way around it for large codebases where the implementation is largely preplanned... But a lot of what I do with my personal time is experimentation, hacking and just projects that are way out of scope for one man, so the extra time it takes to define types and interfaces etc in typescript just makes it one extra layer of frustration, especially if you are prototyping and make up interfaces as you go... Maybe its just me, but I dont find modern javascript all that bad on its own. If I wanted a strictly typed, overly verbose language, I would use Java
@orterves Yes I know, but then what do you actually gain by using TS? If everything is any, you might as well not use TS at all, infact when I use TS, I usually disallow any unless there is no other way around it, which is actually rare.
@ET_AYY_LMAO well yeah, exactly - I'm just saying it's a strange complaint to have (that it is frustrating) when you're free to do whatever you want with your own projects. The advantage of typescript is in the types, that's what it's used for, mainly, but if you want to use typescript but can't be bothered with all the types... well, you can. Personally I wouldn't give up the advantage of a well defined domain of types even in hobby projects, but needs vary
re: fnm - Have you seen volta? You can then just dump the node/npm/yarn versions into your package.json file and it will just run the correct version. Even if you have multiple vscode's open - bouncing between them is easy as because you then don't need to think about changing anything
I would really like that we do not have a tsconfig file, can't we just have one file that combines all the package.json, readme, gitignore, even the vite config, just everything, I just hope
Hi Theo, big fan here! I've noticed that the quality of your videos seems to be declining lately. What's going on? It feels like you're not putting as much effort into them as you did when I first started following this channel. I'll keep following you anyway, because I love your content, but I felt the need to point this out.
@@schtormm He's videos lack depth it's all surface level info right now and trying to talk about the latest shiny things there's still some gold in there but they are reducing in numbers like his video explaining SPA SSR etc we need more content like that only few of his videos interest me anymore he posts like everyday so I understand if there's not enough time to plan everything but maybe he can just reduce the amount of videos he's trying to push out so we get higher quality ? I love Theo but he doesn't have to talk about everything
I’m sorry but I disagree. In January, I uploaded some of my best videos to date. The HTMX “history of web dev”, the serverless breakdown, the JS rendering video, the Stripe breakdown, and my last tutorial were all in the last month. That’s not even counting the T3 Chat launch and videos around it. If I got this comment mid last year I’d understand, but it genuinely is confusing to see it after grinding so hard on my recent videos.
@@t3dotgg your still putting out great content gee but it's getting lost in the mix of videos like this one or the auth video I have notifications turned on for every single of your upload so I don't miss anything but these videos you mentioned are top class but are lost in the mix of the other stuff that maybe should just stay on steam? I've not been able t watch your streams cause of timing but I feel some of these don't have to be their own video still a big fan btw ❤️ Second time I'm getting a response from you one and X and now here ❤️
Type checking. This is about disabling every running-time feature of TypeScript, so that it can be run into a browser that doesn't support TS but can run JavaScript just fine. But you still keep the main advantage of TS which is to have a type checker when you're writing the code. The fact that your code will be executed on a platform that doesn't have TS shouldn't prevent you from writing this code using TS, and that's the point of this update.
I don't think I will ever get on this hype train, I tried it, hated it, its ugly and it kills me to see every company just blindly follow the trends. I rather my code be readable then setup guardrail for the devs.
It makes working with other people a lot easier. Say they've written a load of functions that you're going to have to use. Knowing what type of parameters these functions expect and their return type is extremely helpful. You can avoid a lot of debugging time for silly little type errors. I agree though that sometimes TS can become rather unwieldy. I've used some libraries where you need a degree just to understand what is being returned, but that's usually the case for libs that were built in regular JS and have had a @types package built on top. When building my own stuff I find TS makes me think more about how a things should behave resulting to a more structured codebase overall.
Many Python libraries don’t follow semantic versioning, including Python Wheel, FastAPI, scikit-learn, Seaborn, and Conda. Also, semantic versioning isn’t always the best approach.
so if i disable all the features of typescript, does it becomes just plain javascript but technically typescript
I guess
It becomes AnyScript
9:15
I kinda got used to the ternaries, I made a numeric system and a number parser using pure typescript types before, the end result was cool, it is fun to explore those things
Dearrow is a life saver on this channel.
2:14 start
4:05 I've to point out that function overload is not type safe. You could return an array even in the branch for SelectionKind.Single. With the new functionality, you get type safety and TS doesn't allow you to return array of strings in the Single branch
I love TS and see no way around it for large codebases where the implementation is largely preplanned... But a lot of what I do with my personal time is experimentation, hacking and just projects that are way out of scope for one man, so the extra time it takes to define types and interfaces etc in typescript just makes it one extra layer of frustration, especially if you are prototyping and make up interfaces as you go... Maybe its just me, but I dont find modern javascript all that bad on its own. If I wanted a strictly typed, overly verbose language, I would use Java
You can just any everything in your personal projects you know
@orterves Yes I know, but then what do you actually gain by using TS? If everything is any, you might as well not use TS at all, infact when I use TS, I usually disallow any unless there is no other way around it, which is actually rare.
@ET_AYY_LMAO well yeah, exactly - I'm just saying it's a strange complaint to have (that it is frustrating) when you're free to do whatever you want with your own projects. The advantage of typescript is in the types, that's what it's used for, mainly, but if you want to use typescript but can't be bothered with all the types... well, you can.
Personally I wouldn't give up the advantage of a well defined domain of types even in hobby projects, but needs vary
You would not use Java for frontend, because it is not possible to use Java (nicely). And for backend I'd rather you use Java than pure untyped JS
re: fnm - Have you seen volta? You can then just dump the node/npm/yarn versions into your package.json file and it will just run the correct version.
Even if you have multiple vscode's open - bouncing between them is easy as because you then don't need to think about changing anything
Did you send that MBP to Zen yet? Cant wait for apple 2fa to work :D
Full circle /J
its just getting closer to rust's type inference
Can you please tell posthog to become compatible with party town? I want to use it without blocking the main thread.
I would really like that we do not have a tsconfig file, can't we just have one file that combines all the package.json, readme, gitignore, even the vite config, just everything, I just hope
Top comment is gay?
top reply to this comment is gay
Unoriginal boring comment just to farm some likes so you can feel happy for 10 seconds of your miserable life
@@FO0TMinecraftPVPfeeling gay, you mean
@@FO0TMinecraftPVP gay?
Are we supposed to have a problem with gay?
i wish you would stop posting daily and put more thought into your videos.
Such as?
So the hour long comparison of auth video didn’t have thought put into it?
9 minutes ago is crazy. at 5 in the morning?
Assuming you're taking about 5am... Personally I consider that more "late at night" than "morning".
isnt there a feature to schedule post?
could be scheduled for middle of the day EU time??
Hi Theo, big fan here! I've noticed that the quality of your videos seems to be declining lately. What's going on? It feels like you're not putting as much effort into them as you did when I first started following this channel. I'll keep following you anyway, because I love your content, but I felt the need to point this out.
but like, how
In what ways?
@@schtormm He's videos lack depth it's all surface level info right now and trying to talk about the latest shiny things there's still some gold in there but they are reducing in numbers like his video explaining SPA SSR etc we need more content like that only few of his videos interest me anymore he posts like everyday so I understand if there's not enough time to plan everything but maybe he can just reduce the amount of videos he's trying to push out so we get higher quality ?
I love Theo but he doesn't have to talk about everything
I’m sorry but I disagree. In January, I uploaded some of my best videos to date. The HTMX “history of web dev”, the serverless breakdown, the JS rendering video, the Stripe breakdown, and my last tutorial were all in the last month.
That’s not even counting the T3 Chat launch and videos around it. If I got this comment mid last year I’d understand, but it genuinely is confusing to see it after grinding so hard on my recent videos.
@@t3dotgg your still putting out great content gee but it's getting lost in the mix of videos like this one or the auth video I have notifications turned on for every single of your upload so I don't miss anything but these videos you mentioned are top class but are lost in the mix of the other stuff that maybe should just stay on steam? I've not been able t watch your streams cause of timing but I feel some of these don't have to be their own video still a big fan btw ❤️
Second time I'm getting a response from you one and X and now here ❤️
Typescriptn't
if you disable everything, then what is the point of TypeScript even existing?
Type checking.
This is about disabling every running-time feature of TypeScript, so that it can be run into a browser that doesn't support TS but can run JavaScript just fine.
But you still keep the main advantage of TS which is to have a type checker when you're writing the code. The fact that your code will be executed on a platform that doesn't have TS shouldn't prevent you from writing this code using TS, and that's the point of this update.
Why can't we just run ts in browsers?
Because TC39 is stuffed with people who either don't want types/type-stripping, or want a brand new syntax that isn't based on TS. 😞
maybe cuz browsers don't supports ts ? 🙃
Wohooo
I don't think I will ever get on this hype train, I tried it, hated it, its ugly and it kills me to see every company just blindly follow the trends. I rather my code be readable then setup guardrail for the devs.
It makes code more readable and maintainable. Especially if you're jumping into a code base you're not familiar with . Makes production safer.
"My CoDe LoOkS uGlY"
const somethingUnknowable = whoKnowsWhatThisFunctionReturns(args)
How readable LOL
It makes working with other people a lot easier. Say they've written a load of functions that you're going to have to use. Knowing what type of parameters these functions expect and their return type is extremely helpful. You can avoid a lot of debugging time for silly little type errors.
I agree though that sometimes TS can become rather unwieldy. I've used some libraries where you need a degree just to understand what is being returned, but that's usually the case for libs that were built in regular JS and have had a @types package built on top. When building my own stuff I find TS makes me think more about how a things should behave resulting to a more structured codebase overall.
Skill issue
GAHT DAAAANG. The backbone of modern UI doesn't use semantic versioning?? SO glad I left that world and became a python nerd.
conda doesn't use semantic version too
Many Python libraries don’t follow semantic versioning, including Python Wheel, FastAPI, scikit-learn, Seaborn, and Conda. Also, semantic versioning isn’t always the best approach.
19 views in 1 min? Bro fell off
GREETINGS FROM THE NEW REPUBLIC OF OOFLAND🫡