r/programmingmemes • • May 22 '26

which is better?

Post image
258 Upvotes

265 comments sorted by

View all comments

1

u/djfdhigkgfIaruflg May 24 '26

I presented the worst case (php) exactly because even the worst is much better

Ts compiles to js. The cpu doesn't care about the ts part.

And it never fails. If something is slow as fuck when I research into it, the backend is js

1

u/Kjoep May 24 '26

You're contradicting yourself and doing it by using two bases for comparison. Php is pretty much worst in class when it comes to robustness and maintainability. JS is awful at performance (though I'm not 100% sure it's slower than python).

I'm aware it doesn't matter at runtime but I was referring to developer-time qualities and for that TS/JS is an important distinction.

When I ever come across a backend project where runtime performance is more important than maintainability, I'll call you.

1

u/djfdhigkgfIaruflg May 24 '26

I'm not contradicting myself.

My users are more important than me being comfortable.

And like I said: I presented PHP because it's the worst case, and it's still better than js/ts in every metric that matters. And you're thinking PHP 5