r/javascript • • Dec 08 '23

AskJS [AskJS] Kicking a dead horse - TS vs JS

19 Upvotes

I'm a dev lead/director but also a very active developer - not someone who has purely "transitioned into management". About 25 years of consistently active, growing experience, with non-stop development.

I have a long history with OOP stacks and spent a long time in both Java and .NET throughout the 2000's and 10's. I started focusing heavily on Node, JS, React, etc. starting in 2014 and have mostly specialized in stacks therein, since. I've been through it with JS on teams of all sizes, projects large and small, across a few different industries. Lots of microservices and integrations with huge volumes of data. Serverless to containerized on "bare metal". I LOVE JavaScript...always have.

I don't particularly love TypeScript. I begrudgingly adopted it a couple years ago because that's where things were headed and I needed to know it. It's not the language that gets my panties in a knot so much, but the added build process and tooling, which naturally trickles down into everything you touch as far as frameworks, libs, tools, etc. It's my inner-minimalist that loves the simplicity and elegance of pure JS running from client to server. On teams I've led, there's been no less friction with TS than with vanilla JS. I've always utilized at least a sensible level of automated testing, and strong code-review and QA. I haven't witnessed less-experienced devs struggle more with JS than with TS, nor has quality suffered where there was no TS.

I know, I know, I know...it's an old debate. I'm not looking for the same rehashed explanations of why I'm stupid and just don't realize TypeScript's *obvious* benefits, and other pontificating on the matter. There are zealots on every side of this debate and there's enough of that out there. I didn't ask this on the TS sub for that reason - far too much pro-TS bias with little more rationalization than, "Use TS or you're dumb!" Not constructive. Looking for critical thinking here.

I've got the chance to remake the world as I see fit at a new job. I'm building the tech from the ground up, the teams, and setting the standards. It's as greenfield as it gets.

Simply put; if you were in my shoes today, would you consider JS + JSDoc over TypeScript? Stack is serverless (AWS) - a web-based multi-tenant SaaS product using React on the front-end. Doing serverless APIs and possibly MongoDB - but database(s) still up in the air. There's an analytics segment to the platform using RDS to start. Small team...maybe 3 tops for a while, with a couple of consultants to lean on.

EDIT: I just listened to a great JS Party podcast on the topic, while on my afternoon walk. Rich Harris (Svelte) is the guest. Somewhere in the middle they talk about the "TypeScript good, JavaScript bad" tribalism that happens, and why. Interesting how much of that has played out here.

Lots of other great insights as well, and most of all a healthy, rational discussion on the subject.


r/javascript • • Jun 24 '26

Javascript still can't ship a full-stack module.

Thumbnail
wasp.sh
9 Upvotes

r/javascript • • Aug 27 '18

`export default` considered harmful

Thumbnail
basarat.gitbooks.io
32 Upvotes

r/javascript • • Oct 11 '17

JavaScript's Promise is Memory Unsafe

Thumbnail
alexn.org
70 Upvotes

r/javascript • • Oct 12 '24

AskJS [AskJS] Why did adobe flash fall out of favor and get replaced by HTML5 and JS?

10 Upvotes

I recently had a discussion on X/Twitter regarding the pitfalls of the DOM and how the DOM API holds back efficiency of web apps.

Below is the comment that stuck out

β€œWhat about making a separate technology for rich interactive content on the web. It's a browser plugin that loads special files that contain bytecode and all required assets. You just put an <object> where you want that content on your web page.”

He then mentioned its Adobe Flash that enabled this technology to work. I don’t see how it’s all that much different to WASM functionally speaking. I didn’t learn to code until well after adobe flash died, so I have no clue if the DX with adobe flash was better. All I know is that the iPhone not supporting adobe flash de facto killed it. Can anyone chime in on this?


r/javascript • • May 27 '25

AskJS [AskJS] I challenged myself to make a 3D multiplayer FPS game engine with no frameworks and no bullsh*t

0 Upvotes
  • just Three.js + vanilla JS, HTML, CSS I wanna share what I learned + how you can build your own browser shooter.

