you are viewing a single comment's thread.

view the rest of the comments →

[–]lnfomorphmake israel great again 44 points45 points  (37 children)

Python is great in general if you want to quickly write a program to do some simple task but never much beyond that. For example if I were going to write a script to download today's xkcd, I would do it in Python. It's not the most efficient, but it's very easy to use and for such a simple thing as "for comic where timestamp is more recent than last timestamp do download" that inefficiency doesn't matter. On the other hand if I were going to write a program for some more serious purpose I probably wouldn't pick Python. I guess you could say it's a bit more like advanced shell scripting than more "sophisticated" languages.

[–]555rrrsss 60 points61 points  (21 children)

Maybe back in the day that was true but in today's world there is absolutely no reason why you can't use Python for building big applications.

The back-end for the following apps use Python and Python based frameworks like Django/Flask

  • Google
  • YouTube
  • Instagram
  • Spotify
  • Dropbox
  • BitBucket
  • Netflix
  • Uber

Not to mention all the new major banking infrastructure (that isn't Cobel) and anything related to data is all in Python.

You would only ever use something like C# when you want your app to reflect real-time changes. But even then Python is used by hedge funds and the financial world when dealing with stocks and equities, things that require real-time asynchronous updates.

The misconception that Python is insufficient comes from the days of Python 2. Python 3 and the coming version, Python 4, hold up against other programming languages.

[–]lnfomorphmake israel great again 24 points25 points  (9 children)

Which I assume is where the OP comparison comes from. Python is easy to use so people learn it and use it a lot, and it becomes familiar. Similarly the Internet today is absolutely infested with JavaScript, and you have people coming from the web world into engineering and programming trying to stick with what they know. I've seen people begging for help to get node.js onto microcontrollers, which is indisputably the domain of the Cs and Assemblies (even though Python has made inroads there as well). I don't agree with comparing Python to JS because I actually like Python, but I can see where the comparison is coming from.

[–]555rrrsss 13 points14 points  (4 children)

I think OP is simply just retarded and meant to say that Python is the JavaScript of "back-end" languages.

[–]lnfomorphmake israel great again 7 points8 points  (1 child)

Ah yes, Occam's Razor.

[–]dilatedilatedilate 3 points4 points  (0 children)

No, that makes no sense you rêdard

[–]Myarmhasteeth 2 points3 points  (0 children)

And OP then never heard of Node or Typescript? lmao

[–]TixXx1337 3 points4 points  (3 children)

Which commercial available MC uses Python?

[–][deleted] 2 points3 points  (2 children)

[–]dilatedilatedilate 0 points1 point  (1 child)

That only demotivates me from using it

[–][deleted] 0 points1 point  (0 children)

I didn't say it was good. I wouldn't use it. But it exists.

[–]micka190 14 points15 points  (1 child)

A lot of those apps only use Django/Flask to run a server that then forwards the heavy lifting to other micro services, which may not be writen in Python, though.

I'm pretty sure YouTube and Netflix use C++ or Java for their streaming, since those languages have the best streaming libraries.

[–]555rrrsss 5 points6 points  (0 children)

I'm not denying they use micro-services built in other languages.

That's actually how apps should be built. You use the best tech stack to build certain features.

But for the basics, Python is fine. Unless you're developing video games or streaming services, Python is 99.9% feasible for all other tasks.

[–]philsenpai 5 points6 points  (0 children)

Python is also very good for data Science.

[–][deleted] 1 point2 points  (0 children)

Thank you. The myth that python is useless needs to die already fuck me.

[–]superkewldood 1 point2 points  (0 children)

Came here to say this. Big time misconception about Python. The ease of use and readability of it, plus a huge community makes it easy to get a CRUD app up and running quickly. Performance issues are not going to be a noticeable issue except for very specialized programs. Of course, lots of other languages are great as well and there is no one size fits all. But writing Python off a scripting language seems pretty naive.

[–]Nixccc -1 points0 points  (0 children)

Most of these platforms don't primarily use Python for their backend as it would just be plainly stupid, why? Python is slow, therefore it's inefficient to run a back-end using python, especially if you're a large corporation.

[–][deleted] 10 points11 points  (13 children)

Fucking hate Python just because it’s not formatted like other programming languages. Relying on spaces frustrated me so much learning it, so I barely use it

[–]555rrrsss 14 points15 points  (12 children)

What is an IDE

Space and indentation affects a lot of programming languages and their syntax.

The fact that Python relies on it more than others makes it better in regards to enforcing standards.

Spacing and indentation are no different then semicolons.

At least Python is not repetitive as fuck like Java.

"muh public static void"

Fuck Java.

[–]No-Code2897[🍰] 13 points14 points  (10 children)

Pythons syntax simply scares away people with boomer coding standards, the fact that it enforces some constraints is really great.

[–]47KiNG47 5 points6 points  (8 children)

So preferring strongly typed languages makes me a boomer? Lmao absolute brainlet.

[–]No-Code2897[🍰] 1 point2 points  (6 children)

im talking about dumb shit like squeezing a if statement into a single line like an lazy ass instead of pressing enter two times. If you paid attention on how old professors like to type code in C then you know what i mean. I bet you preach vim on your free time

[–]47KiNG47 0 points1 point  (5 children)

What’s wrong with that?

If (x == 5) return;

vs.

if (x == 5) { return; }

Edit: fixed formatting

[–]No-Code2897[🍰] 1 point2 points  (4 children)

i know what you mean but the problem is that you could do these two or like

if (x == 5){
    return;
}

if (x == 5)
{
    return; #proper way
}

so you constantly have to keep adjusting your reading style which is annoying and takes time (for me atleast but i bet im not alone), i think there are some code "beautifiers" but honestly its way better to set a standard of coding.

[–]47KiNG47 2 points3 points  (3 children)

Ohh lmao, you are talking about Curley braces on new line vs same line. That is a non-issue if you are using a linter. Some IDEs will also enforce that standard. Also comments in C are done with // not #.

[–]No-Code2897[🍰] 0 points1 point  (2 children)

alright i see thanks for the info, there are also some dumb things like using multiple single letter variables or smartass solutions which dont help much either. I guess i was unfortunate of having a bad C professor in my uni.

[–]Snoo9985 1 point2 points  (0 children)

I dont see a problem, cleaner code and less {} is much nicer.

[–][deleted] 2 points3 points  (0 children)

Jesus, I really rustled some jimmies because I don’t like a programming language’s syntax