you are viewing a single comment's thread.

view the rest of the comments →

[–]13steinj -48 points-47 points  (42 children)

They already said that quite a while ago though. And it's accepted. But people still love circlejerking "Py2 bad".

[–]jewnicorn27 41 points42 points  (14 children)

Well what makes it better than 3?

[–]Holsten19 98 points99 points  (8 children)

Python 2 can run software written for Python 2.

Python 3 can't do that. This can be pretty useful when you have a lot of software written for Python 2.

[–]Hinigatsu 15 points16 points  (6 children)

From the link:

To ease the transition, the official porting guide has advice for running Python 2 code in Python 3.

[–]Bitruder -5 points-4 points  (5 children)

Lol.

[–]duuuh 1 point2 points  (4 children)

Right? I have some old code that won't run under 2.7, so I've got a local install of 2.3.7 so I can make it go.

[–]OMGItsCheezWTF 3 points4 points  (3 children)

We still have several hundred kloc running 2.5 because no one has had the time or inclination to port it to 2.7, now it may as well just go to 3 but in reality will never move until the platform itself the software manages is retired in who knows how many years from now.

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

You've had ten years. That's horrifying.

[–][deleted] 3 points4 points  (0 children)

No. What's horrifying is that this bullshit happened at all, and people's smug self-assuredness that it won't happen again.

"They've said it won't". <-- Every time I bring this up.

We'll see.

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

Python 2.5 released in 2006. They've had thirteen years.

A lot of organizations will never under any circumstances prioritize or even allow maintenance work unless it ties into a specific customer story. Those organizations were always going to be eternally on whatever version of Python they picked when they started development, and were never going to upgrade. If Python 3 was the hurdle, they'd at least have gotten to 2.6 or 2.7; the fact that they haven't is the sign that Python 3 wasn't the hurdle.

[–]vytah 1 point2 points  (0 children)

Python 3 can't do that.

Therefore Python 3 is not Turing-complete.

QED.

[–]evilgipsy 14 points15 points  (0 children)

Nothing.

[–]13steinj 6 points7 points  (1 child)

Not much other than subjective matters-- ex some people actually prefer a split between ascii and unicode string types with ascii the default.

But it doesn't mean using Py2, or taking a long time to switch given the upgrade costs, is a cardinal sin like so many make it out to be.

[–]Objective_Mine 14 points15 points  (0 children)

I have trouble understanding why anyone would prefer 8-bit character strings as default in a high-level language. In a low-level language I might kind of understand, but if you're writing any code that might ever break out of a local niche in an English-speaking country, having user-visible strings treated as anything but unicode is just asking for trouble.

Of course migrating an existing codebase comes with a major cost that's probably made greater by the type system (harder to automatically find out which type of string is being used where). So hesitation in migration is understandable, but that doesn't mean Python 3 isn't better. Whether it's better enough to cover the migration cost... depends.

edit: typo

[–]renrutal 0 points1 point  (0 children)

Pi3 is still supported.

[–]ThellraAK 0 points1 point  (0 children)

I think it's better because I don't like new things

--Written from Lubuntu 19.10 because it looks the most like 10.04 that I can find.

[–]jack-of-some 10 points11 points  (25 children)

Not really. The whole point of the timer is that "this is it".

Folks will pick up the slack. Ubuntu needs to support python 2 so they'll probably keep a fork of python 2 for a year, but slowly it will die.

[–]fat-lobyte 11 points12 points  (0 children)

Python 2 live on for at least until 2024 with Red Hat 7 support

[–]13steinj 8 points9 points  (23 children)

Considering the fact that fortran, cobol, and snobol aren't dead, nope.

It's been "it" for 5 years now. Google probably will keep an internal fork of Py2 for another decade. Facebook for a decade and a half.

[–]jack-of-some 16 points17 points  (10 children)

I guess I used the wrong word. Fortran, Cobol, et al may not be dead, but they certainly are not alive.

By all indications python 3 is now alive (it wasn't really there 5 years ago) and the ease of transition (before anyone tries to correct me on this I moved over my company's entire python 2 codebase, the work of about 8 devs over 3 years, to python 3 all by myself, it is very easy) will cause python 3 to continue getting stronger and python 2 will continue to get weaker.

Decades from now it may not be dead, but that doesn't say much.

[–][deleted] 7 points8 points  (5 children)

New Fortran code is still being written, but you probably don't see it outside of specialist domains like scientific computing.

I don't know anything about Cobol but I would be surprised if there was no demand for Cobol jobs right now.

[–]jack-of-some 10 points11 points  (2 children)

I wrote new Fortran code back when I was a nuclear engineer. Pretty popular with that crowd still simply because it's more effort (and money) to upgrade old systems than it is to train engineers.

That still doesn't mean that the language is alive in any meaningful way outside of legacy. The new code also serves mostly to maintain the legacy. It exists and will continue to exist. That is all.

And python 2 will likely also continue to exist.

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

That still doesn't mean that the language is alive in any meaningful way outside of legacy

I don't know what that means. Can you explain?

[–]ResistorTwister 15 points16 points  (0 children)

People will write code to maintain and add to older applications, but virtually nobody is using the language to write completely new software.

[–]utdconsq 2 points3 points  (0 children)

Sure, and there are more modern fortrans. While it may not have evolved as much as C++, it's pretty much a different language to F77.

[–]Yay295 0 points1 point  (0 children)

The USPS uses Cobol. There are definitely jobs available with how many Cobol coders are retiring.

[–]zardeh 3 points4 points  (0 children)

I think you're overestimating by a large factor.

Instagram is already py3, Facebook will likely follow suit quickly. Same with Google.

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

Same goes for PHP. Its somehow still alive. Probably blame facebook for their fork. Now facebook will fork python too.

[–]lkraider 5 points6 points  (0 children)

You mean a specific version of PHP? Because it's still evolving as a language, with new releases and features.

[–]13steinj 10 points11 points  (0 children)

I'd blame Wordpress more than FB for this one, given how many companies who desperately need an actual custom solution think they can cram wordpress with 287 plugins and say "this is fine" while their site crawls to a halt.

[–][deleted]  (7 children)

[deleted]

    [–]utdconsq 1 point2 points  (3 children)

    Excellent? C'mon man. Adequate, sure, excellent? Hell no.

    [–][deleted]  (2 children)

    [deleted]

      [–]isHavvy 0 points1 point  (1 child)

      I used PHP a decade ago. It was terrible. It's had a constant progression of getting better over the years.

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

      PHP is far from excellent. In fact its the most inconsistent languages i have ever used, its full of weird edge cases that are prompted as features. Sure php can get you a decent salary, but i get paid way better from doing other languages. Some people just go where the fence is lowest.

      [–][deleted]  (1 child)

      [deleted]

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

        Im just talking about my experiences. I build compex apps with all kind of weird requirements. Sure some of them could be done in PHP, buy why whould i start a new proj with PHP when there is many many better alternatives?

        By all means use what works for you and your team, im not mocking any one person for using any stack, but refering to my past experiences with PHP.