News for hackers. Stuff that matters.
Re:Why Python keeps growing, explained by Lyngbakr on Friday March 03, 2023 @07:26AM (#35008624)
I think one reason for Python growing popularity is because it's become the default tool in some domains whether it is the best tool or not.

This week our Director ordered a total rewrite of two years of work in Python. His rationale: it's what everyone else uses in this space. No reason specific to our use case, just simply to follow the herd. I realise that a large community translates into easy hiring and rich ecosystems, but I despise the mentality as it promotes a monoculture.

Re:Why Python keeps growing, explained by extasia on Friday March 03, 2023 @07:33AM (#35008690)
That's a terrible idea for so many reasons
Re:Why Python keeps growing, explained by edwiecron on Friday March 03, 2023 @07:50AM (#35008870)
If Python was a market, this would clearly be the top.

There was a time when all you had to learn was Java or C++ or (language or tool here). Somehow, this time when we standardize, it will be different.

Re:Why Python keeps growing, explained by heresie-dabord on Friday March 03, 2023 @08:09AM (#35009071)
... and Python _became_ the default tool because the de facto developer consensus (after years of competing languages) is that an interpreted language should

    = be usable, and 

    = provide a set of data structures that an educated programmer *expects to find when scripting*.
Python literally sucked less than the alternatives.
Re:Why Python keeps growing, explained by kelipso on Friday March 03, 2023 @03:21PM (#35014528)
Python gets introduced to students, so for many people it's the first language they learn. Half the programming community have less than 5 years of experience. I question their ability to evaluate suckage, lol.
Re:Why Python keeps growing, explained by onphonenow on Friday March 03, 2023 @08:13AM (#35009110)
What are you rewriting from? At director level focus is usually more on things like how easy is it to staff / get support for something. Python is strong here - you can find programmers globally who can do pretty well with it.

Can you say the same about your solution?

Re:Why Python keeps growing, explained by raincole on Friday March 03, 2023 @08:14AM (#35009123)
> This week our Director ordered a total rewrite of two years of work in Python

WTF? Unless your system is originally written in a proprietary language that literally no one outside your company knows, I'll say it's a good sign that you need to change team (or change job). Don't work under a director like that.

Re:Why Python keeps growing, explained by Lyngbakr on Friday March 03, 2023 @09:20AM (#35009945)
Agreed. Coincidentally, I resigned the day before this was announced.
Re:Why Python keeps growing, explained by drewcoo on Friday March 03, 2023 @10:41AM (#35011030)
Sorry if it sounds too cynical, but that's probably the intended effect of a rewrite from what the team knows into Python: staffing changes. A bunch of the (expensive) old guard will leave and they can be replaced with cheap grads, who all know Python.

Better luck with the next one!

Re:Why Python keeps growing, explained by hot_gril on Friday March 03, 2023 @03:21PM (#35014533)
If that is the case, it's a good thing. I'm stuck in a big dept using C++ for very high-level stuff that anyone else would absolutely not use it for.

I've probed several times, and the most senior SWEs have no reason for this choice other than some personal issue with anything new, which to me sounds like a job security thing. Over time, they've resisted other new tooling to the point where management has ended up forcing things, but they're still holding onto C++. Some lower-grade, lower-ego engineers armed with higher-level tools would replace everything in a more maintainable way for a lot less money.

Re:Why Python keeps growing, explained by brundolf on Friday March 03, 2023 @12:45PM (#35012788)
It's really funny that one of the subheadings under "Why is Python so popular?" is "It has high corporate demand."
Re:Why Python keeps growing, explained by kyawzazaw on Friday March 03, 2023 @04:32PM (#35015323)
That's a perfectly relevant thing, no?
Re:Why Python keeps growing, explained by hot_gril on Friday March 03, 2023 @04:46PM (#35015475)
Yes. The entire reason I like using Java at my day job is that the rest of the company uses it the most and supports it well. I would never use Java on my own, but they made it work ok here.
Re:Why Python keeps growing, explained by brundolf on Friday March 03, 2023 @05:14PM (#35015774)
It reads as a little bit of a tautology. "People are using it because people use it". I get that from a hireability standpoint it's a real thing to consider, but the statement doesn't say anything about whether or not Python is actually a good language to use
Re:Why Python keeps growing, explained by kyawzazaw on Friday March 03, 2023 @05:38PM (#35015994)
Another counterpoint to this. Rust is a popular language (debatable claim, of course) but it's not high in corporate demand.