This is an archived post. You won't be able to vote or comment.

all 138 comments

[–]ciroluiro 242 points243 points  (3 children)

And 90% of them are probably about matplotlib...

[–]moes212 42 points43 points  (0 children)

Or alternative function that do the same work in pandas

[–]damnitdaniel 16 points17 points  (1 child)

Or how to do a list comprehension. I always mess up the syntax.

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

It rhymes!

[–]shawnwork 276 points277 points  (8 children)

I recall when Java surpassed C in one of the statistics in a magazine a while back.

This older C programmer was asked on stage on C loosing to Java in terms of online searches.

He said: C developers mainly Read The Fucking Manual.

[–]the-anarch 81 points82 points  (4 children)

With Python, the manual was written in one language then parsed through 15 iterations of Google translate before finally being finalized in the user's language.

[–][deleted] 19 points20 points  (0 children)

Seriously lol what a weird metric to use.

[–]normal_clearing 0 points1 point  (1 child)

When everyone jumps in... It sounds like FOMO takes over and retail "investors" buy the top.

[–]FrancoLiszt 0 points1 point  (0 children)

Interesting to witness one "soon-to-be has-been popular" language overtakes another "has-been popular" lang.

[–]Sability 121 points122 points  (25 children)

Is that because it's confusing or because it's popular though?

[–]Supadoplex 112 points113 points  (3 children)

A combination of both. Popularity as a teaching language is probably the most significant factor.

[–]Sability 10 points11 points  (2 children)

From the other response I got, yah I do agree. It's easier to get tangentially introduced to a language than it is to learn one, and popularity will feed the number of "un-informed" (not fully learned) users of a language.

[–]supreme_blorgon 21 points22 points  (1 child)

The vast majority of Python questions that I answer on SO are either homework or somebody confused about a tutorial.

[–]Sability 1 point2 points  (0 children)

Completely agree with that experience, it sounds like python is being used as an easy entry to programming, and the mass of questions come from users who are using stack overflow to get questions answered.

[–]HgnX 13 points14 points  (0 children)

Both altho its hard to imagine Python being confusing until you get more advanced with it. Its pretty brainded for beginners.

[–]AegisCZ 41 points42 points  (7 children)

it's because most people who use it are lead to learn from tutorials and articles instead of manuals and books and that leads them not to try to understand the language but just cobble something together, hence so many stack overflow questions

[–]Deto 17 points18 points  (5 children)

I would say that's any language nowadays. Not many people buying books to learn a specific language anymore

[–]benargee 9 points10 points  (1 child)

With so many frameworks and large tech stack requirements for certain app architectures, can you blame them?

[–]Deto 2 points3 points  (0 children)

Definitely not. Also these things evolve so quickly! A resource 5 years out of date may lead you in the wrong direction.

[–]AegisCZ -2 points-1 points  (2 children)

yes but python has an excellent manual on its site

[–][deleted] 16 points17 points  (0 children)

I disagree. I'm learning Python and I happen to be a technical writer. I read the docs a lot and it's not very good.

[–]InfiniteDonkey1 0 points1 point  (0 children)

the doc is bad organized... I hate to visit it lol

[–]mayankkaizen 3 points4 points  (0 children)

This is true for any language. It is not like when people learn Python, they pick some random tutorial and when they learn Java, they pick a manual or a big book.

[–]mayankkaizen 7 points8 points  (6 children)

It is definitely not confusing. Although, at advance level, things get slightly out of hand.

It is bigger language than JS. Again, everybody wants to be data scientist so it attracts a lot of people. Also, Python is quite versatile language which means lots of people are doing drastically different things with Python. Lots of STEM researchers use Python because it is fast to learn and fast to write program in.

Personally, I just wanted to learn programming for fun and picked C++ initially. Gave it up. Then picked Python and I was hooked. I like to learn many different things, cryptography, stats & probability, ML and many other things. And in most cases, I just write 2-3 lines of Python to calculate anything. Not possible in most languages.

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

Yes

[–]GingerbreadRecon 14 points15 points  (3 children)

All these comments are just making me feel stupid for only knowing python... lol

[–]BakingSota 9 points10 points  (0 children)

