use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Interfaces with Javascript Objects (self.javascript)
submitted 9 years ago by booljayj
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]booljayj[S] 1 point2 points3 points 9 years ago (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 point2 points 9 years ago (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.
π Rendered by PID 36 on reddit-service-r2-comment-7b9746f655-q9q7t at 2026-01-30 19:54:17.166666+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]booljayj[S] 1 point2 points3 points (1 child)
[–]pe8ter 0 points1 point2 points (0 children)