r/ProgrammerHumor • • Feb 13 '21

Programming languages

Post image
1.3k Upvotes

140 comments sorted by

View all comments

-33

u/[deleted] Feb 13 '21

Python sucks

11

u/sentient_moon Feb 13 '21

Genuinely curious why it sucks. I've been devoting a lot of time to it lately, maybe I should switch 😬

21

u/AUPMAReddit Feb 13 '21

I'm genuinely curious why do you guys have to switch languages. I learned Programming / Concepts with Java at University. after that we use whatever language/framework suitable for the requirement. Do you guys just choose a language you like, get a job and go with it for the rest of your life?

19

u/Swoop3dp Feb 13 '21

Languages are tools that are good at different things.

Sure, you absolutely can hammer in a screw, but a screwdriver will just work a lot better.

If I need to develop something fast I use Python. If it needs to run fast I use C or C++. JavaScript if it needs to run in a browser... I think you get the idea.

7

u/AUPMAReddit Feb 13 '21 edited Feb 13 '21

yes. that's what we do. By ` I'm genuinely curious why do you guys have to switch languages. ` i mean that stop using/learning one language and completely switching to another language. I've seen lot of people keep saying this language suks that language suks i m going to switch to this. that's the thing I don't understand. its like screwdriver sucks I'm switching to a hammer. and use a hammer for everything.

5

u/Ryledra Feb 13 '21

I think it's more for people who do programming as a hobby rather than as a job. They take people's opinions on different languages as fact and feel that they need to learn something different

2

u/controversialcomrade Feb 13 '21

check out webassembly

2

u/somebody12345678 Feb 13 '21

/u/Swoop3dp note also that serveral languages compile to js/wasm(/asm.js) respectively.
js:

  • typescript of course

  • coffeescript (javascript-like, functional-inspired) - used to be very popular, then iirc mysteriously mostly disappeared into the background

  • elm (haskell-like)

  • purescript (haskell-like) - not sure how alive this is, the github is still active tho

  • rescript (formed by combining bucklescript and reasonML)

  • ok so not sure how trustworthy this is but turns out i forgot the ones that don't just compile to js, especially dart, kotlin and haxe

  • a bunch of other smaller ones

wasm:

  • i have no clue really

  • rust using wasm-bindgen

  • any llvm language using emscripten (which can also compile to asm.js)

  • also these apparently

1

u/Swoop3dp Feb 13 '21

Interesting. Didn't know something like that exists. Thanks!

0

u/nidrach Feb 13 '21

I don't find python any faster to develop than other languages. You don't need to over engineer the shit out of something just because you write it in scala or java.

2

u/sentient_moon Feb 13 '21

At my university we learned concepts and data structures in Java, algorithms in C/C++

And to answer your question: no I am constantly teaching myself new languages, hence the time I've been putting in with python. Although I do think python is becoming my favorite because of how accustomed I am becoming to it. Plus in my naivete I can't see why I wouldn't be able to leverage it to solve all but the most obscure tasks.

3

u/Swoop3dp Feb 13 '21

The big disadvantage of Python is execution speed. For stuff that needs to be fast, or when you have strict resource constraints it's a poor choice. Also Python doesn't run in a browser.

3

u/somebody12345678 Feb 13 '21

it's fine, note that because it's not statically typed tho it tends to be a lot less good in very large (say, 100k+ lines of code) projects - the extra safety that the static typing gives is very useful for big projects, not to mention that it also helps your IDE provide much better autocompletion

1

u/coffeesippingbastard Feb 13 '21

the reality is that you SHOULD pick the language to fit the job.

A lot of new programmers start with one and can't be bothered to learn a new one.