r/Python • u/katakoria • Sep 25 '21
News Python just surpassed Java as the 2nd programming language with the highest number of questions in SO.
https://stackoverflow.com/tags246
u/ciroluiro Sep 25 '21
And 90% of them are probably about matplotlib...
41
16
276
u/shawnwork Sep 25 '21
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.
82
u/the-anarch Sep 25 '21
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.
0
Sep 25 '21
[deleted]
20
u/BallsInAllIn Sep 25 '21
I thought I was just stupid. I'm sure that's part of it, but holy shit is almost every learning resource convoluted.
18
Sep 26 '21
I have found so many copy cats of the same material too lol. Flat out copy paste of entire websites 😂
19
1
u/normal_clearing Sep 29 '21
When everyone jumps in... It sounds like FOMO takes over and retail "investors" buy the top.
1
u/FrancoLiszt Sep 29 '21
Interesting to witness one "soon-to-be has-been popular" language overtakes another "has-been popular" lang.
126
u/Sability Sep 25 '21
Is that because it's confusing or because it's popular though?
114
u/Supadoplex Sep 25 '21
A combination of both. Popularity as a teaching language is probably the most significant factor.
10
u/Sability Sep 25 '21
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.
20
u/supreme_blorgon Sep 25 '21
The vast majority of Python questions that I answer on SO are either homework or somebody confused about a tutorial.
2
u/Sability Sep 26 '21
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.
15
u/HgnX Sep 25 '21
Both altho its hard to imagine Python being confusing until you get more advanced with it. Its pretty brainded for beginners.
41
u/AegisCZ Sep 25 '21
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
19
u/Deto Sep 25 '21
I would say that's any language nowadays. Not many people buying books to learn a specific language anymore
9
u/benargee Sep 26 '21
With so many frameworks and large tech stack requirements for certain app architectures, can you blame them?
3
u/Deto Sep 26 '21
Definitely not. Also these things evolve so quickly! A resource 5 years out of date may lead you in the wrong direction.
-1
u/AegisCZ Sep 25 '21
yes but python has an excellent manual on its site
16
Sep 25 '21
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.
1
4
u/mayankkaizen Sep 25 '21
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.
7
u/mayankkaizen Sep 25 '21
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.
-7
u/AcousticDan Sep 25 '21
And in most cases, I just write 2-3 lines of Python to calculate anything. Not possible in most languages.
You talking about list comprehension and the like? Code golf should never be used in production.
8
u/Yojihito Sep 25 '21
List comprehension is the preferred method in Python and not code golf.
1
u/thprogramador Sep 26 '21
List comprehensions is a sh*t... PEPs reinforce the principle of everything in one manner, the most clear way, cause you spend most of time reading than coding.
Python is a hyped language sold by its philosophy not its practice. Popular? Why? Why people is going out of CS schools knowing just this and js. They don't know how to handle memory or how to solve problems...
Learn python at CS is like a Cooking course that teaches you how to go to market and buy junkie food and prepare.
You can do anything but you can't do everything
1
u/AcousticDan Sep 25 '21 edited Sep 25 '21
Nothing wrong with it in itself, but it often leads to an unreadable mess. And when I hear "I can do that in 2-3 lines in Python, it makes me weary."
-1
2
-7
u/AcousticDan Sep 25 '21
Because it's a language geared towards noobies. That's not a slight, just a fact.
6
u/gustavsen Sep 26 '21
That a language is easy to learn don't mean that was created for noobs.
You can write really complex software in python (I do it) where the language simplicity mean that it's easy to understand what your cose does and not about to understand the code
My experience in C++ (20 years) new people need lot of time more to understand the code base vs the new people in our new python code.
3
Sep 26 '21 edited Sep 26 '21
Meh, a lot of pros use it. Some of the best programmers I’ve ever met actually and the most productive. If you don’t need jet engine speed it’s a great language or a huge code base. I prefer golang these days though for everything other than pandas stuff because it’s almost as easy and is a lot faster at most things because threading is straightforward and easy
15
u/GingerbreadRecon Sep 25 '21 edited Sep 26 '21
All these comments are just making me feel stupid for only knowing python... lol
10
u/BakingSota Sep 26 '21
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).
1
Sep 26 '21
If you want something that is typed, compiled, almost as easy, and popular then look into golang
13
u/ALior1 Sep 25 '21
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
2
u/TW_MamoBatte Sep 25 '21
OpenJDK is different of Oracle right ? So they will lost profit of it 😕 May I am wrong ?
5
u/ALior1 Sep 25 '21
In somethings..
Just thinking about the newbies that needs to navigate javajdk vs openjdk mass, before they write one line of code..
3
5
u/DamagedFreight Sep 25 '21
How many of those questions were downvoted despite being worded carefully and being a completely valid question?
2
2
u/cylonlover Sep 26 '21
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?
1
u/Past-Pool-1012 Oct 04 '21
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
2
u/SineApps Sep 26 '21
And actually with more per day and per week, so I guess it’s on track to take the top spot at some stage
2
u/OleDrippie Sep 28 '21
Hmmm must have less asshole moderators that actually let questions through without immediately closing them.
0
1
Sep 26 '21
One day all those kids will learn compilers exist and code can run so much faster
2
u/crysiston Sep 26 '21
If you’re on a small scale, which beginners are always on, it won’t make a marginal difference in executional speed.
-3
u/GlebRyabov Sep 25 '21
JS is next, let's do it.
14
u/Blacklistme Sep 25 '21
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.
7
u/Supadoplex Sep 25 '21
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.
2
u/murateca Sep 25 '21
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.
2
2
1
u/AcousticDan Sep 25 '21
If you want to use Symfony, just use PHP. It's faster and much more suited to the web than Python.
1
u/DabsJeeves Sep 25 '21
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.
4
u/Grintor Sep 25 '21 edited Sep 25 '21
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%.
1
0
u/DabsJeeves Sep 25 '21
I mean yeah, that data is based on websites using php. The vast majority of websites are wysiwyg sites from wix, WordPress, Shopify, etc..
1
2
2
u/TW_MamoBatte Sep 25 '21
PHP 8.xx Will take this up
Seriously programming in PHP is dangerous AF but interesting AF
1
u/AcousticDan Sep 25 '21
Why is it dangerous? No more dangerous than most other languages.
1
u/TW_MamoBatte Sep 25 '21
Well SQL Vulnerability etc.. or may i wrong)
2
u/AcousticDan Sep 25 '21
That's on the programmer, PHP has had PDO and prepared statements for a long long time.
2
0
Sep 25 '21
[deleted]
1
u/Blacklistme Oct 25 '21
Which Python package manager? Lex Fridman recently has a great podcast about it btw.
0
Sep 25 '21
[deleted]
26
u/Tekn0de Sep 25 '21
I don't think JS is capable of dieing off. It'd be too much of an infrastructure change for browsers I think lol
12
u/Poppenboom Sep 25 '21
javascript is good enough and things like typescript and coffeescript are popular enough that I don't anticipate it will be gone for minimum 20 years.
Honestly, javascript has a LOT going for it as well, even though people like to hate on it. It's not a bad language, aside from the dependency security issues, imo.
1
Sep 25 '21
I can't wait for JS to die and for browsers not supporting it anymore. I hate JS.
20
u/DabsJeeves Sep 25 '21
Lmao js is not going to die in your lifetime. The internet is powered by JavaScript, the largest companies in the world are actively developing frameworks that make it a pleasure to use, and the newer ecmascript releases are making it more object oriented and much less painful than it was even 5 years ago
Learn to love it or learn to ignore it, but it's not going away
-1
u/djamp42 Sep 25 '21
I mean I could see another scripting language come up beside it In our lifetime.
1
u/DabsJeeves Sep 25 '21
Certainly not out of the question. But as someone who has worked with many variations of js over the years and currently has some tasks in old crappy frameworks that are pre-es6, newer js does a whole hell of a lot of stuff well.
It is difficult to imagine a serious contender but I think you are probably right that we will see one at least try. Perhaps we just don't know what we're missing yet
1
u/TW_MamoBatte Sep 25 '21
Which tutorial/book you could give as Advice for learning the newer JavaScript !? It's could be very helpful and interesting 🙂
1
u/DabsJeeves Sep 25 '21
I would recommend going to Udemy and finding a well rated js course. They are like $10-$12 and provide dozens of hours of content that you follow along with and learn by doing and there are different courses for every different skill level.
The good ones will update content for the newer iterations of ecmascript
2
u/TW_MamoBatte Sep 25 '21
And as a book 📚? I would better use paper than using Udemy courses... I'm a kid dood... (16yo)
3
u/DabsJeeves Sep 25 '21
To be honest I don't have a good recommendation on strictly JavaScript books.
Two good books I can otherwise recommend are Clean Code and Clean Architecture by Uncle Bob. They aren't specific to any one language (although he uses java in the examples) but they will give you a strong foundation for writing good code. I have read both of those multiple times over the years
→ More replies (0)4
0
-1
Sep 25 '21
I think it's handy to know JavaScript though even if you are a data scientist. Plus it's just handy to know anyway...
-5
Sep 25 '21
Funny, because it's not even that hard of a language compared to Java. So maybe it's just people asking repeat questions?
10
u/mayankkaizen Sep 25 '21
That is not the reason.
In my view, the reasons are -
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.
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.
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.
1
u/scykei Sep 26 '21
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.
-17
Sep 25 '21
Ah I wish Python was like a easy assembly language. I dunno why I just find it boring to learn. Buy I guess everyone has different tastes. Back to BBC basic for me.
1
u/TW_MamoBatte Sep 25 '21
Well try C if it's still boring try r/blender it's will make you fun
-2
Sep 25 '21
C hurt my brain.
2
u/TW_MamoBatte Sep 25 '21
Are you fucking serious ? Why you are doing here soo ?
1
Sep 25 '21
C is hard to learn. what about it? That's why I use BBC Basic, easy for my low capacity brain.
2
u/TW_MamoBatte Sep 25 '21
Wait I never heard about BBC basic Let's me a second
1
u/scykei Sep 26 '21
I think if you’re one of the folks that learnt only very low-level programming back in the days, a higher level language like C can possibly come as a shock. I can kind of understand where they’re coming from.
102
u/thprogramador Sep 25 '21 edited Sep 25 '21
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.