4 ms·
This is exactly the thing. If the difference between python 2 and 3 is so small that a program can be easily ported, then WHY did there need to be a difference
by bdamm 4y ago
This is exactly the thing.
If the difference between python 2 and 3 is so small that a program can be easily ported, then WHY did there need to be a difference at all?
- pabs3 4y agoUsually change happens because the old way was worse and the new way is better. For each individual porting change, you would have to look up the appropriate PEPs to discover why the change was made.
- _Algernon_ 4y agoThat's the claimed reasoning, yes. Is that actually true though? It may be from a pure economic perspective focused on a business that can socialize externalities. Sometimes new developments reduces development time. On the other hand, the externalities of that is that a modern computer performs worse running equivalent tasks today in the browser than a native app 15 years ago on hardware from that time. Lucky for businesses that they aren't held responsible for the ewaste they helped produce.
- pabs3 4y agoWeb development isn't mandatory, you can still have a native app in 2023.
- _Algernon_ 4y agoThe point is that the lack of businesses being made responsible for the externalities they cause disincentives native apps, not that it is impossible. If 90% of apps necessary for normal life are only available as poor web versions it drives obsolescence no matter what the remaining 10% do.
- pca006132 4y agoWhy is web app a bad thing though? Most of the apps do not require much performance and the web version can also be pretty fast, at least sufficient for users. I think the same author writing that crappy web app will produce worse native apps if forced to do so. Web apps is better than native as they are automatically running the latest version, platform independent (windows, mac, linux, android, ios), in some sense more secure. Instead of asking people to write more native apps, I think we should rather ask them to write more quality web apps if they don't need native capabilities.
- _Algernon_ 4y agoTry running eg. Libre Office and gdocs on a 10+ year old laptop. The difference is night and day. And that is a web app which should not be particularly demanding (essentially text entry). E2A: Also, try running Figma on an older device. It's basically unusable. No native version, and a native version would be much better.
- pca006132 4y agoNo, google docs is not just text entry, it is much more complicated than that due to synchronization and they did not try to optimize it well IMO. Text entry, even with highlighting and rich text, can be fast with web app, see VSCode and markdown applications for example. As an example, see Atom vs VSCode. We thought building a code editor with electron will lead to something slow like Atom, but m$ later proved that it is possible to build something fast. Perhaps not as simple as native, but it can be done.
- 5e92cb50239222b 4y agoI started writing yet another rant about how most HN users don't care about the rest of the planet, but then thought better of it. Long story short: way more people on Earth are using cheap (and thus low-power) hardware then you probably think. And it isn't necessarily old.
- drekipus 4y ago> That's the claimed reasoning, yes. Is that actually true though? yes. one of the changes (and in my experience, the most problematic change) was the removal of the keyword "print" it was a poor choice at the start to treat "print" like a keyword. it is a simple, breaking change to remove it, easily automated (ps: just add brackets), and now the language is more consistent and flexible. The only reason to keep it is to not "touch" things. but it is easily mitigated, so that isnt a good enough reason imo. I much prefer a consistent language. otherwise I'd stick with PHP.
- account42 4y agoIs it easilty mitigated though? By a python programmer, sure. By another programmer, ok. By your grandpa that just wants to run that python script to organize his stamp collection that has worked for decades? No. For something as popular as python there will be thousands such people. Stuff that will simply NOT get fixed. But that cost is easily ignored by the original developers.
- robertlagrant 4y agoThere's no point positing a less likely reason. Python wanted to incorporate Unicode fully. There was no way to do that that they came up with that didn't break a lot of software. You can read the documentation and see the discussion. It's not companies; it's a few people in Python leadership deciding.