r/reactjs • • Nov 04 '25

Discussion Is It Normal to Downgrade a Next.js Project from TypeScript to JavaScript?

Guys, is this normal?! I’ve been working on a Next.js project for 7 months and NORMALLY using TypeScript, and everything has been running perfectly, clean structure, proper types, no real issues.

Now, someone new just joined and suggested converting the entire codebase back to JavaScript, claiming that “TypeScript overcomplicates things and creates technical debt.”

The shocking part? They actually agreed with him, and he’s already doing the conversion, even planning to go to production like this, and he wants me to help!

Am I overreacting, or is this completely insane? Because honestly, I’m beyond pissed right now.

840 Upvotes

595 comments sorted by

401

u/MrShedford Nov 04 '25

I'd be pissed honestly, I'd ask:

  • What technical debt specifically is using typescript creating?

  • What is it complicating?

If he can't provide concrete answers then share it out that it's a waste of productivity

85

u/Careless-Key-5326 Nov 04 '25

i did ask all of this, and i don't even remembers his answers i was so pissed

331

u/maria_la_guerta Nov 04 '25 edited Nov 04 '25

You're not going to drive any alignment being a hothead. You may disagree with them, but listen to their reasoning with respect and empathy, and then present your own, based strictly on business value.

I don't know how true these sources are, but this link claims that

In Airbnb, they found out that 38% (!) of bugs could have been prevented by using TypeScript

This is the type of objective reasoning you need to be leaning on. Do this math for your company and let the numbers speak for themselves.

35

u/_Happy_Camper Nov 04 '25

Was going to say similar but this comment is spot on.

16

u/Pantzzzzless Nov 04 '25

You're not going to drive any alignment being a hothead. You may disagree with them, but listen to their reasoning with respect and empathy, and then present your own, based strictly on business value.

This is one of the skills I never considered being a thing, and ended up having to learn quickly to salvage a few cross-domain relationships.

But at the same time, there are definitely some circumstances where you need to be pretty harsh to break people out of their siloed mindsets.

→ More replies (1)
→ More replies (7)

14

u/Strong_Ad_2632 Nov 04 '25

Maybe acknowledge you were pissed (especially it was obvious) so you can talk about it again.

Typescript allow to see errors before runtime (application running), errors that would crash the app.

I felt smart the first time saying this, that is a real + value to me.

→ More replies (3)
→ More replies (10)
→ More replies (1)

261

u/willdone Nov 04 '25

Use your adult words and explain to everyone why he’s wrong.

61

u/Careless-Key-5326 Nov 04 '25

that's what i did, but well he is more experienced than me so i am the wrong one

91

u/[deleted] Nov 04 '25 edited Jan 23 '26

This post was mass deleted and anonymized with Redact

abundant political late grab depend tie special decide narrow shocking

13

u/TheGoodRobot Nov 04 '25

Leave a dev job in this economy? Nah. Just lay back and think about England.

13

u/SixteenTurtles Nov 04 '25

Why deploy directly to prod when you can just develop in prod. No one likes code promo days, just click save and boom.

→ More replies (3)
→ More replies (17)

16

u/MRainzo Nov 04 '25

He clearly is not more experienced than you

→ More replies (9)

4

u/Readdeo Nov 05 '25

As a software developer I really find it hard to argue with idiots. They lack the insight and understanding, but have a huge skillset on complaining, arguing, making up excuses on the spot for anything and making people tired arguing with them. To fight shit like this I have to build new skills to handle stupid people with unlimited energy and the willingness to go as far as it's possible so they don't have to learn new things. This is not what I signed up for... So frustrating.

→ More replies (1)
→ More replies (1)

69

u/PerryTheH Nov 04 '25

I'd stand my ground. This is probably the line between been a jr and a sr, if someone is doing something bad that will affect overall the project, you should stand your ground.

And start looking for other job, if your team agrees with him you're working with a bunch of monkeys.

Unless there's something from this story you're not telling us, this seems like a horrible idea.

29

u/Careless-Key-5326 Nov 04 '25

I am telling what i heard, really It is a startup and he is a new hire which is a Fullstack and proposed this idea to our CEO which is not technical and they told me in a meeting and i told this this is a extremely risky move and it shouldn't be done But he kept talking and saying bla bla bla

32

u/Yellow_Bee Nov 04 '25

Just tell your CEO to ask ChatGPT so as to "confirm" who's in the right.

62

u/andrei9669 Nov 04 '25

asked copilot to respond in the most condescending and obnoxious way:
"we have a fullstack application codebase written in typescript. a new hire came in and said we should strip all types and just use plain javascript because: “TypeScript overcomplicates things and creates technical debt.”"
its response:
"Subject: Re: Let’s Strip TypeScript Because… Reasons

Hey there,

Wow. Just wow. I have to say, it takes a special kind of courage to walk into a TypeScript codebase — one that’s been carefully architected, maintained, and scaled — and suggest we rip out the entire type system because it “overcomplicates things.” Bold move. Misguided, but bold.

Let me guess: JavaScript is “more flexible,” right? Like a pair of sweatpants — comfy, but not exactly what you wear to a job interview. TypeScript is the tailored suit. It might take a minute to put on, but it doesn’t fall apart when you sit down.

You see, TypeScript isn’t the problem. It’s the adult in the room. It’s the thing that stops us from passing undefined into a function and wondering why the app exploded. It’s the reason our IDE doesn’t cry itself to sleep every night. It’s the reason we can refactor without sacrificing our sanity.

Calling TypeScript “technical debt” is like calling seatbelts “driving restrictions.” Sure, you can drive without them — until you hit a wall.

So no, we’re not going to strip out the types. We’re not going to downgrade our codebase to a free-for-all of runtime surprises and console.log debugging. We’re going to keep using the tool that helps us write code like professionals — not like we’re speedrunning a hackathon with a hangover.

But hey, welcome to the team! Looking forward to your next suggestion. Maybe we should replace our database with a Google Sheet?

Warmest regards,
everyone who’s ever maintained a real codebase"

I really like this part "Calling TypeScript “technical debt” is like calling seatbelts “driving restrictions.” Sure, you can drive without them — until you hit a wall."

→ More replies (10)
→ More replies (1)

11

u/codeptualize Nov 04 '25

Organize a one on one with the CEO, explain like you would to a 5 year old what the consequences are (cannot read properties of undefined), crash boom in production.

Also explain how Typescript speeds up development, talk about refactoring, auto complete, LLM's working better with than without types, talk about how literally everyone is moving towards types instead of away from them.

If that doesn't yield the right reaction, draw your conclusion. This is your time to shine and solidify your position in the company.

→ More replies (1)

10

u/Mogget24 Nov 04 '25

Ah that's the problem imo, he's "fullstack". By reading what you wrote in other messages I'm starting to think that maybe he CAN'T use typescript because he DOESN'T know it. If he has lots of experience in years, it could even be that he was on some legacy project that was not using TS at all and then he's not confident using that and proposing something that belongs to his confront zone

5

u/macrozone13 Nov 04 '25

Apart from all those tips, don‘t forget to talk the CEO language:

Implementing/maintaining/refactoring/evolving the code base will be more expensive and cost more money. Each bug will cost you money. Heck even the guy removing the types will cost you money.

