Fork me on GitHub
#off-topic
<
2023-06-11
>
p-himik18:06:35

I don't even use Python anymore but my disdain for it keeps on growing. This https://docs.python.org/3/whatsnew/3.10.html#removed has so many entries... And of course software breaks, as I just witnessed when trying to use subuser for the first time.

☝️ 4
1
seancorfield19:06:16

It's a low bar but JS is worse... or at least its ecosystem is... 🙂

p-himik19:06:35

Oh yeah, but alas - that one I still have to deal with on the face-to-face basis.

seancorfield19:06:49

I went to PyCon back in 2013 as it was local to me (so no travel/hotel, hence I paid out of pocket). I was very excited about all the Python 3.x stuff and the core Python folks were all "Yeah, the transition from 2.7 to 3.x is a bit rough but within a few years, everyone will have switched to 3.x everywhere!" And here we are a decade later and there are still huge amounts of 2.7 code out there and it's still the default version of Python on many systems so you have to choose to run 3.x and deal with the whole env/multi-version thing. We had seriously considered adopting Python 3.x for all our scripting needs but abandoned that idea by the end of 2013 😞

seancorfield19:06:19

I had mostly avoided JS all my long career until recently -- due to resource constraints at work, I'm now splitting my time between the all-Clojure backend and the all-JS frontend, so I've had to come up to speed real quick on npm/yarn/jest and hundreds of tiny libraries that all break your code if you even update a patch level version 😞

p-himik19:06:59

Around 7 years ago or so I was fairly active in the Python community and at some point I got to ask Guido why there are still some inconsistencies in the stdlib that could seemingly be easily fixed by adding aliases and without removing anything. He answered something along the lines of "not worth it - it'll create a rift, and I don't want to repeat the 2->3 situation". Well, look at them now, without the BDFL, renaming and removing stuff to make things neater and creating rifts every minor version.

seancorfield19:06:02

I wonder if he would do things differently regarding 2->3 if he had the chance to do over? (and I wonder what he thinks of the churn in 3.x these days?)

p-himik19:06:23

Yeah... I myself still can't get over the "walrus operator", :=, which was a syntax-level change to add teeny-tiny affordance that only a tiny fraction of people really need (and I'm questioning how real is that "really").

seancorfield19:06:35

When I first got involved with Clojure and took over the maintenance of clojure.java.jdbc, I was pretty aggressive about breaking changes because it was what I was used to, and I was also learning what was idiomatic... these days, I would never do some of the stuff I used to do back then! It's why both next.jdbc and HoneySQL introduced new namespaces and new coordinates rather than break stuff -- and why I'm really careful about changes to those libraries now...

p-himik19:06:51

That approach is fantastic to work with, especially given that I can use all of the libraries side-by-side and migrate piece by piece, or not at all.

seancorfield19:06:52

me looks up "walrus operator" ... 👀 ... pounds head against desk!

p-himik19:06:48

It pisses me off to a great extent. :D It's silly.

seancorfield19:06:04

And without block scope, a walrus deep inside an expression introduces a new variable for the rest of the code below... 😞

p-himik19:06:30

In Russian, we have a saying for something like that: "Made of turds and sticks."

seancorfield19:06:28