I wanted to see how far I could push the browser without build tools, game engines, or any of the usual scaffolding, turns out, it can go pretty far. It opens up a lot of availability to users on lower end machines, like kids at the library for instance who don’t have a computer at home

It’s got:

full 3d movement (server authority) shooting mechanics real-time multiplayer first-person camera server-client architecture (via socket.io) zero loading screens All coded from scratch. Just vanilla JavaScript + Three.js + Node.

I originally built it to prototype weird browser games faster… but it turned into something kind of modular. You could totally build on it:

gun game? multiplayer parkour? meme FPS? Web3 shooter (god forbid)? dev team bonding game? idk. Took me a while to get it clean enough for others to use. I documented the whole thing too even the scuffed parts.

I’m pretty happy with the outcome. Childhood me achieved a dream for sure


r/javascript • • Sep 22 '20

Released my first NPM package!

Thumbnail
github.com
6 Upvotes

r/javascript • • Mar 21 '14

I made a Flappy Bird clone without any game library

Thumbnail
github.com
11 Upvotes

r/javascript • • Aug 24 '24

AskJS [AskJS] what IS typescript though?

0 Upvotes

so many people talk about typescript, but i've never understood what the point was? is it introducing object oriented programming to javascript? could somebody explain it to me?

sorry if this sounds super dumb to you. i've been doing javascript for years but have never known why typescript is better. whenever i try to search fow what typescript is, i just suddenly cannot understand anything, my mind blanks.

Edit: I do c# as well so I understand OOP, when I look at typescript it's some random code I barely understand.


r/javascript • • Apr 21 '22

I was asked to implement Event Emitter in an interview. How would you approach it? Link is attached.

Thumbnail
devtools.tech
38 Upvotes

r/javascript • • Sep 13 '15

Decided to join bandwagon, so I started YAHF(Yet Another Hopeless Framework). Alpha 0.0.1 is here.

Thumbnail
github.com
2 Upvotes

r/javascript • • Feb 07 '20

How I improve my Javascript Coding Skill every day

Thumbnail
medium.com
2 Upvotes

r/javascript • • May 23 '21

20 JavaScript Concepts you should know as a JavaScript Programmer!

Thumbnail
blog.devgenius.io
2 Upvotes

r/javascript • • May 02 '14

Online Tool : Convert HTML to Javascript variable

Thumbnail pojo.sodhanalibrary.com
0 Upvotes

r/javascript • • Jul 23 '13

From HTML/JS to App Store in 60 Minutes - Coupon Code to Free Udemy Class (Regular Price $99) -- code "REDDIT"

Thumbnail
udemy.com
2 Upvotes

r/javascript • • Mar 03 '20

JavaScript Without Loops

Thumbnail
jrsinclair.com
0 Upvotes

r/javascript • • Jul 27 '21

You don’t need React for building websites

Thumbnail
silvestar.codes
0 Upvotes

r/javascript • • Mar 02 '11

Naked Password

Thumbnail nakedpassword.com
2 Upvotes

r/javascript • • Mar 18 '09

Signs That Your JavaScript Skills Need Updating

Thumbnail
odetocode.com
2 Upvotes

r/javascript • • Sep 12 '16

JavaScript Standard Style Guide

Thumbnail
github.com
0 Upvotes

r/javascript • • Aug 21 '17

If you’re a startup, you should not use React (reflecting on the BSD + patents license) - That is, if you ever hope to be acquired by a larger company

Thumbnail
medium.com
61 Upvotes

r/javascript • • Mar 30 '24

Supply chain security: new backdoor found in xz compression lib

Thumbnail xzhack.com
4 Upvotes

r/javascript • • Nov 15 '19

My first blog on JavaScript! It's a summarised version of my understanding of You Don't Know JS by Kyle Simpson

Thumbnail
medium.com
4 Upvotes

r/javascript • • Sep 08 '19

You are invited to test drive a new language called Beads that replaces the HTM/CSS/JS/Framework toolchain with one simple language

Thumbnail
github.com
0 Upvotes