→ More replies (4)
→ More replies (1)

34

u/__vivek Nov 04 '25

We're doing opposite, We're in process of migrating legacy codebase to TypeScript.

56

u/Careless-Key-5326 Nov 04 '25 edited Nov 04 '25

That's what a normal human being would do

58

u/AbanaClara Nov 04 '25 edited Nov 04 '25

It's not normal to not use TypeScript on anything that is meant to earn more than 1 dollar.

I would literally fuck right off a company that won't use TypeScript. It's a god damn disaster.

Where I work we use ts heavily and we even have some strict lint rules, BUT our swagger generator could not support generics which meant many of the response and request payloads we define for our endpoints has to be manually written since we cannot use utility types or our own generic types

The lack of generics on API spec alone is a head ache for me. Can't imagine going back to JS

7

u/TracerBulletX Nov 04 '25

That's a pretty big exaggeration, plenty of companies have made billions of dollars using JavaScript before and to this day. However, typescript is a nice tool chain, super useful, and for sure rewriting an already existing codebase backwards is incredibly dumb.

11

u/neosatan_pl Nov 04 '25

Just to preface, I use TS since it was released to 0.8 beta, one of the better designed programming languages. Would I switch from TS to JS? No.

With the above out of the way... I seen unfathomable mess in various companies using TS. It was mostly cause developers used types to enforce linter rules, rather than create contracts between different parts of the codebase. In these cases I would support switching to JS cause they aren't really using TS.

→ More replies (9)

0

u/Careless-Key-5326 Nov 04 '25

i did tell him all of that, and not let's just go back to JS until we get more than 2000 users or something

→ More replies (1)

7

u/Breakpoint Nov 04 '25

these are fake posts, right?

→ More replies (1)

734

u/Bigfurrywiggles Nov 04 '25

Did your company accidentally hire DHH?

160

u/michaelfrieze Nov 04 '25

Yeah, it looks like they hired a DHH fan. I guarantee he’s gonna be using words like “merchants of complexity”.

32

u/wholesomechunggus Nov 04 '25

ahahahah merchants of complexity, absolute clown fiesta

→ More replies (2)

7

u/craig1f Nov 04 '25

Ugh, I had a boss on my last project that had the same philosophy, and quoted this guy. I'm like "this guy ... writes Ruby. Why do we care about this one guy's opinion on TS/JS? I don't even like Ruby"

→ More replies (1)

82

u/gbersac Nov 04 '25

It’s a joke referencing DHH (David Heinemeier Hansson), the creator of Ruby on Rails. He’s known for rejecting "modern complexity", things like TypeScript, static typing, or heavy frontend frameworks in favor of plain, simple code.

100

u/mexicocitibluez Nov 04 '25 edited Nov 04 '25

He's also known for rejecting reality.

His blog post on freedom of speech is hilarious (especially since Trump took office). He actually has the gall to bring up JD Vance as part of this, despite the Trump admin deporting people for being critical of Israel, wanting to jail people who made insensitive remarks about Charlie Kirk, threatening to take away news licenses that are critical of the President, strong-arming law firms and news agencies, etc.

→ More replies (11)

11

u/abraxasnl Nov 04 '25

“Rejecting modern complexity” and “inventor of Rails” is paradoxical.

→ More replies (2)

17

u/Kyudojin Nov 04 '25

Did you paste this from an AI answer?

→ More replies (1)

14

u/anonyuser415 Nov 04 '25

It's a comment made by a Redditor with AI.

→ More replies (2)
→ More replies (7)

20

u/maria_la_guerta Nov 04 '25

Comment of the year 👏

113

u/ThatBoiRalphy Nov 04 '25

The time you spend stripping out Typescript would probably be as time consuming as just adding types as you go.

Honestly this just sounds as someone that doesn’t want to use Typescript to begin with.

If it were me and the company I worked for would value, regardless of rank, such an unfounded, time consuming and drastic measure over my opinion after working for on a project for 7 months, i’d be seriously pissed.

18

u/nhepner Nov 04 '25

Well... and a whole new block of time unfucking a whole new group of bugs and communications.

5

u/gemini88mill Nov 05 '25

When we switched to typescript we had people who thought this way. It was beyond annoying.

4

u/Careless-Key-5326 Nov 04 '25

Thanks guys, i just wanted to know that i have the right to be pissed.

3

u/BenchEmbarrassed7316 Nov 04 '25

Calm your anger. Who makes the final decision? If it's not a technical person - have you made a report for them how much the refactoring itself will cost, how much longer it will take to add new features due to the lack of documentation in the form of types, how much money will be spent on fixing errors that would be impossible with static types? What your enemy is doing is a money loss for the company. Just show it. Here they gave a link to an article with 38% and a large company, find a few more.

→ More replies (1)

82

u/DasBeasto Nov 04 '25

Nope. This is akin to deleting all your tests because they complicate things, like technically it’s a little more work, but for good reason.

→ More replies (9)

44

u/ohx Nov 04 '25

It sucks being the only sober person in the car while also being in the back seat.

My career advice is bite your tongue and roll with it.

My advice for coping is to use JSDoc, and when reviewing or developing, add // @ts-check to the top of each doc since it'll trigger type flow in any IDE with Typescript Language Services. Then you can get an idea of whether code quality is actually suffering.

As long as defensive coding practices are being used, you should be fine. And something to consider too is, for bad developers, typescript can provide a false sense of type safety, since types can be prescribed without any form of runtime validation.

13

u/87oldben Nov 04 '25

Also if you have reporting software like sentry or datadog, start recording how many errors in prod are because of something being undefined.

Make a chart and show the error's inevitable rise

4

u/yerfatma Nov 04 '25

It sucks being the only sober person in the car while also being in the back seat.

Immediately stealing this.

→ More replies (1)

18

u/chrismaxxing Nov 04 '25

One of the dumbest things I’ve ever heard.

→ More replies (1)

50

u/yksvaan Nov 04 '25

Sounds like a clown fiesta. I would look at switching company since there are obvious non-technical issues as well.

Also converting to js means pretty much stripping the type information, you should be able to just use a tool and transpile it and then you got pure js. I don't know what the guy is "working on". 

8

u/Simmol_fonix Nov 04 '25

Busy work without any real value :)
Classic move for looking more busy and important then you really are...

I am sorry for OP if the place he works value these types of people and agree with them.

12

u/No_Record_60 Nov 04 '25

Who's "they" here? And is the new hire son of the CEO?

12

u/TheExodu5 Nov 04 '25

This is some AI generated rage-bait.

3

u/zjz Nov 04 '25

it feels too stupid for a machine to think up

→ More replies (1)

10

u/theQuandary Nov 04 '25

What was their previous experience?

I’ve generally found TS useful (despite it being intentionally unsound and not helping performance or warning of performance issues).

That said, I’ve worked on multiple projects now where they went overboard on the types. We’d lose entire dev days or weeks on simple issues that were made complex by trying to make the TS compiler happy.

If their only experience was on that type of code base, I can see how that might have soured them on the idea.

Like most jobs, the biggest problems are people and relationships and the most important skill is understanding people.