I spent quite a long time in and around the CFML (ColdFusion) community and that has a lot of non-programmers and self-taught programmers -- and the Adobe team that maintain the product are Java devs, and the open source Lucee team are CFML devs (even tho' that is also written in Java). So there's no real concept of language design/architecture around either product -- and so they get all sorts of bizarre requests from community (who often only use CFML and no other languages) and they often just go ahead and implement them... ...so you get constructs in CFML that look like stuff in other languages but has different semantics(!) and you often get different implementations of the same construct in the commercial (Adobe) product and the supposedly-compatible open source (Lucee) product, because none of them know how to specify programming languages properly. It's horrific 😞

seancorfield19:06:25

For a while, Adobe formed a Language Design Committee -- and announced it at a conference, telling everyone I was going to be the committee chair (without actually discussing it with me before!)... and then when "my" committee drew up feature designs and recommendations, they pretty much said "Oh, that's too hard to implement (properly), we're going to do this half-assed thing instead!" so I disbanded the committee after one release cycle.

seancorfield19:06:46

That said, I made a lot of good friends in that community and still hang out in the main Slack and Discord fo it 🙂

p-himik19:06:39

> look like stuff in other languages but has different semantics Ah, Apple also comes to mind here. :D Inventing their own labels for existing things or using existing labels for something different. From keyboard shortcuts to software patterns. "So much to do hate, so little time." > without actually discussing it with me before LOL, wonderful.

hiredman20:06:28

I've been writing a little python because a lot of microcontrollers now can run micropython/circuitpython (speaking of splits) and it seems like so much weirdness is the fruit of insisting on anonymous functions only being a single statement

hiredman21:06:53

Like the original pep for the with statement starts modeling things as generators that yield a single value

hiredman21:06:10

The walrus operator is actually something I would have used recently in some code because I couldn't have an assignment and a return in a single expression

mauricio.szabo14:06:00

You know what's worse on all of this? Python have breaking changes, JS have even more breaking changes, Node.JS have less breaking changes that JS itself, but npm have A LOT of breaking changes, and Electron have more breaking changes than JS.... Now, Node uses Python to build native modules - meaning that, sometimes, you can't install a native module because your Python is too recent facepalm

mauricio.szabo14:06:28

So, imagine my chaos with Pulsar, that uses Node, Electron, and native modules 😱

p-himik14:06:49

> JS have even more breaking changes What are some of the most recent breaking changes in the language itself? I can neither recall nor find anything quickly (and if I were to list everything Python has done in this regard, we'd spend the whole day here.)

mauricio.szabo05:06:26

Strict mode is now the default and it can't be disabled, there's some weird Metadata that "async function" provides that's essentially different than just returning a promise, WASM compilation changed, and classes are not exactly the same as the old prototype approach which sometimes cause problems - these were only on JS itself.

mauricio.szabo05:06:55

But on the ecosystem, lots of other things - the tooling is almost 100% different, NPM upgrades can (and do) break module installation, resolution, and require, the whole ESM that's incompatible with CommonJS, upgrading the tooling usually means breaking changes in the config files, web components API is completely different from the original prototype, node.js native modules' apis are completely unstable, and then there's WASM

p-himik05:06:45

Please correct me if I'm wrong but I don't think any of those should be considered a breaking change. Strict mode is the default only in modules - which are new and shouldn't break existing code outside of modules. Async functions and classes are new as well - they shouldn't have broken any existing code unless it was relying on implementation details. And unless I'm mistaken, WASM changes were made when it was at the proposal level and not a part of the established standard. Yeah, I'm not talking about the ecosystem and standard proposals, only what has been standardized at the language level.

mauricio.szabo15:06:06

It all depends - these indeed are not breaking changes by themselves, but unfortunately the JS ecosystem is... weird. Meaning that while these don't break, a single "test library version update" will do, for example. The same with the strict mode - if we wrote JS and published to Node/Browser and that's it, nothing would break; unfortunately, most JS code is compiled/bundled and these tools can (and most of the time, will) transform things that are CommonJS to ESM by default, meaning that a completely valid JS is now invalid on a newer node/browser (but that's because that new node/browser now applies this strict check).

mauricio.szabo15:06:00

Yeah, sorry that I wasn't that clear on what I meant - it's mostly friction like "I bumped a node version and now things are breaking" but that's because the tooling was generating things that were tolerated on older versions, but are invalid on newer JS.

kennytilton21:06:26

just saw the https://github.com/intel/intel-one-mono font released. Using it now, does seem easier on my old eyes, and I especially appreciate the ridiculous braces, which I can mistake for parens.

💯 2
seancorfield21:06:55

There was a recent thread about fonts here https://clojurians.slack.com/archives/C03RZGPG3/p1684894689513419 which included Intel One Mono near the end...

seancorfield21:06:38

I tried it for an hour or so but went back to FiraCode. I used Hack for a while too but still prefer FiraCode.

👀 1
seancorfield21:06:05

(and my eyes will be 61 in four weeks 👓 )