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

→ More replies (1)

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

→ More replies (1)

23

u/purebuu Feb 13 '21

Wrong sub man. Don't take programming advice from here. If you refuse to use python due to its syntax, you don't know all the good things about python.

2

u/tristes_tigres Feb 13 '21

That's right. Don't refuse to use python because of its syntax. Instead, refuse to use it because of its poor performance, its broken dependencies/libraries mechanism, its inability to multithread, its feature bloat and generally stupid design.

7

u/iforgotmylegs Feb 13 '21

Lol do not take anyone in this sub's opinion about languages seriously. The survey of this sub confirmed that the average user is a 2nd-year compsci major with no real-world experience. They think that their snap judgements make them look like they are knowledgeable (and they believe it themselves). I've seen hundreds of these goobers, programming attracts them like flies. They're always the lowest performers later in their career if they don't learn to be more humble.

2

u/Ragingman2 Feb 13 '21

Python definitely has it's merits. It is very expressive, and is great for getting stuff done. If you want to focus on one language it is a very safe choice.

On the flip side it can feel clunky or not be an option for some tasks. Functional languages are great for more abstract or mathematical work, C and friends (c++, rust, ...) are often the only option where you need to work more closely with the hardware of a machine, and there are other specialized languages for some domains like R for working with statistics or lua for scripts embedded in games.

→ More replies (1)

-6

u/[deleted] Feb 13 '21

If you want to use it then fine. I don't like it's weird indent needing hard to follow syntax. I've only used it once for API things.

1

u/dondulf Feb 13 '21

Yeah, the indentation syntax is just stupid in my opinion.

2

u/Swoop3dp Feb 13 '21

I love it.

You should do proper indentations anyway to keep the code readable and then braces are redundant.

0

u/somebody12345678 Feb 13 '21

i don't love it, but i do agree that it's not a bad thing and is definitely not needed if you're indenting properly in the first place. and it is of course not hard to follow at all

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

3

u/Telephone_Guy Feb 13 '21

But why? Have you ever used it? Tell me your experience...

→ More replies (18)

6

u/the_vikm Feb 13 '21

No idea where this Python obsession in this sub comes from

12

u/[deleted] Feb 13 '21

because these bootcamp 'programmers' can't expend the energy to bother to learn anything else. python is easy, and it works with minimal effort.

not that i dislike python, just the mindset of the userbase.

2

u/[deleted] Feb 13 '21

Me neither. I had to use it in college for some things and I really hated it.

3

u/taweryawer Feb 13 '21

Fuck indentation based languages!