Maybe you can make the case for using types with a light touch (use any of it gets complicated) for editor autocomplete and basic function parameter checking at API/module boundaries. It’s not the outcome you want, but it’s a middle ground they might accept. If you can get them sold on those, perhaps you can add more later.

Unfortunately, if you’ve stomped your foot and laid down your demands, they are probably too far invested in their position to find a middle ground. In that case, start using jsdoc, ride out the economy until you can find a more preferable job, remember that you get paid the same for TS and JS (and JS is still way easier than ruining your back doing construction), and promise total yourself that you’ll approach things differently next time.

9

u/retrib32 Nov 04 '25

I think it’s completely valid. Especially if you were using a lot of anys in your types

→ More replies (2)

29

u/mastermindchilly Nov 04 '25

Particularly with inference that types can give coding agents and coding agents’ abilities to resolve TypeScript issues for people , there is no reason not to use TypeScript.

→ More replies (1)

7

u/ArcMutexOfTheseus Nov 04 '25

There is a tiny sliver of truth to this view. Typescript has a number of inescapable fingertraps in a sufficiently large codebase where there is no correct answer (often a result of trying to be too-clever by half). But the real problem here though is all-or-none thinking. 

Despite some correctness issues, TS adds a lot of value. Rather than taking one’s toys and going home - A key realization I recommend having is that typescript works for you, you don’t work for it.

It’s ok to have a ts-ignore or a cast when you get stuck one of these finger traps. Let one of the junior devs earn some grey hairs on it later. But a lot of devs seem to see this as a personal defeat, and seem to prefer driving themselves insane trying to appease the type system, or quitting.

7

u/da-kicks-87 Nov 04 '25

Not everyone likes TypeScript. I don't use it for my marketing websites.

→ More replies (1)

13

u/No_Ambassador5245 Nov 04 '25 edited Nov 04 '25

It's insane how this obviously fake story garnered so much attention, but it's even more baffling seeing all the comments hating plain JS like it's fucking cancer. It all boils down to Javascript, and any dev that can't write a good app with plain JS is a moron in my books if we go by all the elitism spewed out around. Many errors happen due to logical issues more than type mismatches, and you won't figure out what's happening by looking at your loosely defined types or your extremely complex classes/interfaces.

No need to go further down the rabbit hole, this is a TS vs JS discussion and one of the only real benefits it brings is type safety in compile time, which while good it's not really the magic solution for all problems everyone is making out to be.

Also, those comments supporting TS cuz it's easier for AI to read tell me all I need to know about the majority of the commenters here.

2

u/the_hummus Nov 04 '25

By "doing the conversion", do you mean manually removing all type information? Like, instead of just running `tsc` once and using the compiled code? Because that would be... chef's kiss

4

u/Careless-Key-5326 Nov 04 '25

I don't know, i just told him it is your thing so do it whatever you think it will work, I'm no longer interested i will just do what i am asked to do until i fine a new offer

→ More replies (2)

5

u/kaouDev Nov 04 '25

link this thread in your slack channel

4

u/IncontestableGrey Nov 04 '25

It's a lost cause at this point. Let it go, don't let this drive you crazy

4

u/bacf Nov 04 '25

this didn’t happened

30

u/gustix Nov 04 '25 edited Nov 04 '25

Listen, I like TypeScript and we're using it in our projects (CTO here).

However, I think a bunch of you in here (sorry to be polarizing) are elitist narrow-minded developers, talking down on those preferring dynamic types, claiming dynamically typed projects are unfit for prod etc. The reality is most of the web is untyped without any catastrophic consequence. Saying TypeScript is a requirement to build stable projects is a, yes you got it, skill issue. ;)

That said, skill issue can also be said about the new hire that wants to rip out TS. Technically I think this guy is in the wrong when the project is working well with TS already in place.

However #2... My manager senses are tingling... the biggest thing I noticed from this post was the remark about the others agreeing with this new hire. Which means the real issue of this post is: The dev team is unaligned in this company. Big refactor decisions can apparently be taken by anyone here. Refactors = scary and expensive.

Maybe this particular tech team is more comfortable without TS and is able to deliver with JS and with a higher level of developer happiness. That is a real tangible metric that might even outweigh the benefits of TS, depending on the team and company culture.

5

u/ArcMutexOfTheseus Nov 04 '25

This is the headline: new dev comes in with savior complex and management is snowed by their overconfidence. Indeed this suggests bigly trust and communication issues in the org.

That said, If there actually is a developer happiness issue with typescript, that suggests someone on the team has been cargo culting too hard. The solution is to be reasonable and realize that typescript works for you, you don’t work for it. Add a cast/ignore and move on. Throwing it out entirely is an ego trip. TS has escape hatches for a reason.

5

u/csorfab Nov 04 '25

preferring dynamic types

I don't really see how using Typescript takes away from the dynamic nature of Javascript. The incredible feat of TS is that you can express nearly every dynamic use-case of Javascript in a formal language that otherwise you would need to keep in your head, JSDoc, tests, or endlessly retracing what's coming from where and in what shape.

Sure, people have developed tools, methodologies and conventions to write production-ready Javascript code, but they are usually way more cumbersome and boilerplatey for the same level of safety than just using Typescript. So yeah, no, I still don't see why anyone would want to go with plain JS for projects that are bigger than a few files.

2

u/andarmanik Nov 04 '25

Thinking this too, coalitions aren’t formed by an individual but mobilized by individuals.

I see it like, charismatic guy shakes up uncharismatic leaders and finds out everyone else was already in a secret coalition the leader never knew about.

→ More replies (30)

1

u/NotGoodSoftwareMaker Nov 04 '25

It sounds like your company might be a startup of sorts?

Anyway, I would just ask everyone if they are absolutely certain that this is the path they want to go down

If they say that they know what they are doing and that everything is all good then I would continue working and just cash that paycheck until it all comes crashing down

Im also kinda malicious so I would create a bot that posts the average number of bugs, regressions, code reverts on slack every week since this decision was made, along with who proposed it. The trick is to get them to agree with this by selling it as a great way to measure the improved velocity and how cool it would be

1

u/Careless-Key-5326 Nov 04 '25

Yes Now i don't even care. I will just do what I'm asked to do

1

u/Milky_Finger Nov 04 '25

One of the joys and pains of being a senior developer or architect is that it's your one voice of reason against 10 people in the pipeline who are arguing against you.

If you lose and the consequences are dire, you quit.

1

u/Careless-Key-5326 Nov 04 '25

I am not a senior 🗿 How can i handle that.

1

u/Milky_Finger Nov 04 '25

Well what does the senior say?

1

u/Careless-Key-5326 Nov 04 '25

This is a startup. You should guess the rest

1

u/gaytentacle Nov 04 '25

Mods please delete llm slop posts this is ridiculous 

1

u/Careless-Key-5326 Nov 04 '25

This is real. It just happened today. i didn't make this up

13

u/Nyxation Nov 04 '25

You're not overreacting. This is an absurd take for being in 2025. If this was a totally greenfield project for a POC, I could see the argument for an initial draft. But for any kind of existing codebase, especially something that's already used in production, is absolutely insane and asking for problems.

Sounds like you're having trouble getting any traction though, so... best of luck dealing with the fallout or finding a new position somewhere less of a shitshow.

