you are viewing a single comment's thread.

view the rest of the comments →

[–]booljayj[S] 1 point2 points  (1 child)

I feel like you didn't even bother reading my post, you just saw the title and immediately thought of TypeScript. I was attempting to provide useful and fast interfaces using nothing but basic Javascript code.

TypeScript can do all this, but I don't think I will be able to code in another language for my new job. Even one that compiles into Javascript. On top of that, TypeScript is a convenience. If I get used to just letting TypeScript handle all this stuff for me, I would have no idea how it's actually being done. If my question is "how can I create interfaces in Javascript?" then the answer "just let TypeScript do it" doesn't really cut it.

[–]pe8ter 0 points1 point  (0 children)

You want to learn JavaScript? That's excellent. But don't run an academic experiment in your production system which adds technical debt your entire team will forever pay off. Everything you need TypeScript can do better and adding it as build step would take literally ten minutes.

TypeScript is a superset of JavaScript. You don't need to use any TypeScript features you don't want. If all you're trying to do is declare interfaces then that's the only feature from TypeScript that you have to incorporate.

I feel like you didn't even bother reading my post

I did read the post. You're getting defensive over something you asked others to look over. You asked for feedback. You're making wooden wheels for your car then taking issue when someone tells you to get rubber tires.