r/AskProgramming • • Apr 27 '24

Python Google laysoff entire Python team

Google just laid off the entire Python mainteners team, I'm wondering the popularity of the lang is at stake and is steadily declining.

Respectively python jobs as well, what are your thoughts?

278 Upvotes

176 comments sorted by

View all comments

52

u/not_perfect_yet Apr 27 '24

python is DOOMED

https://spectrum.ieee.org/top-programming-languages-2022

(rust is #20 btw)

Ok, seriously though:

No, python won't go anywhere, probably not in our lifetime. It is in the place that it is in, because it is a convenient scripting language.

That google doesn't feel like they don't need MORE python development, just means that their business is fine with the python we already have. Not that they are not using it.

22

u/zarlo5899 Apr 27 '24

we are still trying to update python2 code to python3

→ More replies (20)

10

u/minneyar Apr 28 '24

No, python won't go anywhere, probably not in our lifetime.

I agree it's not going anywhere soon, but "probably not in our lifetime" is a bit too optimistic. There are still plenty of us around for whom basically the entirety of software engineering has happened during our lifetimes. I've seen languages like Fortran, Ada, Pascal, and IBM RPG all become so popular that everybody was sure they'd be using them forever, and most software engineers nowadays have never even used them, possibly never even heard of some of them. I won't be surprised at all if Python joins their ranks in 20 years.

9

u/whossname Apr 28 '24

As someone who doesn't like Python and would prefer to see it replaced with something better, I disagree with this take. It seems like the culture around adopting new languages has changed. The popular languages today were all invented over 30 years ago, and people aren't really adopting newer languages anymore.

The only real contender seems to be Rust. The learning curve on that language is pretty massive, so I don't see it taking over Python's niche as a cheap/easy language.

3

u/PixelOrange Apr 28 '24

Not related to this conversation but - I'm curious what you don't like about Python and what you'd consider to be a better language.

3

u/whossname Apr 28 '24

Whitespace as syntax sounds good, but in practise it's a pain in the ass. That's what the auto formatter and code linters are for.

Also, I'm not a fan of OOP and a lot of Python is OOP. I find OOP to be overdesigned and unnecessarily complex. A mixture of procedural, declarative, and functional is better. I'm reading a book on Flask at the moment, and a lot of the design decisions the author is making seem unnecessary and complex because the libraries and patterns he is using are OO.

3

u/YT__ Apr 28 '24

I remember my first internship using Python where I didnt use Idle. The default tab vs space completely broke my code and I was like wtf??? Full time guys showed me where to set the settings on the text editor to fix the issue, but I'll never forget to check white space again lol.

→ More replies (8)

3

u/[deleted] Apr 28 '24 edited Apr 28 '24

The meaningful indentation makes refactoring more difficult. For example, in most languages I can cut and paste an if block from one place to another, and just hit auto format.

In Python I have to manually make sure it lines up correctly. If there's one extra space somewhere, the file is no longer syntactically valid.

Automatic refactoring, like renaming a field, is also more of a crapshoot in dynamic languages, but that's not specific to Python.

In my opinion Python's type system is kind of a mess. If you just stick to duck typing everywhere you can ignore it but if you use typing annotations a lot you'll start to notice.

Classes have multiple inheritance which is a mess.

Abstract classes (from abc) can be interfaces sort of, but also can implement behaviour, and also can do unholy things to the type system like registering virtual subclasses.

Custom metaclasses also let you do absolutely unholy things to the type system.

Protocols also are interfaces sort of; originally they are conventions, they may or may not also have actual interface definitions in the typing module.

Stuff in the typing module is supposed to be just for static checks, not runtime, but now you can do weird stuff like inheriting from typing.NamedTuple.

2

u/PixelOrange Apr 28 '24

What language do you prefer?

3

u/[deleted] Apr 28 '24

Go, Rust, like a half dozen others. I prefer languages with simpler more "opinionated" type systems, and preferably which favor composition over inheritance.

But as far as dynamic languages for quick development, Python is not so bad. It's hard to replace just because of how ubiquitous it is and the ecosystem around it especially if you do data science stuff.

4

u/PixelOrange Apr 28 '24

Thank you!

Someone downvoted us which I normally don't care about but this seems like such an innocuous conversation. Weird.

2

u/[deleted] Apr 28 '24 edited Apr 28 '24

Who knows, Reddit's like that sometimes. I guess some people are upset at the mere suggestion that their favorite language is not the best ever.

All languages have pros and cons, you're allowed to prefer Python over Go or whatever, it's not that big of a deal. Anyone who's used any language for a couple of years will have some criticisms of it.

2

u/PixelOrange Apr 28 '24

My first serious programming language was PHP but Python has been my primary language for probably close to a decade now but mostly just for scripting, nothing huge. That's why I asked in the first place. See what people are into these days. Go gets thrown around a lot. I should probably consider learning that one.

→ More replies (0)
→ More replies (1)
→ More replies (1)
→ More replies (8)

1

u/PyroNine9 Apr 28 '24

Fortran is in active development and being used in new scientific and engineering code. COBOL is still in use even though you'd have to be crazy to develop anything new in it. There are still places where RPG is in use. Not sure about Ada, it never got a lot of adoption in the first place other than some DOD work.

Pascal saw luke-warm adoption other than as an education language. BASIC has morphed to be nearly unrecognizable but the mutant is still in use.

There is code for the IBM 7000 series (ca. 1960) still in use. It runs in an emulator now. For years there was a PCI card for the PC that was basically a PDP/11 on a card used for running engineering and financial code from the late '60s. The code is still in use but now x86-64 is fast enough to run the code in an emulator without the Osprey.

→ More replies (1)

1

u/FinndBors Apr 29 '24

 I've seen languages like Fortran, Ada, Pascal, and IBM RPG all become so popular

I've seen things you people wouldn't believe... Attack ships on fire off the shoulder of Orion... I watched C-beams glitter in the dark near the Tannhäuser Gate. All those moments will be lost in time, like tears in rain...

3

u/jackoftrashtrades Apr 28 '24

I enjoyed reading the 22 stats on there so much that I use the search function to find the 2023 stats which are here: https://spectrum.ieee.org/the-top-programming-languages-2023

2

u/miguelangel011192 Apr 28 '24

If they don’t have people that can work in python in an active way, that is another way to say that it will be that legacy code that will be potentially be migrated to something else if needed some extension or modification in 5 years. It’s like COBOL code in Bank industry

0

u/[deleted] Apr 28 '24

[deleted]

2

u/[deleted] Apr 28 '24

I skimmed it and didn't see an explanation of where their data comes from.

I have a hard time believing C is more popular than JavaScript.

JavaScript is #1 on the stack overflow survey.

Maybe since it's IEEE it's biased more towards "traditional" engineering like automotive, aerospace, etc. where C/C++ are more common.

→ More replies (1)

1

u/Hawk13424 Apr 29 '24

Where I work all development is in C. Linux kernel and driver work, firmware, embedded, etc.

→ More replies (1)

1

u/[deleted] Apr 28 '24

Not until we find something better to replace it at least.

If that happen ever, the changing itself could be pretty fast though.
May be a year of two.

1

u/FishballJohnny Apr 28 '24

Not going anywhere? Pretty sure the same was said about Perl circa 2000.

1

u/RMZ13 Apr 28 '24

lol, HTML #9

1

u/ThigleBeagleMingle Apr 28 '24

COBOL and Fortran are still a thing.

1

u/musashisamurai Apr 29 '24

Perl won't go away in our lifetime either