5

u/TheGoodRobot Nov 04 '25

Even then, I’ve found I can get POCs out faster because I’m not trying to track down what a prop is supposed to pass constantly.

→ More replies (2)

3

u/Ok-Present-710 Nov 04 '25

This should be your CTO responsibilities, that is, to prevent people from randomly starting to change code patterns and dumping the overall quality of the product. No "programming language" change should happen like this , but should require several days of discussion between senior devs following specific steps (e.g. tech proposal, demonstrations and so on) If it was me, I'd be screaming in the halls

3

u/VolkRiot Nov 04 '25

Honestly, you probably won't like this because you already seem outraged by this call, but in truth, it depends.

If you are a small team responsible for the entire Frontend and everyone reviews everyone's PRs and is generally aware of most of the things added and changed then Yes, you don't really need Typescript, and you are probably just spending extra time designing types for people who are already familiar with the interfaces, and responsible for those interfaces as much as you.

If, on the other hand, you are a larger team then this is absolutely terrible and the person recommending it is a fraud.

→ More replies (3)

6

u/SpookyLoop Nov 04 '25

I do have a phrase: bad TypeScript is worse than bad JavaScript.

Both are fundamentally pretty un-opinionated, but typescript allows people with bad opinions to strictly enforce those bad opinions in compile time, and once you have two people with two differently bad opinions writing typescript, it becomes an absolute monster mash of coding fuckery and a complete nightmare to address.

Are you guys are at least going to use JSDoc? If so, you should take a deep breath and see where this leads. There's a good chance it's not a completely asinine decision. An antiquated decision, sure, but not one coming from pure incompetence.

If you guys aren't even going to use JSDoc, fuck that.

4

u/Heavy_Hole Nov 04 '25

It took too long to find someone analyzing the tool and it's uses, instead of defending the tool they use and are most familiar with.

4

u/xfilesfan69 Nov 04 '25

What’s his argument that Typescript overcomplicates and creates technical debt? I don’t totally disregard that out of hand. I really like TS but with JSDoc types there are ways to get type safety in plain JS (svelte converted their whole repository back to JS, for instance, in favor of JSDoc types).

→ More replies (1)

2

u/[deleted] Nov 04 '25

Is he at least using doc types?

2

u/teg4n_ Nov 04 '25

Are they converting it to jsdoc and still type checking or are they just deleting all the types? I can see at least some rationale for jsdoc, not so much with just deleting

2

u/ElaborateCantaloupe Nov 04 '25

JavaScript is overly complicated. Just write everything in binary.

2

u/rsajdok Nov 04 '25

The next step will be to use jquery

2

u/SpiderInTheDrain Nov 04 '25

I don't think you are overreacting.

JavaScript is an evolving language that will make TypeScript obsolete in the future, pretty much like SASS and LESS CSS preprocessors today. However there is no equivalent features to TypeScript today in JavaScript that justify this move now. It's way too early and it will be a huge waste of time.

2

u/Revolutionary_Ad2766 Nov 05 '25

You mean upgrade? If so, yes.

2

u/dronefucom Nov 05 '25

I suspect this post was written by gpt...

2

u/Anxious_Algae9609 Nov 05 '25

I’m in the fuck Typescript camp. Prepare yourselves for a cleaner smaller easier to read codebase.

2

u/timtody Nov 05 '25

This AI generated rage bait

2

u/Vegetable_Fox9134 Nov 04 '25

Maybe the new hire is secretly trying to improve the job security of everyone by inflating the work hours ? Another 300 + work hours surely justifies the 0.2 seconds improved compile time

2

u/kazkabel626 Nov 04 '25

Quite the opposite. Typescript (well typed) is one of the biggest ROI things you can have in your codebase. It really pays off.

2

u/Morel_ Nov 04 '25

Run, run, run....

2

u/[deleted] Nov 04 '25

If by technical debt, he means job security since he's the only one who may understand the codebase monstrosity. Then I agree with him.

2

u/chamomile-crumbs Nov 04 '25

That’s just fucking crazy

2

u/nierama2019810938135 Nov 04 '25

A lot of comments saying how bad this is, but what are the arguments as to why it is bad? What arguments should he bring forward in an attempt to sway the rest of them?

2

u/JVNHIM Nov 04 '25

you working with a bunch of lazy juniors

2

u/paulordbm Nov 04 '25

Let him dig his own cave. You can always revert to a commit prior to his rewrite when shit blow up.

1

u/[deleted] Nov 04 '25 edited Jan 23 '26

This post was mass deleted and anonymized with Redact

work grey north start expansion plant knee tap racial payment

1

u/dwalker109 Nov 04 '25

I think you have to take a step back and evaluate this objectively. You’ve made a lot of emotional statements on this.

Generally, there are many good arguments to not use TypeScript when writing libraries. Shipping the actual runtime library code does massively reduce complexity (no source maps, no transpilation, simpler build and publish) and it’s more like the paradigm you’d see with other languages.

You can still annotate types with a different comment based syntax and get almost all of the type safety. So it has legs.

For an application which is going to have a bundling step anyway, and won’t be shipped as a dependency, I struggle to see why you would do this. Usually.

1

u/EricStrongguy Nov 04 '25

To be fair. I have seen bad Typescript project, a lot of any, a lot of wrong type. Which to be honest I rather just working with JavaScript. But most of the Typescript projects are mostly nicely typed, and I can see no reason go back to JavaScript

2

u/PrestigiousWash7557 Nov 04 '25

Everything is any without TypeScript

1

u/ekydfejj Nov 04 '25

This is pure asinine thought. If he wins, you should keep your eye's wide open. A horrible path to start on.

Edit: Lets use PHP, it does OO and doesn't have all those nasty...types, like Java.

1

u/intercaetera Nov 04 '25

It's a bit wild to have a "TypeScript Next.js" project and think that TypeScript is the bigger source of technical debt here.

1

u/bossier330 Nov 04 '25

There is quite literally no way that this new guy has any cogent argument that would withstand any real scrutiny. This smells like a case of “I don’t understand, and therefore it’s bad”.

Setup an emergency call. Make your case. And more importantly, make him make his case, which he will then need to defend against all of the trivially easy arguments against it. If he still “wins”, there’s something weird going on, and it isn’t actually about complexity or technical debt.

1

u/dxsquared Nov 04 '25

I'd say its the opposite of tech debt. It helps organize the project into known standards. Sure it forces you to do things certain ways, but it sure is nice to know what you're looking at and what type to expect.

1

u/LeonardoRossi Nov 04 '25

To be a little of “devil’s advocate” here, I can see one instance that the new approach could be better than keeping what’s in place:

How many any types you have spread in your codebase?

I worked in a codebase where using any was the norm, not the exception. In that scenario, the false sense of security that just saying that we were using typescript was dreadful (we had the same issues that we would have using JS, and added to the false sense of security that ‘if the editor didn’t complain that must be right’)

Other than that - which honestly shows a bigger problem than JS/TS choice - I don’t see a reason not to use Typescript.

→ More replies (1)

1

u/FlashyStudent2748 Nov 04 '25

At least use js doc for types if ts is going to be ripped out. 

TS done right should help shift left on issues rather than catching issues in a live environment 

1

