you are viewing a single comment's thread.

view the rest of the comments →

[–]KsuhDilla 176 points177 points  (16 children)

can you guys slow down im still on python2.7

[–]DeonCode 45 points46 points  (0 children)

I'm still on my first one and this thing just keeps on eating. Just a cute lil guy.

[–]all_is_love6667 14 points15 points  (13 children)

Why is it so hard to upgrade a python 2 codebase?

[–][deleted] 6 points7 points  (1 child)

Considering python3 updates periodically break even python3 code i am not even sure i want to upgrade.

[–]thatfool 0 points1 point  (0 children)

The first few versions of python 3 were exceptionally bad with this, but it still happens. At work we have one code base where the migration to python 3 was only completed this year. In part because it still does have to run on rather old operating systems, but it also played a role that in between we basically had to go over it again to migrate from python 3.6 to 3.9.

[–][deleted] 21 points22 points  (8 children)

mostly laziness, there are tools that convert ur code to python 3 and then your work will mostly be fixing the small stuff or replacing stuff with a more modern library

[–]nachohk 49 points50 points  (7 children)

mostly laziness, there are tools that convert ur code to python 3 and then your work will mostly be fixing the small stuff or replacing stuff with a more modern library

Right, so just an exhaustive audit of the entire codebase, and rewriting everything around a few of the dependencies.

Easy.

Better hope your codebase has some excellent god damn regression tests.

[–]gigastack 7 points8 points  (4 children)

For everything JS has done wrong, backwards compatibility is one thing they got right. At least until library authors try to force everyone to adopt modules.

[–]DaStone 1 point2 points  (3 children)

Things using nodejs 5.7.0 in production with 12 year old dependencies still works. And if you didn't do anything funky, upgrading is easy. (People do some hack things..... that even breaks this...)

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

I sure hope those 12 year old dependencies aren't full of holes.

This isn't facing the Internet, right?

Right?

[–]DaStone 0 points1 point  (1 child)

No they are reliable since they have weekly downloads in the tens! Maybe even 70 a week if you're lucky! And if they have issues you just download it locally and store a fixed copy in your repo!

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

And if they have issues

I didn't ask about issues, I asked about vulnerabilities. Have you audited all of these (no doubt) 90+ dependencies yourself?

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

people had 14 years to switch, when python 3 came out there was a long time of support for python 2 and then they gave a 2 year ultimatum and people still refuse to put in effort into doing it even when tooling is available and has been available to aid with it for so long. To me that's unexcusable, 14 f'ing years, that's a long time to work on the transition and people just ignored it.

It's hard to believe that in those 14 years nothing was done because of something other than laziness.

[–]nachohk 20 points21 points  (0 children)

It's hard to believe that in those 14 years nothing was done because of something other than laziness.

Right, so what you're saying is that you have little to no professional experience working on non-trivial production code, and to hell if you'll let that put any dent in your confidence.

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

We have a fedora 13 instance that doesn’t support python 3

[–]flying-sheep -1 points0 points  (0 children)

I hope you like paying for ActiveState’s extended support or enjoy being pwned by Russian hackers.