How To Build Your First TypeScript Project - TODO List Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 215

  • @dechobarca
    @dechobarca 2 ปีที่แล้ว +84

    Hey Kyle, great to see you covering some TypeScript. I would definitely be interested in future videos if you decide to cover more advanced topics. Cheers!

  • @19cornholio90
    @19cornholio90 2 ปีที่แล้ว +21

    This was a perfect intro tutorial for a TS project. I followed along the tutorial, and then wrote down the steps I took. The next day I created the tutorial based on these steps. Then the next day I created it from scratch. Great learning experience. Thanks!!

    • @spoodermen2530
      @spoodermen2530 ปีที่แล้ว

      dis is da weh
      doing thing from memory is really good, makes you remember it for a long time when we recollect and do things

  • @LexiumHub
    @LexiumHub 2 ปีที่แล้ว +17

    You just made me love typescript 😂, please do a playlist on it for beginners

    • @RC-14
      @RC-14 2 ปีที่แล้ว +2

      A video about all of the configs would be nice.

  • @HHJoshHH
    @HHJoshHH 6 หลายเดือนก่อน

    Yay I got all the way through it this time! I'm so pumped that I was able to do this so fast. I've been working hard to get this far. Thanks Kyle. You rock man.

  • @lucydelaluna
    @lucydelaluna ปีที่แล้ว +6

    You're such a great teacher. Highly appreciate your content and ability to explain things so simply.

  • @tejaswan
    @tejaswan 2 ปีที่แล้ว +6

    I have just planed to learn typescript. and u made a video on typescript 👏

  • @kraxen72
    @kraxen72 2 ปีที่แล้ว +28

    great tutorial. please more typescript ones, for example how to properly define interfaces, types and set up definition files. also please try svelte (with vite or sveltekit)

  • @kasopejohnson3831
    @kasopejohnson3831 2 ปีที่แล้ว +1

    Really great simple hands-on application of typescript for practice. One thing I noted, when the browser threw an error trying to run module syntax, it was actually because you didn't specify the type of the script as "module" in your script tag

  • @ajsyt
    @ajsyt 2 ปีที่แล้ว +32

    Or just use npm init vite and select vanilla-ts ⚡

    • @oggy107
      @oggy107 2 ปีที่แล้ว +3

      vite is 🔥

    • @beinyourguard
      @beinyourguard 2 ปีที่แล้ว +1

      vite is really cool

    • @AmodeusR
      @AmodeusR 2 ปีที่แล้ว

      The best!

    • @ccedev
      @ccedev ปีที่แล้ว +2

      I switched from webpack to vite, and I never want to go back. I tried Svelte for my portfolio development, and I don't want to change that. Some tools are overrated, but many are amazing.

    • @haythamkenway1561
      @haythamkenway1561 6 หลายเดือนก่อน

      Vite is garbage. for couple seconds faster compiling time, you have to always and always configure the module bundler.
      folder structure is also inconvenient.
      and lasty, why the hell I need to install module bundler plugin to add PWA functionality to my project? you can literally have PWA on vanilla js project without any kind of plugin.
      it is fast because it has nothing inside of it and you have to reinvent the damn wheel.

  • @swapnilkuwar7040
    @swapnilkuwar7040 2 ปีที่แล้ว +20

    When you're going to give guitar lessons?

  • @codingislove3707
    @codingislove3707 2 ปีที่แล้ว +9

    nice! an advanced typescript project would be awesome. also a bigger reactjs typescript project would be sweet! thx

  • @njo_lv
    @njo_lv ปีที่แล้ว +1

    Loving these project tutorials. I am learning both React and TypeScript and your videos have been gold. The fast pace challenges me to keep up. Thank you for the clear and concise content. 👏

  • @shadmanfatin777
    @shadmanfatin777 2 ปีที่แล้ว +1

    *Really excited to see you reaching 1 Million Subs Kyle brother*

  • @darkjedi6614
    @darkjedi6614 2 ปีที่แล้ว +4

    LOVED this tutorial! Very informative and very easy to follow! Thank you so much. Like the others, I would love to see more TypeScript tutorials. If possible, some centered around API usage please. I'm still learning TypeScript and this tutorial helped me so much. Thank you! :)

  • @Vyse86
    @Vyse86 2 ปีที่แล้ว +1

    Yes...been wanting a nice quick TypeScript tutorial. Thanks!

  • @xtraszone
    @xtraszone 2 ปีที่แล้ว +2

    Nothing is more exiting than starting a typescript project 😁

  • @mrFighter924
    @mrFighter924 9 หลายเดือนก่อน

    Finally someone locally do it! Thank you!

  • @simpleedge
    @simpleedge 2 ปีที่แล้ว

    Woah! I finally get why typescript is so amazing!!!! It preemptively exposes possible errors in your code before you deploy! 😱😱 This is 🔥🔥🔥🔥

  • @firstname-lastname
    @firstname-lastname 2 ปีที่แล้ว

    Hands down, best small TS intro ever :)

  • @kurdmajid4874
    @kurdmajid4874 ปีที่แล้ว

    amazing video helped me understand typescript way better.

  • @outhwithauldraft5979
    @outhwithauldraft5979 2 ปีที่แล้ว +8

    9:24 wait hold the frickin' phone for a second. how does NOT give an error? the dist folder does not exist nor does the index.js file. what is this magic?

    • @alvaprince4726
      @alvaprince4726 ปีที่แล้ว +1

      I agree. Even when it is manually created tsc doesn't spit the index.js out into the dist folder. So how is he getting it to work??

    • @halestormtv
      @halestormtv ปีที่แล้ว +1

      I resolved by Ctrl+C to cancel in terminal, then re-run with npm start. Then my html had the HI msg in the console output.

    • @hungle6129
      @hungle6129 หลายเดือนก่อน

      It's because the file is transpiled in memory, so the only file he needed is index.ts (which snowpack compiled into index.js in memory)

  • @DragonWhisky
    @DragonWhisky 2 ปีที่แล้ว

    Thank you, Kyle. I enjoy this short course.

  • @hachapacha5081
    @hachapacha5081 2 ปีที่แล้ว

    dude this tutorial is so useful.i have try to learn typescript for a long time but I couldn't find a clear tutorial. you killed it man. please make more.

  • @Marty72
    @Marty72 2 ปีที่แล้ว

    Best demonstration of the benefits given by using TS

  • @chiroaksun8737
    @chiroaksun8737 2 ปีที่แล้ว +1

    PLS MORE TYPESCRIPT... Very nice content thank you very much, i learn a lot with your tutorials :D

  • @taroserigano6546
    @taroserigano6546 2 ปีที่แล้ว

    Awesome Kyle! I was waiting for Typescript projects!

  • @256k_
    @256k_ ปีที่แล้ว

    this was a great intro for me, i watched many videos going into a lot of theory, but seeing it in practice and seeing right away the linting and error warnings and how the code is a lot more reliable like people say. thank you

  • @faizanahmed9304
    @faizanahmed9304 2 ปีที่แล้ว +3

    Yes, we would love to see more tutorials on Typescript

  • @thevividversatilechannel4807
    @thevividversatilechannel4807 2 ปีที่แล้ว +4

    @13:36
    That is a type assertion (`as` syntax)
    You can use `document.getElementById("new-task-form")`.
    This is the same as `document.getElementById("new-task-form") as HTMLFormElement`.
    @15:00
    You can use the non-null assertion operator if you are sure that what you are using is not null and not undefined. This is an exclamation mark (!) and is used after an expression.
    When creating (no need to use this operator afterwards):
    `const input = document.querySelector("#new-task-title")!`
    When using:
    `input!.value`
    Note: this is removed in transpilation and is just to make TypeScript happy.

    • @kevyyar
      @kevyyar 2 ปีที่แล้ว +1

      thank you that works. This TH-camr never responds to comments but it helps people who read them.

    • @augustocapeto8444
      @augustocapeto8444 7 หลายเดือนก่อน

      thanks! changing the 'const form' fixed everything here (page was reloading even with preventDefault, wasn't adding tasks nor saving them)

  • @Berserkaroid
    @Berserkaroid 2 ปีที่แล้ว +2

    Great video introducing typescipt. My only comment is when you are typing console commands (like npm), don't have the input line at the bottom of the video as the youtube timeline blocks it when the video is paused.

  • @shozdott
    @shozdott 2 ปีที่แล้ว

    You crack me up lol , love how you impliment shallow concerns even ... " You can make changed to this If you need , If you want to like know how this works " lol

  • @develxper7931
    @develxper7931 2 ปีที่แล้ว

    Thanks very much , i really appreciate your content , you literally simplify complex things

  • @davidchen376
    @davidchen376 หลายเดือนก่อน

    I went through this but found I need more basic / assumed knowledge in this video, such as the idea of object, function, component. What video or webpage resource do you recommend?

  • @alvirarahman1559
    @alvirarahman1559 2 ปีที่แล้ว +2

    OMG, can u make a TS Project series? One beginners project, and then go slightly advanced to really advanced? That would be brilliant.

    • @kevin3495
      @kevin3495 ปีที่แล้ว

      you can pick any normal js beginners project master it and try to build it with typescript

  • @noobbot7392
    @noobbot7392 2 ปีที่แล้ว +2

    would definitely love to learn typescript as now i am seeing javascript wouldn't provide much design patterns in backend development

  • @27sosite73
    @27sosite73 2 ปีที่แล้ว

    Kyle, you are THE LEGEND
    thank you!!!

  • @r4rbit
    @r4rbit 2 ปีที่แล้ว

    I followed this tutorial to create my first web app ever. Little did I know, it would also make creating my first Angular project so easy (Tic-tac-toe by Fireship).
    I've learned so much with your videos. Thank you for being such a great teacher and for sharing what you know Kyle.
    Greetings from El Salvador!

  • @sajnajohn3148
    @sajnajohn3148 2 หลายเดือนก่อน

    Great explanation!

  • @chinmayghule8272
    @chinmayghule8272 ปีที่แล้ว +1

    If you're using Vite and you get an error when you create a vanilla typescript project and try to run it, trying deleting the project and starting again or re-installing the packages 'Vite' and 'Typescript'. In my case for some reason when creating the project using Vite the 'Vite' library wasn't installed properly, and the problem went away after I installed it again.

  • @cbsaikumar
    @cbsaikumar 2 ปีที่แล้ว +2

    Loved it, also Please cover some advanced concepts like generics etc

  • @aravindgop1
    @aravindgop1 2 ปีที่แล้ว +1

    That was a quick and a very good video... i have been following you for a while now and I am eager to see your desk setup and other cosmetic stuff behind the scenes which usually any other youtubers would have posted a hundred times :)

  • @ינוןאלבז-כ1ז
    @ינוןאלבז-כ1ז ปีที่แล้ว

    You make it simple. Thanks ❤❤

  • @bryson2662
    @bryson2662 2 ปีที่แล้ว

    Woot! Kyle doing typescript.

  • @DonWeaita
    @DonWeaita 2 ปีที่แล้ว

    This is just what I need it, nice timing.

  • @raitaskeen
    @raitaskeen 10 หลายเดือนก่อน

    Hello dear please make more TS projects like this your efforts are amazing 🥰

  • @Steve-Richter
    @Steve-Richter ปีที่แล้ว +2

    where is the /dist folder and the index.js file that was created by snowpack?

    • @halestormtv
      @halestormtv ปีที่แล้ว

      there is no actual dist folder. After adding the script line to HTML, I resolved by Ctrl+C to cancel in terminal, then re-run with npm start. Then my html had the HI msg in the console output.

  • @broadshare
    @broadshare 2 ปีที่แล้ว

    I like typescript, please do more projects on typescript

  • @calebprenger3928
    @calebprenger3928 5 หลายเดือนก่อน +1

    here is my problem with videos like this, he used snowpack which was updated at the time, but hasn't been updated in 3 years. This is a massive issue with modern web dev. To many services that are never updated.

  • @DJ_Melech
    @DJ_Melech 11 หลายเดือนก่อน

    at 4:13 you show the console with "hi 2" but how do you launch the dev server to get the app running in our browser? I can't see "Hi 2" in my console when I try and open the index.html file in my browser.

  • @neo9117
    @neo9117 11 หลายเดือนก่อน

    more vanilla js & ts videos please this really helps me

  • @Salah-YT
    @Salah-YT ปีที่แล้ว +1

    thank you so much

  • @mohammedimran_shaik
    @mohammedimran_shaik ปีที่แล้ว

    Hey 👋.. why did you create the type instead of interface? Can't we use the interface to define inside the parameter.
    Please clear my doubt

  • @marcelobrasil-developer8678
    @marcelobrasil-developer8678 2 ปีที่แล้ว

    Great video as always!! Keep it up with the Typescript!

  • @ibrahim_youssef_13.12
    @ibrahim_youssef_13.12 6 หลายเดือนก่อน

    I will be happy of Kyle make many games with vanilla Typescript

  • @andresrv88
    @andresrv88 2 ปีที่แล้ว +1

    Hi! I'm leaving this here because I could not find anything on the Snowpack website or on Stackoverflow. I installed the `html2json` module and the @types that come with it. I even created a code to use it, but it is failing with the following error:
    Unhandled Runtime Error
    Uncaught TypeError: Cannot set properties of undefined (setting 'HTMLParser')
    I don't seem to find the reason why is not working. If I remove the import, or even more, it works if I remove the reference inside the code to that module.
    If anyone know why is this happening, I would appreciate the help!
    Thanks!!

  • @suryapratapsingh5149
    @suryapratapsingh5149 2 ปีที่แล้ว

    as usual great video, I Need to understand generics completely so please bring up some videos if your time permits.

  • @belkocik
    @belkocik 2 ปีที่แล้ว

    NICE! Looking forward to more TS! :)

  • @jakeedgar3076
    @jakeedgar3076 2 ปีที่แล้ว

    Would love more typescript!

  • @eles108
    @eles108 ปีที่แล้ว

    Thanks. You may give more TypeScript.

  • @Niksorus
    @Niksorus 2 ปีที่แล้ว

    Amzing intro, I would love more!

  • @michaeldoh9069
    @michaeldoh9069 2 ปีที่แล้ว

    Web Dev Simplified as advertised 👍

  • @mohitmohlia8420
    @mohitmohlia8420 2 ปีที่แล้ว

    YES YES YES MORE TYPESCRIPT TUTORIALS !!!!

  • @enriqueruiz320
    @enriqueruiz320 ปีที่แล้ว

    Justo lo que buscaba... pocos tutoriales de estos 🤯🤯

  • @bekagray837
    @bekagray837 2 ปีที่แล้ว

    Please make more TypeScript tutorials!!

  • @imigi427
    @imigi427 ปีที่แล้ว

    Thank you for that tutorial

  • @techvidsnet
    @techvidsnet ปีที่แล้ว

    Hey Kyle thanks for the video. I have a question.
    bind checkbox on change on newTask event that was called on submit
    when item is pushed to array how that checkbox still bind to the value

  • @holonaut
    @holonaut ปีที่แล้ว +1

    Is there some way to throw exceptions in JS?
    If you want to read an element with a specific ID and it returns null then that means your program is clearly broken. "Catching" this with the question mark operator and pretending the program can continue will only make it harder to understand why your users see a blank or uninteractive page where nothing happens.

    • @kevin3495
      @kevin3495 ปีที่แล้ว

      thats why he write "if (input?.value === null || ...) return;" that line is gonna stop the program if the value is null or the input is not defined, you can check if input is exist if not you can throw exeption to it.
      by the way you can throw exceptions in JS like this: throw new Error(message)

    • @kevin3495
      @kevin3495 ปีที่แล้ว

      also it will throw error automatically if some element is missing thats what ? are for

  • @catafest-work
    @catafest-work 2 ปีที่แล้ว

    can you tell me why you don't have a dist folder build with tsc command because I don't see the booleans inputs from HTML and I don't have errors on my project. Also I used your github repo and not work ... maybe I miss a step on this video tutorial. thank you.

  • @heitormbonfim
    @heitormbonfim ปีที่แล้ว +3

    My page is reloading even with the preventDefault

  • @slashd
    @slashd 2 ปีที่แล้ว

    Great video, I learned a lot from it! Also, is there any Svelte video's coming soon?

  • @swaroopbabaleshwar6072
    @swaroopbabaleshwar6072 5 หลายเดือนก่อน

    at 10:24 video
    where does snopack keeps compiled ts code ?
    how does this snopack tells browser to use the uuid from node_modues ?

  • @kuroexmachina
    @kuroexmachina 2 ปีที่แล้ว

    sheeeeeesh
    he finally decided to join the TS elite gang

  • @khoinguyen-ft2ys
    @khoinguyen-ft2ys 2 ปีที่แล้ว

    Thanks for your video. Please make more videos about typescript, especially videos about type, convert type, generic type, error with type... JavaScript is not dead, but today a lot of people write code using typescript so I think you should add more videos about it

  • @StrayKev
    @StrayKev 2 ปีที่แล้ว

    I have been waiting for this.

  • @Working800
    @Working800 2 ปีที่แล้ว

    Great video as always, I'll definitely try it

  • @enginvolkan
    @enginvolkan 2 ปีที่แล้ว

    Hi, thanks for your nice videos. I'd like to ask if you have any idea about the "'tsc' is not recognized..." problem. I tried everything on the net and cannot solve it. Thanks.

  • @Web-Frontiers
    @Web-Frontiers 2 ปีที่แล้ว

    Uncaught HierarchyRequestError: Failed to execute 'append' on 'Element': The new child element contains the parent.
    above error is shown while adding task. please help me to get rid of this

  • @crim-son
    @crim-son 2 ปีที่แล้ว

    Awesome content kyle💪

  • @arifinoid9936
    @arifinoid9936 2 ปีที่แล้ว

    More typescripts please 👍

  • @pankajwp
    @pankajwp 4 หลายเดือนก่อน

    The minesweeper code is different then what you have on TypeScript Simplified tutorial, Please update it

  • @dan110024
    @dan110024 ปีที่แล้ว

    Kyle is the kind of breezing over errors as if they were part of the script.

  • @codewithengineer
    @codewithengineer 2 ปีที่แล้ว

    There are some website where one can auto fill a form using resume upload. How do we make such thing?

  • @WispOfSoul
    @WispOfSoul ปีที่แล้ว +1

    if you plan on doing a project like this, please note, snowpack is no longer maintained please don't use it, instead use something like vitejs, parcel, rollupjs or esbuild

    • @kevin3495
      @kevin3495 ปีที่แล้ว

      yea, but the point of this video is litteraly just how to get started with using typescript this will work with other package bundler

  • @JlHAD
    @JlHAD 2 ปีที่แล้ว +1

    i don’t even get why would you change to TS it’s literally JS but more complicated…

  • @thursmornsunlight
    @thursmornsunlight ปีที่แล้ว

    This looks great. I have no idea why I have this right-click error. But I am sure it'll work on other computers LOL. I am always getting errors when I follow tutorials. Ha!
    Uncaught TypeError: event.cancelBubble is not a function
    at HTMLDocument.bringBackDefault (new_rightclick.js:87:31)
    Thanks for the videos! Hope to see more typescript videos!

  • @compncheese8358
    @compncheese8358 2 ปีที่แล้ว +2

    * Me copying and diving into deep details with every line of code Simplified does*
    Simplified: We will be delteing all this
    Me: 🙂

  •  2 ปีที่แล้ว

    You can make Vue.js 3 Composition API, Setup Script with TypeScript and Fetch API video? I don't see much videos along this topic on youtube..

  • @rawiy6343
    @rawiy6343 ปีที่แล้ว

    Hi Kyle, I am pretty new with TypeScript and I followed the tutorial, when I added the list - then it doesn't show as the checkbox for me. Not sure if I do miss something. I have been reviewing it over again and again. If you could please help. Thank you so much

  • @geneee
    @geneee ปีที่แล้ว +1

    would this work in the loadTasks function?
    function loadTasks(): Task[] {
    const taskJSON = localStorage.getItem("TASKS") as string
    return JSON.parse(taskJSON)
    }
    basically type assertion.

  • @robertoacuna4667
    @robertoacuna4667 6 หลายเดือนก่อน

    wow amazing thank you

  • @AlexCernat
    @AlexCernat 2 ปีที่แล้ว

    great video, thanks! just one question: I saw that you used == in ts, or in javascript the recommended comparison operator in === (to exclude type coercion and unneeded side effects); should I assume that ts compiler "transforms" ts == into javascript === and == is the right operator in ts?

    • @justSomeUserOnYT
      @justSomeUserOnYT 2 ปีที่แล้ว

      JavaScript is interpreted, not compiled.
      Typescript is simply transpiled into JavaScript.
      However I don't think the transpiling would replace a == for a ===

    • @konnichiwa01
      @konnichiwa01 2 ปีที่แล้ว

      @@justSomeUserOnYT do you know how to remove a to-do. example to delete a single to-do

  • @irahazda
    @irahazda ปีที่แล้ว

    This is a very noob question; how do I even run the application on the browser. Do I have to use http or express?

    • @kevin3495
      @kevin3495 ปีที่แล้ว

      no, you can litteraly create a file with any name and with extension .html and thats it you just created a webpage

    • @imraff
      @imraff ปีที่แล้ว

      "npm run start" in your project's folder (where you have the package.json saved), to start the snowpack live server. it will watch for changes and refresh automatically.

  • @TheScriptingLegend
    @TheScriptingLegend 2 ปีที่แล้ว

    Would love to see how to use react with typescript

  • @sadullahtanrikulu
    @sadullahtanrikulu 2 ปีที่แล้ว

    Thank you, very useful video, i got a plenty of benefits. :)

  • @adairoreyes1644
    @adairoreyes1644 2 ปีที่แล้ว

    I loved it, please make more TS content :)

  • @psyk0l0ge
    @psyk0l0ge ปีที่แล้ว

    For anyone getting an error with that uuid import.. just keep going her resolves it at: ~18:30 it is supposed to be an error

  • @DennisVeeMusic
    @DennisVeeMusic 2 ปีที่แล้ว

    What a great lesson! Thanks a lot!

  • @hoyinli7462
    @hoyinli7462 2 ปีที่แล้ว

    finally you start using TS!

  • @typicalmolly7737
    @typicalmolly7737 ปีที่แล้ว

    godly tutorial man

  • @vzdev9978
    @vzdev9978 2 ปีที่แล้ว

    Hi kyle, why you not make new react video? Just vanilla js. Are you done with react?

    • @vzdev9978
      @vzdev9978 2 ปีที่แล้ว

      Video about whats new in react 18 would be nice ❤