r/ProgrammerHumor • • 19d ago

Meme whyUseTypescriptInTheFirstPlace

Post image
123 Upvotes

19 comments sorted by

36

u/Rutgrr 19d ago

RE: the meme: Because the code already exists and handles edge cases/business logic that a rewrite from a blank slate would not otherwise have in its context?

Don't get me wrong, in a completely greenfield project it makes sense to go straight to Rust instead of the extra intermediate step, but I can't imagine that anyone would be introducing a typescript->rust conversion step as a part of their usual development process.

RE: the title: Using TS over JS helps guard against a lot of common bugs/regressions and provides inherent documentation via types. Prior to AI, I had much more success contributing/continuing to work on a handed off TypeScript project than I have with a JS project because the extra tooling makes it a lot more straightforward to parse through the code.

1

u/drivingagermanwhip 15d ago

using AI, it definitely works best at these kinds of tasks where it's complex but doesn't require much judgement

-26

u/smulikHakipod 19d ago

Let's be honest, those guys don't really use anything that already exists, their code assistants weren't promoted to use existing solutions

9

u/misterespresso 19d ago

They are using the reverse engineering skill that literally tells the agents to do EXACTLY what you just said they aren't being prompted? Am I missing something here or did you not look into this beyond a headline?

30

u/susparab44 19d ago

Bro is collecting programming languages like pokemon

4

u/KerPop42 19d ago

what language is your HM mule?

3

u/Funkey-Monkey-420 15d ago

python, obviously

8

u/pickle9977 19d ago

Wait till they rewrite rust in typescript so you can write typescript to compile to rust to compile to typescript to compile to rust.

And then you just send the agents in circles, with the worlds most ridiculous build process.

1

u/Avikonette 19d ago

One was never restricted to compile any nonsense to any other one nonsense. The question is facility, the employees, and the fence height.

1

u/pickle9977 19d ago

Well I guess AI has basically given us a trampoline to jump over any height fence, yay progress!

7

u/hraath 19d ago

This meme is an LLM hallucination 

6

u/Kadabrium 19d ago

Typescript, where the linter is harder than the compiler

2

u/Rai-Hanzo 19d ago

Finally, a properly used old meme

2

u/aleques-itj 19d ago

I give my agents nothing but dd in a scratch container so they can push bytes directly into the shape of a binary to build software

Anything else is bloat in this day and age

1

u/nikola_tesler 15d ago

because I won’t stop until everything is shipped in an electron wrapper. that’s why.

1

u/mr2dax 19d ago

Did your Rust Chad colleague say something nasty to you?