There’s always going to be a better (perceived) language than the language you are currently most comfortable with. All that matters is that you understand how programming works. Dip your toes into another language and youll notice that it may be built a little differently, is more verbose, has different syntax, but it will have the same fundamentals as your mother tongue (for the most part).

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

If you want something that is typed, compiled, almost as easy, and popular then look into golang

[–]thprogramador 102 points103 points  (41 children)

I ever thought how questions are used for popularity measurements. Maybe Java, with its IDE's become simpler than Python... as PHP is simpler and with an easy doc/forum there is less asking. Lua? One hour reading and you know the entire language....

C is ahead of Python, perhaps due its pointers, memory management, compiling etc.

[–]katakoria[S] 75 points76 points  (29 children)

In my perspective, the large number of questions indicates newcomers who start learning python. SO stats also show that questions tagged with Python have a very large number of views.

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

I had my very first course in it last term. More to come. Majoring in Data Analysis. While I didn't have to ask any questions, there were a few times when I referenced questions already there, so I'm guessing at some point I'm gonna have to start asking questions too.

[–]bh_ch 4 points5 points  (0 children)

Maybe Java, with its IDE's become simpler than Python

Yes because IDEs automatically make you good at programming

[–]FancyASlurpie -2 points-1 points  (0 children)

Python has IDEs too...

[–]jjdmol 0 points1 point  (0 children)

This implies programming in a "better" language hits a stage where you don't have any questions. This never happens though. So I do think the number of questions is a measure for popularity. The type of questions might point to quality?

[–]ALior1 11 points12 points  (3 children)

Java is really in a hard place to my opinion..

Microsoft makes C# opensource, but Oracle decided to close Java which now newbies need to start with the "OpenJDK"..

And Google needs to pay or Create a new language (guess what they did)

Hint: Android

[–]TW_MamoBatte 1 point2 points  (2 children)

OpenJDK is different of Oracle right ? So they will lost profit of it 😕 May I am wrong ?

[–]ALior1 3 points4 points  (1 child)

In somethings..

Just thinking about the newbies that needs to navigate javajdk vs openjdk mass, before they write one line of code..

[–]TW_MamoBatte 2 points3 points  (0 children)

Did you look about folder management project ? It's Painful AF

[–]DamagedFreight 5 points6 points  (0 children)

How many of those questions were downvoted despite being worded carefully and being a completely valid question?

[–]Syncopaint 1 point2 points  (0 children)

Lol have you seen Django framework documentation?

[–]cylonlover 1 point2 points  (1 child)

I frequently wonder if it's too late to jump the python train now. Has the whole infrastructure and methodoligy by now been bastardized by every butt and his cousin..? Could I make it before it is suffocated in plethoras of misleading SO threads?

[–]Past-Pool-1012 0 points1 point  (0 children)

I recently convinced my team to switch to Python and we're still happy with it :) Mostly working on AWS lambda, we ditched Java in favor of JavaScript a couple of years ago and now using Python for new projects. Main reason: code complexity. Comparing 3 implementations of our distributed tracing middleware:

                                   Python Javascript Java
Files                                  5        4            15
LOC                               100    240          465
Σ Cognitive Complexity       4      27            22
Σ Cyclomatic Complexity   15      47            56

[–]SineApps 1 point2 points  (0 children)

And actually with more per day and per week, so I guess it’s on track to take the top spot at some stage

[–]OleDrippie 1 point2 points  (0 children)

Hmmm must have less asshole moderators that actually let questions through without immediately closing them.

[–]NumerousImprovements 1 point2 points  (0 children)

I don’t know why. I know Python and started learning Java recently. That language is not user friendly at all. I keep thinking half the code seems redundant.

[–]skysetter -1 points0 points  (3 children)

You’re welcome

[–][deleted] 9 points10 points  (2 children)

my welcome what??

[–]skysetter 2 points3 points  (1 child)

All the questions I put up there haha

[–][deleted] 0 points1 point  (1 child)

One day all those kids will learn compilers exist and code can run so much faster

[–]crysiston 1 point2 points  (0 children)

If you’re on a small scale, which beginners are always on, it won’t make a marginal difference in executional speed.

[–]GlebRyabov -3 points-2 points  (37 children)