u/alien3d Nov 04 '25

i like.. yes 100% agree. its over complicated when the library is not yours and undocumentated.

1

u/brandonscript Nov 04 '25

Ask one simple question: what is the business value of downgrading?

1

u/[deleted] Nov 04 '25

:any

1

u/Zaphoidx Nov 04 '25

10/10 ragebait

1

u/Low-Barracuda2818 Nov 04 '25

Lmao. What is the process like for converting back to JS? Just deleting all the type declarations/annotations and renaming files to .js?

1

u/adzm Nov 04 '25

Somewhat related note, is there a name for the subset of typescript that works with simple type stripping? That is, no enums etc. I tend to gravitate towards this style, though I know there are use cases for typescripts' enums, though they are lacking compared to use cases for namespaces (and the convenience of the public/private/protected thing in class constructor params).

1

u/dothefandango Nov 04 '25

He's 100% using AI to do it too. Just to seem busy.

1

u/Negative-Magazine174 Nov 04 '25

not normal i think, but i will consider zod to replace ts interface, it still ts but you can still use plain js in .ts file right? nothing wrong with that

1

u/vv1z Nov 04 '25

I’m in the minority in that I greatly prefer reading JavaScript to TypeScript… but also ripping out type declarations can’t be the highest value deliverable in your pipeline. If it is that’s a red flag

1

u/LeekClean Nov 04 '25

Bro this must be a bait fr

1

u/NULL_42 Nov 04 '25

damn broski. that's contrarian for sure. i'd skedaddle.

1

u/DARKRonnoc Nov 04 '25

Typescript saves you from runtime errors by shifting them to compile time -- far easier to diagnose, resolve, and avoid. He is incorrect. Converting to JavaScript removes all of that.

1

u/Roguewind Nov 04 '25

This clown is going to start insisting on vibe coding everything next because it save development time and any tech debt won’t be a problem because he’ll only stick around for 2 years max.

1

u/spookymulderfbi Nov 04 '25

my guess would be new guy being full stack means "backend dev who had to build a frontend once or twice" in apparently plain JS, maybe tried it in TS but had some issues and got past them by removing the TS.

My take would be "i would maybe understand this opinion from a JR frontend dev, but if he has backend experience, the benefits of typescript should be immediately obvious" and then you go down the standard bullets about why it was invented in the first place. Emphasize the difference between your current state and operating "at scale", in terms of both users and eventually the number of engineers editing the code. Non-technical CEOs are hard to sell sometimes, but you have documentation in your favor.

1

u/mauromauromauro Nov 04 '25

