TYPESCRIPT VS JAVASCRIPT - FULL COMPARISON IN 5 MIN

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 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 2 роки тому +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....

  • @diegocharrycardenas457
    @diegocharrycardenas457 Рік тому +7

    Typescript = JavaScript + Java

  • @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.

  • @desinihilist5916
    @desinihilist5916 Рік тому +7

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

  • @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.

  • @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.

  • @evilbee94
    @evilbee94 2 роки тому +3

    I was totally intrigued until he mentioned Product Owners

  • @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?

  • @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.

  • @jessicabrown5723
    @jessicabrown5723 3 роки тому +3

    Thank you for such a smart explanation.

  • @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 2 роки тому +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

  • @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++ )

  • @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

  • @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.

  • @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.

  • @abukholmatov3021
    @abukholmatov3021 3 роки тому +2

    Did not catch the work "unespected"

  • @almudza9803
    @almudza9803 4 роки тому +4

    dart vs typescript

    • @techzone2009
      @techzone2009 2 роки тому

      Dart is better lang than typescript

  • @arturmuellerromanov4438
    @arturmuellerromanov4438 2 роки тому +3

    I hate the transitions

  • @yuryzhuravlev2312
    @yuryzhuravlev2312 2 роки тому +7

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

  • @williamjones2128
    @williamjones2128 3 роки тому +1

    I really like this video

  • @vinix_dev2
    @vinix_dev2 9 місяців тому

    nice

  • @bryanDevsJS
    @bryanDevsJS Рік тому +1

    js

  • @theflashek1570
    @theflashek1570 3 роки тому +1

    ???

  • @abahiduh3246
    @abahiduh3246 4 місяці тому +1

    hmmmm

    • @Jelvix
      @Jelvix  2 місяці тому

      Hmmmm 🤔🤔🤔

  • @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