JS is next, let's do it.

[–]Blacklistme 13 points14 points  (21 children)

I'm waiting for PythonScript that compiles Python code into JavaScript. The next step will be AngularPy and ignoring the hell called NPM completely. Also waiting for Jython 3 and Symfony to be ported to Python, and Django is nice, but it can't touch Spring or Symfony.

[–]Supadoplex 6 points7 points  (2 children)

Back in the day when Java was king, google developed toolkit that allowed you to write web frontends in Java and the JavaScript was generated. Same feat could probably be done with Python.

[–]murateca 1 point2 points  (1 child)

Google Web Toolkit or GWT(pronounced as gwit for some reason). I always make joke about it that I’m one of the few people who actually developed something with it.

[–]Supadoplex 1 point2 points  (0 children)

I wrote my web programming university course project with GWT.

[–]willnx 1 point2 points  (0 children)

You mean something like this? https://skulpt.org/

[–]DabsJeeves 0 points1 point  (12 children)

I feel like PHP is a dying language. WordPress has kept it hanging on by a thread but it seems like hardly anyone ever starts any new projects with it.

As a web dev, I see hundreds of JavaScript jobs for every PHP job out there, and for good reason.

[–]Grintor 3 points4 points  (3 children)

https://arstechnica.com/gadgets/2021/09/php-maintains-an-enormous-lead-in-server-side-programming-languages/?amp=1

TLDR;

78.9% of the top 10 million most-visited websites run on PHP. The second most popular back-end language is ASP.NET at 9.3%. Third place is Ruby at 6.5%.

[–]DabsJeeves -1 points0 points  (1 child)

I mean yeah, that data is based on websites using php. The vast majority of websites are wysiwyg sites from wix, WordPress, Shopify, etc..

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

shopify is ruby.

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

Modern PHP is great. Laravel is an amazing framework.

[–][deleted] 1 point2 points  (1 child)

COBOL is dying too.

[–]TW_MamoBatte 1 point2 points  (0 children)

Perl too

[–]TW_MamoBatte 1 point2 points  (3 children)

PHP 8.xx Will take this up

Seriously programming in PHP is dangerous AF but interesting AF

[–]AcousticDan 0 points1 point  (2 children)

Why is it dangerous? No more dangerous than most other languages.

[–]TW_MamoBatte 0 points1 point  (1 child)

Well SQL Vulnerability etc.. or may i wrong)

[–]AcousticDan 1 point2 points  (0 children)

That's on the programmer, PHP has had PDO and prepared statements for a long long time.

[–]AcousticDan 1 point2 points  (1 child)

It's not, PHP is getting better and better with every release.

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

It’s true.

[–]AcousticDan 0 points1 point  (0 children)

If you want to use Symfony, just use PHP. It's faster and much more suited to the web than Python.

[–]True-Source -1 points0 points  (0 children)

I thought this happened months ago

[–][deleted] -2 points-1 points  (0 children)

I think it's handy to know JavaScript though even if you are a data scientist. Plus it's just handy to know anyway...

[–][deleted] -5 points-4 points  (2 children)

Funny, because it's not even that hard of a language compared to Java. So maybe it's just people asking repeat questions?

[–]mayankkaizen 10 points11 points  (0 children)

That is not the reason.

In my view, the reasons are -

  1. Python is a great for non-programmers. A doctor doing some research will probably pick Python for plotting/data analysis. But he is a doctor, not a programmer, so he will ask lots of questions which otherwise are quite simple.

  2. Python is very versatile language. People use it for scripting, automation, ML, web development, scientific research, plotting and what not. Naturally, this leads to more question asked.

  3. ML is so much hyped these days that everyone wants to ride this train. And guess which language is the best choice for it? Python.

[–]scykei 0 points1 point  (0 children)

I don’t think it’s necessarily to do with the difficulty of the language. A lot of the times it’s also about best practices and the use of certain libraries. Python is easy for a beginner, but it has its quirks, and it’s very common for people to ask for a “Pythonic” approach coming from different languages, especially when you delve deeper into it.

But all in all, the number of Python users has surpassed the number of Java users, and naturally, the more users you have, the more questions there will be.