Even if the claims were true (which aren't), refactoring 7 months of code is probably going to introduce new problems .. just as ts reached #1 most used language in github

1

u/infinitely-scrolling Nov 04 '25

If they don’t agree with your suggestions, there’s nothing you can do to change their minds. Just do what they say and collect the paycheck.

1

u/LoneWolfRanger1 Nov 04 '25

Refactoring anything is going to be a huge pain when you remove all your typing

1

u/roynoise Nov 04 '25

New person has a skill issue and is a good salesman, stakeholders are ignorant of technical reality and gullible to the new salesman on your team. End of story.

1

u/Dreadsin Nov 04 '25

I’ve had something similar happen. I was working on a project which was planned to use typescript but a coworker fought it every step of the way

Turned out, typescript was actually catching a lot of his bugs and he felt like he was being “slowed down” and “prevented from writing code his way”. He seemed to fundamentally misunderstand what typescript is, as he thought it was a completely different language than JavaScript. He didn’t know it compiles down into JavaScript

1

u/BenchEmbarrassed7316 Nov 04 '25

One has to leave, either you or him.

If a company wants to keep you, it's a smart company and we all want to work for it. If a company wants to keep him, they're not very smart and it's only a matter of time before they make another stupid decision.

1

u/WesEd178 Nov 04 '25

Loooooool, no bro not because he has more experience years means that he is right. He is just saying that because he doesn’t know typescript at all and they only have experience with JavaScript only and doesn’t want to learn Typescript. Every serious project should be using Typescript.

You should keep pushing Typescript for everything. I mean just search for Typescript vs JavaScript and 100% all of the results will tell you to use Typescript for serious projects

1

u/1Blue3Brown Nov 04 '25

Thanks, this gave me a good laugh.

1

u/mr_brobot__ Nov 04 '25

Lmao. Time to find a new job this place is run by idiots.

1

u/[deleted] Nov 04 '25

Bhai everything you write in javascript will work in typescript why the hell he want to use js. Just ask him did he really knows the difference between both and how does that even works

1

u/AppealSame4367 Nov 04 '25

Well it's not forbidden to use pure javascript and typescript does add a lot of checks and type requirements that coudl be unnecessary.

It depends entirely on what your app is doing.

Example: You have some kind of interactive calculator or entry form for accounting. There, typescript would be great to make sure input will be right.

1

u/Rojeitor Nov 04 '25

Send this reddit thread to the CEO.

1

u/fzammetti Nov 04 '25

I think there are valid reasons one could argue at project initiation to go with JS over TS. I know that's not a popular opinion these days, but I think it's true.

And I likewise think there are valid arguments for taking an existing codebase from JS to TS, though to me that's where it starts to become a harder sell.

But going from TS to JS in a (nominally) existing project is... weird. Like, very.

Does TS overcomplicate things? Well, for sure it adds complications, but whether it OVERcomplicates is subjective.

But creates technical debt? Hrm, I can't even come up with a SPECIOUS argument for that. I guess maybe it's "technical debt" that devs who already know JS have to bone up on TS? That might be true in a way, but I definitely wouldn't consider it "technical debt" because learning new things is kinda what we do 'round here anyway!

IMO, you're definitely not overreacting. It's a bizarre direction... and this is coming from someone who, frankly, isn't the biggest fan of TS generally... I certainly don't consider it the One True Language(tm) at least like many seem to... but I can't conceive of a situation where I'd advocate for going from TS to JS.

1

u/yabai90 Nov 04 '25

I have never heard that and I didn't think I would. Crazy world we live in.

1

u/Levurmion2 Nov 04 '25

bruh... get out 🫣😂

1

u/87oldben Nov 04 '25

"We'll just write code that works every time"

1

u/Used_Lobster4172 Nov 04 '25

Not only is it not normal, but if everyone at your company agrees with him, you need a new job,

1

u/Horror-Wrap-1295 Nov 04 '25

TypeScript has trade-offs, and in most cases, those trade-offs aren’t worth it.

First, it’s a non-standard extension of JavaScript maintained by a single corporation (Microsoft). While that’s not inherently bad, it creates vendor lock-in and long-term maintenance risk, especially in environments that prioritize open standards or need to interoperate across diverse toolchains.

Second, TypeScript adds significant syntactic overhead. Type annotations, interfaces, generics, and config files increase cognitive load and make code harder to read, not easier, particularly for small teams or rapidly evolving prototypes. Proponents argue that types serve as documentation, but well-written comments or clean function names often achieve the same with far less verbosity.

Third, it introduces a compilation step that slows down iteration cycles. Even with incremental builds, you’re adding complexity to your pipeline that pure JavaScript avoids entirely.

And what do you get in return? Marginally earlier detection of certain classes of bugs, bugs that, in a properly tested codebase (with unit, integration, or E2E tests), would be caught anyway. Types don’t replace tests; they just shift where some errors surface.

1

u/obanite Nov 04 '25

It's not great. I've worked on large multi-team JavaScript projects before and there were endless mountains of defects that static typing would have prevented (endless missing undefined/null checks were just one category).

Maybe what you could say is "okay, I accept we're doing this, but I'd really like us to measure the number of defects and production incidents after we go live with the JavaScript version, and consider the option of reverting back if they change significantly". Choose some simple metrics like the number of bug-labeled issues per week and the number of incidents resulting in an emergency deploy to production bypassing regular process.

If they argue with that too then I would probably seriously look for a new job personally, because you're not working with rational people.

1

u/local_eclectic Nov 04 '25

Who agrees with them? Start blocking PRs if you're really concerned.

Going to JS from TS is insane.

1

u/neilk Nov 04 '25

It's not normal, but also, not quite as insane as you're making it sound

  1. TypeScript provides relatively minimal benefits compared to JavaScript. At best it helps you when developing, without any of the actually fun tricks you can do with types.

  2. TypeScript is not the language you actually ship to customers. It's always downgraded to JavaScript.

  3. Some legacy libraries don't use TypeScript anyway, obviating the benefits whenever your data passes through them.

However, it also doesn't make any sense to back it out once you have it. The world is moving towards direct execution of TypeScript in Node.js and in more environments anyway.

1

u/yerfatma Nov 04 '25

Reminds me of the time I had finally gotten a very big and very expensive project settled and in a good place for $BIG_UNIVERSITY and they decided they couldn't risk the sole team lead being remote so they hired someone local as well. We had a nicely separated backend server speaking to a gorgeous SPA (as was the style at the time) and his big contribution was: "What if stopped using REST and JSON and just went back to form POSTs?"

1

u/Anxious-Insurance-91 Nov 04 '25

you do know that typescript is removed after compile and the end result is pure js?

1

u/andarmanik Nov 04 '25

Not to make you more upset, but not needing to build is huge, + most type script safety can be (and technically should be) done as runtime checks, i.e. if you pull data from db or network you should have runtime checks.

If you really want to prevent type bugs, you can simply have typescript files which contain types and then use jsdoc in the js to add type hints/safety.

These are the “complexities” that your colleague is mainly talking about with their anti ts sentiment.

I’d suggest looking into these benefits to see if you can get them without going back to js.

1

u/Arzeknight Nov 04 '25

As someone already mentioned, you need to actually listen to the reasons instead of blindly complaining. You're looking for people to confirm your views rather than trying to at least understand and call the actual reasons wrong (and, in all fairness, you chose a pretty good sub to confirm your views).

If I had to guess, the actual reasons may be among the following:

  • You spend a lot of time and effort building complex types gymnastics, like super-conditioned type definitions and dynamic inference.

    • Logically, this also means you spend a lot of time and effort trying to understand existing complex types.

  • The build process is complicated, takes a lot of time or breaks every now and then.

  • Are you aware that "typescript" (the language server) plays nicely with JSDoc? You can still have type hints (which is what typescript provides) without a build step (other than minification) and still use typescript to "lint" your source code.

In that sense, TypeScript indeed overcomplicates things. I am not sure about the "technical debt" part; any code you wrote more than five seconds ago is likely already technical debt.

You also mention he has more experience than you, and although it doesn't mean he's always right, your understanding of "running perfectly, clean structure, proper types, no real issues" may be biased or just incomplete. Do you happen to know what happens in the production environment? Maybe the reasons lie there and have been accumulating over time, but you may be only focusing on your development experience (which you wouldn't entirely lose).

It'd be cool to know their actual reasons, but moving from TypeScript to JavaScript isn't necessarily a downgrade depending on the case.

1

u/_jessicasachs Nov 04 '25

If your company is pro-AI or wants you to leverage AI more, you need to communicate to them that TypeScript is the biggest protection you have against AI slop and making precision, accurate edits to your code that are efficient and don't waste tokens.

If you remove the TypeScript language server from your project, your AI tools will be unable to use tool calls or make sure the app will still execute the code.

The benefit types add to writing frontend code in 2025 and beyond cannot be understated.

He may have more years of experience, but he might not be thinking ahead.

1

u/QuickFennel5694 Nov 04 '25

I could understand this argument some years ago when React did not fully support typescript and it needed some extra boilerplate to get things running propertly but now all the drawbacks are gone. Furthermore, you can choose how strict you want to stick to typescript, even with the more lax aproach you can get insghtfull benefits from it. It seems like that guy knows nothing about typescript and yes, the easy go is vanilla, but maintenabulity is going to be a hell.

My two cents, your company should hire someone else

1

u/KlaRa13- Nov 04 '25

No, not normal. TypeScript makes your code more roboust and is an improvement

1

u/youbeenthere Nov 04 '25

More like upgrade. Most projects don't need TS, especially if you're not using it properly with sophisticated types.

1

u/aaaidan Nov 04 '25

NOR.

Without seeing your types we can't be certain, but I'm 99% sure he's destroying value like a forest fire. There are a lot of reasonable ways to criticize Typescript, but "creates technical debt" is a pretty tall claim.

It is true that TypeScript can add complexity, and occasionally that complexity is not justified. So he isn't flat out wrong to be _wary_ of TS, but in all but the most extreme cases, TS pays for itself many times over, in simplifying developer experience (contextual completion replaces 90% of doc lookups) and catching basic errors (spelling mistake, forgetting a required parameter, etc).

Even if he were totally right about TS always being a bad thing, just ripping it out of a codebase is still reckless. Removing something without fully understanding why it was there in the first place is really dumb.

I recently built a utility script for work. We use TS for everything, but I decided to use plain old JavaScript, mostly because I didn't want to bother setting up the ts build. But I was also curious what features I would miss from TypeScript, if any.

Turns out, I missed types. Fancy that! I made _so many_ silly little errors that started to drive me absolutely insane. The sort of errors that TS would have caught immediately and effortlessly. The problem with making typing errors in Javascript is not just that they fail late (in runtime, rather than compile time), but they also often fail _silently_. Javascript loves to coerce types in a "there, I fixed it" kinda way. So it's not just that you can create more silly defects, it's also that you often don't _discover_ those problems until way later. If you're lucky, they show up when you next run the script, but otherwise you discover them in production. This makes debugging and QA way harder than it needs to be.

Perhaps this is just a skill issue on my part. Maybe TS has made me soft and dependent. All I know is I'm never again going to willingly write JS without types.

Back to your situation. Since he's your senior, you can only prevent this happening by changing his mind. Given the extreme sweeping nature of his conversion, it seems like it's probably "ideologically" driven, or possibly a trauma response. He might have had a really bad experience with TypeScript. So it seems likely that you're probably going to have to accept this. Even if you win a "debate" with him, he has kinda entrenched his position, so you'll also need to provide an ego offramp.

I think you should make your thoughts known, clearly, politely, and privately, and without being obstructive. Give him the benefit of the doubt, tell him you want to understand the decision. There's a slim chance you can turn it around by simply asking questions to hone in on the _real_ reason he hates typescript (spoiler, it's not a technical reason). There might be ways to address his concerns in ways that don't involve destroying vast amounts of code clarity and business value. (For example, adding rules about not using certain TS features, or limiting the complexity of types.)

You might want to quiet let others (leads, management) know about your deep reservations, too. Although tread lightly. Your junior stature means you can't win this fight, and it's not a hill worth dying on.

Realistically, get your CV tidied up, put feelers out to your industry friends, and quietly find another job that doesn't tolerate batshit.

1

u/Possession_Infinite Nov 04 '25

This is madness

1

u/swizzex Nov 04 '25

It's normal for a junior to suggest and then get told why it's bad and not to do it.

1

u/CautiousRice Nov 04 '25

I actually agreed with that statement until the AI tools came out. Now there's not much overhead because the AI takes care of the TypeScript.

1

u/irontea Nov 04 '25

This is one of the dumbest things I've heard. Typescript is not complicated and does not create technical debt. It helps prevent bugs and it's quite good for that. I've worked on many legacy projects and one of the first things we try to do is convert files to typescript, which is a pain but almost always uncovers some buggy behavior that was happening because a method was getting called with the wrong arguments somewhere in the code. 

1

u/[deleted] Nov 04 '25

I don’t know why but that statement the guy you quoted said sounds like cuss words if it was a sentence

1

u/rovonz Nov 04 '25

They dumb. Leave! No company is worth the stress of dealing with such stupid decisions. Let them rot in their own mess. They'll struggle to find new good hires willing to work with plain JS and they'll have to maintain a shitty, undocumented, bug-prone codebase.

1

u/ImJustP Nov 04 '25

I think the most important thing to do is to collect your thoughts and reason a counter argument which can be articulated clearly and calmly. When we are in a state of anger/distress we will say things in a way which is counter productive.

The points I would focus on are:

  • Typescript only ‘over complicates’ things if you do not fully understand JS and its types, or typescript itself

  • Contrary to creating technical debt one could argue that it reduces technical debt by catching type related bugs early

  • In not using typescript you will lose a lot of the lesser considered benefits such as more accurate IDE suggestions, better understanding from AI (from my experience having defined types definitely helps to limit hallucinations and rogue data structures)

  • The literal cost in human time to rewrite the entire codebase would be better spent training the new hire how to use typescript more effectively 

  • There is a reason that the creators of the framework you’re using add typescript as a default

1

u/Short-Belt-1477 Nov 04 '25

Tactfully slip in a line that say yeah you heard a lot of coding bootcamp grads having trouble with typescript.

Use his ego against him

1

u/pagalvin Nov 04 '25

I'd be looking for a new job if this actually goes through.

This does give me an April Fool's day idea though.

1

u/Ed4 Nov 05 '25

You missed your chance to make a point about why Typescript is good.

If you still can, try to convince them of the big mistake they’re doing. It’s an uphill battle at this point.

I joined a massive green project last year but I missed the few first weeks of planning, they were so close of going JS only because one of the top seniors didn’t like TS. I was able to turn this around and convince all my superiors that TS was the way, except that top senior, he didn’t like it but in the end I won.

Don’t trust anybody who tells you TS is technical debt because it is not.

1

u/pmmeyourfannie Nov 05 '25

It’s not that unusual actually. It does do both things. People just prefer the benefits it brings

1

u/yigali Nov 05 '25

“TypeScript overcomplicates things and creates technical debt.

when this happens, try to simplify things. For example you can avoid over complicated generics for type gurrds

1

u/TheSpiceHoarder Nov 05 '25

It sucks finding out you have to switch jobs.

1

u/papa-hare Nov 05 '25

When I was in high school, I took a CS class every year basically.

In 9th grade, we had a teacher that taught us C++. She was great but the pay was crap, so she found a better paying job and left.

In 10th grade we got this old lady. Who was all like "C++ is so hard, Pascal is far simpler, I'm going to teach you Pascal". She just didn't know C++ (and I hated every second of learning the now defunct programming language that was on its last legs even then. Especially because every now and then she'd tout how much easier it is than C++. And for our uses they were about as hard lol, I knew that even then).

