33

That moment you realise Typescript is not called Typescript because it has types but because of the immense amount of typing you have to do to get anything done...

Comments
  • 2
    Funny gif, but not really anymore typing than JavaScript. Or any OO language.
  • 3
    @norman70688 it used to be waaay worse.
    Nowadays it can seem overwhelming when you go from no typing information (no jsdoc, no flow, no nothing, which frankly is a malpractice to begin with), to typescript which will refuse to build if you write types.

    Overall I don't think it's that bad.

    Side note: typing and being object oriented are two separate issues.
  • 3
    I couldn't agree more.

    I guess that if I worked on a project with dozens of devs, typescript would be more fruitful.

    But for the things I do, using typescript feels like riding with training wheels.
    For the things I do, it feels like slowing down your development, for the tradeoff of making your code robust, which is what tests are for anyway.
  • 1
    @Sabro that's the thing though. Technically javascript is not OO. You can write it as such but you can also write it functionally. And take for example libs such as redux which promote the functional approach. Using such a lib with plain js is in fact less code than implementing it using Typescript.

    But PS: I'm also being a little dramatic. The difference is not huge. I just noticed it and as a true millennial I got triggered xD
  • 0
    Honest question here, why do you feel you have to write types to get anything done?
    I usually use minimal types when prototyping (just turn off the noImplicitAny flag) and you get practically the same experience as if you were just using js.
    From here you can use an incremental approach and write types if you want.
    I realize this kind of defeats the point of having a typed language, but I don’t feel it requires you to write out all the types before you can get anything done.
  • 0
    No, that's Java.
  • 0
    @norman70688 not at all
    Its actually very enjoyable to work with since the compiler infers most types for you.
    Also you don't need to write it in a verbose oop style if you dont want to.

    I dont use classes anymore for most projects and use a more functional like approach.
Add Comment