Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@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. -
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. -
@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 -
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. -
musician6656y@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.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
tahnik63So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with. *5 mins l...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
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...
rant
typescript
fml
js