Your coworker doesn't know typescript and they're as unadaptable as this old lady was. I'm sorry they managed to convince everyone else though.

(I'm terrified about what plain JS will do to production code and how much more bugs it will introduce and how much harder it will be for a new person to contribute, I tried contributing to JS once and it wasn't pretty).

1

u/kintz_09 Nov 05 '25

Oh my. That's very unusual. Yes there are some specific reasons why a team would choose JavaScript over typescript but those reasons are becoming more niche every day. And one of the biggest reasons would be because you need to support legacy applications, servers, or packages that don't play well with typescript. But also, typescript compiles to JavaScript so even that isn't a great reason.

When I look for existing npm packages to build something more quickly, I purposely exclude projects that are written in mostly JavaScript because they generally are more error prone.

For me personally, that move would be enough to make me question my place on that team.

While you certainly could have done this yourself (and maybe you did), here's a quick chat I started with Gemini to quickly summarize how many people think about this topic. I'd suggest you give it a read.

https://g.co/gemini/share/12bd1cdadbce

1

u/Cheap_Childhood_3435 Nov 05 '25

... so you are being told to rewrite your application in a new language? is there a reason to rewrite the application? Aside from someone has stupid opinions about typescript that are wrong?

I mean I will be honest if I have a choice in language on say a green field project between TS and JS, I am choosing JS every time, but that's because I prefer looser typings, and a bit more flexibility afforded by JavaScript, but at the same time this is a horrible decision.

Your company has decided to rewrite it's code base because typescript over complicates things (yes, but this is on compiling and project set up, you do it once and are done) and adds technical debt (no, just no on this one). This is completely stupid and for the next several months you are going to be doing nothing but this and will see no forward progress on your project.

The fact that the dev team actually agreed with him is a huge red flag, the fact that the company agreed to this at all mean they have no idea what the dev team is doing. This is going to backfire and when it does all you can really do is hope it doesn't blow back on you. I would be pissed too, it's completely justified to be pissed when someone forces you into something that is a colossal waste of time. No it's not normal to switch languages in the middle of a project. In addition you could simply point out to this idiot that TS has a direct conversion to JS. he wants to write JS in a TS file? guess what TS transpiles to JS directly so he could simply write JS and leave the rest of you alone. By the way if that feels dirty it's because it is, but it might be worth it to stop the complaining this person is going to do if you force them to use TS.

1

u/szhsin Nov 05 '25

Typescript can definitely feel complicated, but it usually pays off in the long run.

I’m an open-source library author, so strong typing is super important for a good dev experience for my users. Typescript gets especially tricky when you’re dealing with generic-based inference and function overloads. Honestly half the time I spend on a library is just getting the types right rather than writing the actual code that turns into runtime javascript. Even then I often have to make trade-offs due to typescript limitations or my own understanding of its semantics. Still it’s usually worth it, as correct typings benefit the library users in the long term. I come from a c++/C#/java background, so far I find typescript to be one of the most complex languages in terms of semantics.

At my workplace though, the typescript codebase is simpler, generic-based inference aren’t used much, and things rarely get complicated enough to justify reverting back to javascript.

1

u/WieldyShieldy Nov 05 '25

