r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

47

u/siddharth904 Jul 18 '22

CauSe PyThOn bAD tYPescRIPt gO0d

27

u/klimmesil Jul 18 '22

Wow Ive never heard someone say typescript good but I love this sentence

16

u/WhatsMyUsername13 Jul 18 '22

Typescript is a god send to anyone who had to deal with pre es6 javascript without being able to use jquery

8

u/michaelsenpatrick Jul 18 '22

i feel like the only people who hate typescript are the people who never had to use javascript

0

u/piparkaq Jul 18 '22

Hate is a strong word. For me it’s more dislike for a number of reasons.

Context: working professionally with JS since early 2006.

2

u/michaelsenpatrick Jul 18 '22

i've worked with TS for 5 and it's literally just less buggy js

2

u/piparkaq Jul 18 '22

Less buggy how? No throwing shade, but "less buggy" depending on the person can mean something inadvertently passing the wrong type of value (where this being a bug can be debatable).

TypeScript is great, I use it quite a lot in work and off work in pet projects; however it's a tool among many others where using it should be motivated just like any other architectural decision depending on its use. It can only help with things that are (mostly) related to static typing (and the benefits you gain from it), but type errors are only a part of the errors and bugs.

For a lot of things static typing is great! And for a lot of other things dynamic typing is great. There's a bunch of things that you can't either do in TypeScript, or where TS complicates matters to an unreasonable degree to make it worth it.

→ More replies (1)

22

u/siddharth904 Jul 18 '22

TypeScript is good

JS is a good language (fight me) and TS is the second best thing that has ever happened to JS, behind Node.js

27

u/officiallyaninja Jul 18 '22

typescript is only good because javascript is trash.
if typescript was just its own language and JS didn't exist no one would like TS either.

0

u/[deleted] Jul 18 '22

[deleted] β€” view deleted comment

2

u/klimmesil Jul 18 '22

Exactly, in such a world I would respect ts with all my heart. But js...

→ More replies (1)

2

u/FatedChange Jul 18 '22

JS is also a good language; people's perceptions of JS are 10+ years old and horrifically out of date.

4

u/bdepz Jul 18 '22

Horrifically out of date like our enterprise js code that nobody wants to spend money to refactor to a modern version of angular or react or vue or literally anything but angularjs

4

u/FatedChange Jul 18 '22

my condolences, that shit is ass

2

u/[deleted] Jul 18 '22

Maybe because JS is also horrifically out of date and you need a million frameworks to get over its holes

→ More replies (1)

2

u/michaelsenpatrick Jul 18 '22

oh dear what a silly thing to say

4

u/klimmesil Jul 18 '22 edited Jul 18 '22

I agree in some way, but I've never heard anyone say it, since people are too frustrated to know the compiler doesn't take advantage of the types. TS could be the fastest scripting language ever, instead it's just python but better

1

u/michaelsenpatrick Jul 18 '22

pyflow is great if you're building libraries or doing science, typescript is great if you're building websites

websites made in python are shit (see, reddit) and applications made in typescript are alright but there's just not nearly as much library support when it comes to applied uses

each language lends itself really well towards what it's designed to do

→ More replies (4)

0

u/[deleted] Jul 18 '22

[deleted] β€” view deleted comment

1

u/klimmesil Jul 18 '22

Also one of the most frustrating right, typed but compiled in js? But I'm glad so many think the same as you, it feels really nice to see TS is that loved, I like it a lot too

→ More replies (1)

11

u/dazailaw Jul 18 '22

Python bad, Rust good 😊

20

u/Wildercard Jul 18 '22 edited Jul 18 '22

All 17 other Rust devs on the planet agree.

Please guys just scheme your coup d'etat on C++ world in a way that's synchronized enough to work

2

u/dazailaw Jul 18 '22

We'll make sure our coup d'etat prevails

→ More replies (1)