What do you think? Feel free to discuss in this thread.
@nebunez That's an interesting perspective, and I think you might be on to something.
But let's not forget that JS makes some things a trash fire that do not need to be trash fires. For example, see this attachment.
It was supposed to be Scheme implemented in the browser, but instead it was decided to make it more like Java (because everyone was apparently losing their minds over Java at that exact moment, which is crazy as Java itself was utterly new at the time) and Brendan Eich got it out the door in TEN DAYS.
Python, by contrast, was little used throughout its 1.0 versions from the late 80's to 2000, giving it over a decade to come to a cohesive language design.
Python 3, in 2008, actually fixed some of the early issues present in Python 2, and is a great example of why this is almost never done.
the zeal of these forms of strongly held beliefs lead me towards an language aethism, a counter-belief that there is very little special about languages, and that most of the things people fret & wring their hands over are not a big deal.
@urusan elsewhere in this thread you have argued that languages like python have had the benefit of ~30 years of careful re-crafting
i feel like similar hope & aspirations apply here. yes, it looks different. sure the language has changed a bunch, but i think as importantly, how we use it has changed. surely the same goes for python & most languages.
Then again, in most cases, the developers are just doing what they're paid to do.
@nebunez Personally I don't think JS is a terrible language, I just use it as a shorthand for the role it fills in browsers. Which I think should have been filled in a better way than routinely running code that has shown itself to be untrustworthy!
@nebunez I think viewing any language as a binary good/bad puts the language on an unrealistic pedestal or ignores the great potential of it, respectively
@nebunez this is part of why I don't use node:
$ time node -e 'console.log("Hello, World")'
$ time python -c 'print("Hello, World")'
@epoch You might want to get your node install looked at; mine only took 0.047s,0.030s,0.018s
My Python times were better though, so judging by our times I might just be on better hardware. However, that gap is still huge.
@nebunez I think Lua is a good example of what a language with similar features should look like. Too bad all three want you to think in OOP terms and none have good support for typeclasses.
@nebunez really hard to vote because there is no question. If I choose python, what does it mean? Python good? Python bad?
@efftoyz The implication is if you pick one of the first two you are saying it is good and the other is bad.
@nebunez If I'm allowed to use Typescript, I definitely prefer it to Python. JS vs Python is sort of a wash.
@nebunez Python doesn't use lexical or dynamic scoping, it just makes up its own thing entirely.
I think most programming languages are dumpster fires.
I've also had a twenty year career writing Python, so I have a detailed view of its bad points.
I'm especially unhappy that Python 3 switched list operations to lazy generators, but you still produce the entire list but it's just immediately discarded after use. I think that's the worst of both worlds.
@nebunez There will always be haters whatever you pick. I personally like js and have been using it for about 10 years now. I agree with the criticism about the oddities in js, but have never had a single problem with it. I also like python.
This is a good debate. Personally I find myself a beginner in both Python and JS. I use JS more as I do more web development. As much as I'm enjoying it, I'm also aware of the negative aspects, and I wouldn't use it if it created a barrier to accessing my content etc. If it doesn't add value (and isn't ethical), I can't justify using it.
* Has all the same data science stuff as Python, but without having to be glue for C code (though C interop is still super easy)
* Is at the top of the language hierarchy, along with Lisp
* Uses multiple dispatch
* Is now reasonably mature
It's the language you've been looking for.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.