You are working with stoopid here hehheehhehe, I’m so sorry man! Usually the org kicks these guys unless they learn the current ways?

→ More replies (1)

1

u/Kelrakh Nov 05 '25

This sounds like a political problem. Leaders can't know who is right, Mr. Confident speaks first he gets other teammates on board for various reasons.

Since you weren't first the political battle is already lost, people have invested emotionally in the idea of doing it this way.

So now you have the choice between undermining your status by acting disgruntled or accepting it.

Possibly you could do things like asking to test the approach on a smaller module for comparison and have him show you concretely how you got a better result with Typescript concretely cause you aren't quite persuaded.

(If you are capable of being this accommodating in a pissed mood without oozing obvious negative energy which loses your status even more politically ).

Alternatively you can pretend to be all on board and just do it the wrong way better than the other people on the team that way at least it's not on your shoulders cause you contributed the most.

1

u/StickFigureFan Nov 05 '25

Maybe you should downgrade to Ajax while you're at it.

1

u/BoBoBearDev Nov 05 '25

Add PR actions on all methods that is missing parameters undefined checks.

Like

Const mathodA = (param1) => {

If (param1.prop1 === undefined ||

param1.prop2 === undefined ||

param1.prop3 === undefined ||

param1.prop7 === undefined ||

param1.prop9 === undefined ||

param1.prop13 === undefined) {

// method did not run successfully.

retuen false;

}

Do stuff...

return true; // method runs successfully

}

Otherwise they are going to do many things where param1.prop7 is undefined and page breaks apart. There is nothing wrong with using JS, but they need to add code to check undefined values. Otherwise it will break easily.

1

u/not_caterpillar Nov 05 '25

it depends. what kind of product is it? if its just company profile then i will just be using simple html css and sprinkle some js. if its an app, then they are stupid.

1

u/Intelligent-Rice9907 Nov 05 '25

What I would do if I were you is to evaluate how many issues and errors we get after deployment with typescript and star tracking those after changing to js. And if those increase make a point with the rest of the team saying it’s to prevent errors

1

u/tno2007 Nov 05 '25

It's not overreacting, you are right.

However, when a senior suggest it, very few will challenge it because they "have more experience". sarcasm.

Most seniors will work only one programming language or framework for years, and now they think they are an expert. If they refuse to learn anything modern, or another language just for experience, they are forever stuck in their dreamland.

Most popular and dynamic languages now all supports types (php, python, javascript) for a reason!!! It's to
- prevent technical debt, because it...
- catches errors during design time and therefor...
- prevents runtime exceptions
- make codebases structured

There is no point in making code dynamic unless it speeds up development, without introducing potential exception. The time spent using Typescript gets rewarded when you spend less time debugging. A literal monkey can create an app, the secret is is making the code easy to maintain.

If you're not senior enough yet, let him do his thing but... NEVER agree with his methodology. Let management know that you don't agree with it, you're only allowing it because they are "senior".

1

u/dirtandrust Nov 05 '25

Let him fix all the bugs that TypeScript used to catch.

1

u/danielmicallef94 Nov 05 '25

If it is a small project he may be right, but I believe Typescript (albeit way more laborious) makes it easier for a team to work together. It definitely makes it easier and less prone to error if you're going to be using LLMs.

1

u/you-l-you Nov 05 '25

No. It's not okay.

1

u/andrea_ci Nov 05 '25

converting the entire codebase back to JavaScript, claiming that “TypeScript overcomplicates things and creates technical debt.”

WTF.

who the hell did they assume? what kind of technical dept will TS create that JS won't?

I'd convert everything to c#, but at least I have real reasons!

1

u/friezenberg Nov 05 '25

I understand and have been in the same position, but you should stand your ground. It is difficult to maintain a calm mindset whenever someone who "acts as if they know coding" comes in and acts like a MC, but controlling your emotions is a skill itself. I am also working on this a lot which is difficult.

Other than that, if the CEO doesn't respect your ground, even though he is not technical and you've been working there for a long time, longer then the new hire, i'd start looking for other jobs.

It's easy to say and running away is never a good option, but if you faced it all and they still decide to respect more the other guys opinion, then if you leave, he will take them in the real technical dept - which would be soooo satisfying when they ask for you back, and i'd want to hear this with a happy face.

Good luck to you man, keep us updated i'm curious how it will be dealt

1

u/jayfactor Nov 05 '25

Not a typescript fan but if it was in place stripping it out would take just as much work, I’d fight for keeping it

1

u/GeniusManiacs Nov 05 '25

Seems like you need to find a new place to work. 😂

1

u/mario_olofo Nov 05 '25

I had a TypeScript project where typing wasn't very helpful because whenever a problem arose, instead of solving it, they would cast to unknown... My new project uses JavaScript with JSDoc and it works very well, but of course, redoing a base that's already ready and tested in TypeScript is idiotic. My suggestion is that only new functionalities should be done in JavaScript, and only use JavaScript when necessary for refactoring, if absolutely needed. Saying that TypeScript is complex is the same as saying you're too lazy to learn how to use a new tool that would be more useful. Complexity has nothing to do with the language itself, but rather with how ideas are transformed into code.

1

u/Intelligent_Event_84 Nov 05 '25

Development time in js is slower though. Confused why you can’t argue why it’s wrong. Time for you to grow

1

u/lachlanhunt Nov 05 '25

There are some valid technical reasons why some projects might be better suited to JavaScript, but it doesn’t sound like they really expressed any of those. The technical debt argument is absolute nonsense.

Svelte is probably one of the highest profile projects that did this conversion from TS to JS. But importantly they didn’t give up type safety in the process. They moved the types into JSDoc comments. If this were the plan for your team’s project, then there might actually be some legitimate reasons for it, but I don’t know anything about your project to judge.

If the plan is simply to migrate to JS and give up types, then the plan is absolutely ludicrous and you should strongly make the case against doing it. If that doesn’t work, then perhaps you could at least push for the Svelte approach of using types in JSDoc.

1

u/codinwizrd Nov 05 '25

Typescript is amazing . Tell them to study up and they to will understand the power.

1

u/Radinax Nov 05 '25

Its fucked up and screams skill issues to me.

1

u/rstock08 Nov 05 '25

Going to JavaScript from Typescript is insanely dumb. What complexity is the dude worried about? Having a TSConfig file? Lol… dumb…

1

u/Active_Fox_9979 Nov 05 '25

skill issue 🤣

1

u/koderkashif Nov 05 '25

I was rolling and laughing reading your post, they had probably hired an old closed minded person who likes to stick to his own tools for the rest of the life without adapting to new replacement tools. It's not weird some people are like that only, they'd like to stick with their old tools of choice, if they are really good in depth they can make it work better otherwise they are just in their comfort zone.

1

u/adalphuns Nov 05 '25

You should bring in a 3rd party outside council to correct course. Ping me if you need it! I've been doing the thing for over 14 years.

1

u/stiky21 Nov 05 '25

You working with my ex co-worker? Cus he had the same dumb idea

1

u/adumbCoder Nov 05 '25

what a massive waste of time. this is in a startup? if senior leadership agreed to a massive refactor just for the sake of it, this company is doomed bro you need to move on. this is how startups die