TYPESCRIPT VS JAVASCRIPT - FULL COMPARISON IN 5 MIN

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • In this video, we’ll review TypeScript vs JavaScript - what’s better and how are they different?
    ▶ Contact Jelvix: hello@jelvix.com | jelvix.com
    We are a technology consulting and software development company eager to share our knowledge and experience.
    Subscribe for more tech tips and tutorials: / @jelvix
    ▶ LINKS:
    Node.js to Ruby - jelvix.com/blo...
    JavaScript vs TypeScript - jelvix.com/blo...
    ▶ TIME CODES:
    ▶ Follow us:
    Facebook - / jelvixcompany
    Twitter - / jelvix
    Instagram - / jelvix
    Linkedin - / jelvix
    Upwork - www.upwork.com...
    ▶ About this video:
    Lately, one of our clients asked us about Typescript vs JavaScript - what’s better and how are they different? So, we decided to give a detailed answer, with all the pros and cons and use cases.
    What is Typescript?
    Typescript can be described as an improved version of JavaScript with increased readability, static compilation, and intuitive interface.
    Watch the video to learn about TypeScript features and how TS is different from JS.

Комментарии • 61

  • @Jelvix
    @Jelvix  Год назад +2

    TypeScript or JavaScript - choose what’s better for your purposes! What are the key differences that make your choice? 🤔

  • @xpkareem
    @xpkareem 2 года назад +49

    This video sold me on Javascript.

    • @remiztical13
      @remiztical13 Год назад +3

      Yeah I’m here to choose as well

    • @rl6382
      @rl6382 Год назад +4

      Lmfao same. I'll stick with JS

    • @i.g.w.t
      @i.g.w.t 11 месяцев назад +1

      Hahaha

  • @AGMXZ1
    @AGMXZ1 3 года назад +35

    I wrote an app in JavaScript, released it, then for the second release ported it to TypeScript. My experience was that I preferred TypeScript. The better intelli-sense made coding faster when using objects and it definitely prevented mistakes. One simple mistake anybody who has written JavaScript has made is an accidental casing typo. For example, if an object variable name is mySharona, and you accidentally typed mySHarona. JavaScript allows this and treats the two as separate variables on the object since it is case-sensitive. This leads to defects as most places expect the correct spelling except for the place you made the mistake. This kind of stuff is even hard to catch in code-reviews.
    For this reason alone, TypeScript is superior. It catches stupid mistakes.
    This was glossed over in the video as the error category of static type checking.

    • @sabinoramirez2600
      @sabinoramirez2600 2 года назад +2

      what about a spell checker plug-in

    • @peanutcelery
      @peanutcelery 2 года назад +2

      ‘use strict’

    • @Meleeman011
      @Meleeman011 2 года назад +2

      just use eslint dude. you can do the same thing without adding an unnecessary dependency.

  • @mehmetakifyucel6461
    @mehmetakifyucel6461 3 года назад +33

    Video says in short:
    JS is less compilation time with less project size and you should use TS.

    • @djdx2
      @djdx2 3 года назад +3

      HAHAHHAAHHAAHHAHAHAH

    • @walterdominickpostrero9931
      @walterdominickpostrero9931 Год назад +1

      😆

    • @abahiduh3246
      @abahiduh3246 4 месяца назад

      The entire classical languages just want to discredit Js but it's not possible... because Java could not succeed over Js, they introduced typescript and call it superset of Js.... when complexity is introduced in design at the detriment of flexibility, it destroys the whole essence... FLEXIBILITY is FREEDOM, it is the SELF WILL on which Designers thrive....

  • @desinihilist5916
    @desinihilist5916 Год назад +7

    Typescript reminds me of Java. So much boilerplate and unreadable code just for benefits which esLint can provide to Javascript.

  • @redpug5042
    @redpug5042 Год назад +3

    typescript seems a bit better to me.
    I personally like the ability to assign parameters and variables types so that i can easily keep track of what they are, and in the one or two cases where i need an arbitrary variable, i still have the freedom to do so.
    It's so much easier to read code when it tells you what things are instead of making you guess.

  • @shaileshpatil3733
    @shaileshpatil3733 Год назад +6

    typescript try to control free style coding of developers. Typescript owned by microsoft that's why they are promoting it more. Always prefer Javascript for freedom of coding.

  • @Meleeman011
    @Meleeman011 2 года назад +9

    javascript is more readable than typescript and you have to write more code in some cases to consume a js response from an api.

    • @jynxycats
      @jynxycats 2 года назад +4

      Readable is debatable. Your codes readability isn't going to falter cause of TS, it'll depend on how you write code in general.
      As for being lazy, well... That's a poor excuse.

  • @diegocharrycardenas457
    @diegocharrycardenas457 Год назад +7

    Typescript = JavaScript + Java

  • @drominitoketchup
    @drominitoketchup 8 месяцев назад

    idk but for ts me it looks better or I have no idea what im talking about because im only programming in C# and C++.
    I would be very grateful for some advice and guidance.

  • @2JZ-it8ug
    @2JZ-it8ug Год назад +1

    Do I still need to learn JavasCript? before go to TypeScript?

  • @crazypeeps8641
    @crazypeeps8641 Год назад +1

    They both use the same words and you don’t have to relearn any thing?

  • @evilbee94
    @evilbee94 2 года назад +3

    I was totally intrigued until he mentioned Product Owners

  • @halle5623
    @halle5623 2 года назад +6

    Why would anyone in their right mind use JS unless they're behind held hostage by legacy frameworks is beyond me.

  • @Phyx1u5
    @Phyx1u5 2 года назад +3

    I really don't see how TS is faster than JS when you gotta type more.

    • @parasharkchari
      @parasharkchari 2 года назад +10

      Speeding up development time is always more about catching and identifying bugs and correcting mistakes; ergo, the quicker you can catch them, the better. Typing is the least time-consuming part of development.
      90% of software development is a mix of brainstorming the optimal attack approach to a problem and detective work to search for what is broken.

    • @olumideolaleye1834
      @olumideolaleye1834 2 года назад +4

      @@parasharkchari This is the more reason one must learn and master JS very well. JS can be written well enough not to battle with bugs

    • @SewTubular
      @SewTubular Год назад

      @@olumideolaleye1834 This reminds me of the old battle between C vs C++, where a large project in C could have far more bugs than C++. ( there's reason why most graphical engines are written in C++ )

  • @dreamsavior1317
    @dreamsavior1317 2 года назад +8

    What is Typescript?
    Typescript is Microsoft's last resort in controlling and setting the standard for the internet since their epic failure with IE. TypeScript will restrict your freedom in determining the model of your program. Because, some people think it's a good idea to prefer strict rules over freedom in programming the web. And, duh...why do it the easy way when you can do it in a more complicated and sophisticated way with style?
    But, because these things become a thing ... and it can pay the bill quite nicely, I guess I’ll jump into the bandwagon too.
    Yippie!

    •  2 года назад +1

      Well said!

    • @mmchayek
      @mmchayek 2 года назад +1

      🤝

    • @jynxycats
      @jynxycats 2 года назад +3

      Restrict functions in only accepting the argument types they are intended to take?... What a wild concept.
      Easy way is the lazy way, and likely the way that will end up just having holes in the code that shouldn't have even been in the commit in the first place.
      Yeesh.

    • @SewTubular
      @SewTubular Год назад +3

      "some people think it's a good idea to prefer strict rules over freedom in programming the web" Because freedom often leads to more bugs and poor structure. 5 million line projects can be written in Python because of it's strong typing. I can't imagine a 5 million line project written in Javascript.

  • @absbi0000
    @absbi0000 3 года назад +6

    4:17 so typescript is slower in creation and compilation? Why are you advertising this as a good thing.

    • @gameknowledgeandit8934
      @gameknowledgeandit8934 3 года назад

      True

    • @djdx2
      @djdx2 3 года назад +1

      its because developer nerds ALWAYS go crazy for new software/language/tools, they foam at the mouth. But honestly.... we need to just keep it simple! Everyone wants their own tools/language to be mainstream. And us nerds get high off new stuff.
      In the End..... its ONLY about the final product. I myself don't care about fancy backend stuff, I just want the final product good.

    • @dreamsavior1317
      @dreamsavior1317 2 года назад +1

      This is never a good thing. People just loves to jump into whatever bandwagon they lay their eyes on.

    • @SewTubular
      @SewTubular Год назад

      Most likely the newer Typescript compiler is less optimized at this point in time. ( and having the compiler check data types may catch errors not caught in Javascript )

    • @abahiduh3246
      @abahiduh3246 4 месяца назад

      JAVASCRIPT IS THE HATED AND MOST USEFUL.... HATERS SHOULD HATE

  • @jessicabrown5723
    @jessicabrown5723 3 года назад +3

    Thank you for such a smart explanation.

  • @almudza9803
    @almudza9803 4 года назад +4

    dart vs typescript

    • @techzone2009
      @techzone2009 2 года назад

      Dart is better lang than typescript

  • @abukholmatov3021
    @abukholmatov3021 3 года назад +2

    Did not catch the work "unespected"

  • @grassCrow
    @grassCrow 3 года назад +9

    Typescript sucks makes unnecessary work … its like your computer has OCD …

    • @wateryagarvideos5186
      @wateryagarvideos5186 3 года назад +2

      Actually OCD causes you to make it the shortest and simplest.

    • @RenderingUser
      @RenderingUser Год назад +1

      actually its the opposite
      the ambiguity of javascript would make even more work

  • @yuryzhuravlev2312
    @yuryzhuravlev2312 2 года назад +7

    TS is ugly, and the dynamic types system has some pros and you killed it.

  • @theflashek1570
    @theflashek1570 3 года назад +1

    ???

  • @arturmuellerromanov4438
    @arturmuellerromanov4438 2 года назад +3

    I hate the transitions

  • @williamjones2128
    @williamjones2128 3 года назад +1

    I really like this video

  • @jakubtomas9154
    @jakubtomas9154 4 года назад +2

    3:28 in 2018

    • @Jelvix
      @Jelvix  4 года назад

      and still growing! ;)

    • @laughtale1181
      @laughtale1181 3 года назад +1

      what should i learn ? for web development

    • @jakubtomas9154
      @jakubtomas9154 3 года назад +2

      @@laughtale1181 try to learn html, css and javascript as a fundamental base and then move to some frontend framework, e.g. React. Maybe try to do some research in job positions in Your country to see, what is the most common FE framework required in job position and go with that.

    • @laughtale1181
      @laughtale1181 3 года назад +1

      @@jakubtomas9154 thanks man

  • @vinix_dev2
    @vinix_dev2 9 месяцев назад

    nice

  • @bryanDevsJS
    @bryanDevsJS Год назад +1

    js

  • @abahiduh3246
    @abahiduh3246 4 месяца назад +1

    hmmmm

    • @Jelvix
      @Jelvix  2 месяца назад

      Hmmmm 🤔🤔🤔