I think Js is.. okay? I can name some strengths and weaknesses,both of the language itself and the culture/ecosystem, but I certainly don't hate it.
The foundation is still abysmal, but it doesn’t hurt because you don’t have to look at it anymore or you can use modern facilities instead. Note the striking similarity to what LLMs give you, it’s the same thing on a higher level.
When learning something new, there's a transitionary era, where you just don't get it, but assume the experts do, and eventually you will as well.
That is unless you're talking about something like quantum mechanics, where not getting it is the sign that you're not smart enough.
And I didn't get it, and I constantly assumed I was two tutorials away from eureka. But no. I suspected that maybe the people dispensing wisdom and confidently decrying how their stuff is better might have been wrong, I thought it was just hubris and hunkered down, and eventually gave up, assuming I can't keep up with the state of the art anymore.
The turning point came when I encountered a bundler bug in a fairly reputable library, and delved into its source - I expected to find some reasonable compiler stuff in there - tokenizing, parsing etc. etc. but what I found was a bunch of regexes and string replacements.
At that point I had evidence that to at least some degree, the patients were running the madhouse, and while VB6 might be deeply unsexy, I highly doubt it's compiler ever featured gems like this (PHPs might have)
That framework churn, leftpad, etc. stuff I think is something the JS community will gladly memoryhole. Thankfully, I was rightly repelled by that mess, and fled back to backend, and returned only when things calmed down.
Btw, the pre-SPA era of jQuery is an interesting paradigm, while writing modern TS feels like writing basically any other language.
The C/C++ world where browsers came from didn't have this (closures). So it is actually a miracle we got a language as (relatively) great as Javascript.
I think it was the right call by the C++ people to explicitly list what objects are captured and how, even if the syntax's not the best.
RAII is a fact of life unfortunately, not just in C++ or Rust, but if you talk over some high level protocol over the internet you go TCP socket->HTTP connection->your stream protocol; and have to do the exact reverse.
Closures break RAII hard.
Incidentally, you don't even need closures for nice looking UI code. Immediate mode GUIs like Dear Imgui or Clay allow for super-simple looking code in basic C
Layout computation is always awkward in immediate guis. You have to do an extra pass or throw away a frame.
Here's a cool explainer video:
Having recently worked a lot with Rust, which does this implicitly - I find the explicit notation entirely unnecessary. There's only one choice - are captures moved into closure or passed by reference? - and everything else is inferred. It does lead to some verbose cloning when there are many refcounting pointers at play, but other than that it works flawlessly; I've never been in a situation I couldn't do something I wanted to.
I'm confused by the point about RAII. Why are you saying that closures break it? Personally, I found that closures complement RAII very well - the closure owns its resources, and when it goes out of scope they're all cleaned up automatically. Or do you mean situations where resources outlive the closures? This is no different than any other object that needs a reference to something that lives longer.
const add = (a, b) => a + b;
And may need to read this a couple of times because of the lone "+" and the parentheses:
(define (add a b) (+ a b))
... and this is the simplest of examples. It's not slightly unfamiliar syntax. Perhaps Rust is slightly unfamiliar syntax, if we mean really just the syntax - as in, you can tell where the functions start and end.
You could also say that Scheme has very little syntax, for example, no distinction between statements and expressions, no operator precedence, and nearly zero reserved punctuation. So I'd argue that it needs more adaptation because it is less.
I was banished from golang communities when I said that a language should deviate from already established standards only when it has a good reason to do so. I remember it being quite ironic that golang took pride in not overloading names, and then... overloaded the English word "go". It's really unreadable unless you specifically study golang.
I could go on very long how much I hate golang for its stupid syntax alone, even before we dive deeper into its broken features.
Regarding Scheme itself, functional languages never gain traction because both humans and machines think imperatively. Yes, functional languages are a beauty for someone who understands them well, and in some specific use cases, but I still remember that as a student I finished my project, I just needed to add a few prints... oh fuck I need to rewrite the entire thing just to add "print". Never touched functional programming again, except for functional elements in imperative languages.
> "Once on 4chan I read an opinion about golang that isn't suitable for this website and I fully agree." -anal_reactor
Maybe your shouldn't get your opinions about goland from 4chan, or your online personality and ideology either.
Or your opinions about women and masculinity either:
https://news.ycombinator.com/item?id=50599656
> "Some time ago I've seen a comment on 4chan that simplifies things, but has a decent grain of truth in it. [...self loathing misogynistic transphobic incel rationaliztions redacted...]" -anal_reactor
A feature existed since 1960s...
I mean, you can hate a language compared to another language, but to the point of making you hate programming? To me, if you do, you probably don't really like programming in the first place. Especially considering that Javascript is a conventional language with variables, conditions, loops, functions, etc... the kind that should be mostly transparent to an experienced programmer.
It would be like a woodworker saying that pine made him hate woodworking, sure, you may prefer to work with oak, but pine is still wood.
This is exactly the opposite of the truth.
Programmers don't program because they like variables, conditions, loops and functions. In fact some of the best languages ever created don't have most of those things. Apparently your experience of programming doesn't extend very far given your idea of programming seems to go only as far as those basic concrete concepts.
There is such thing as neatness, elegance and beauty, especially in programming and mathematics. As in other fields it's the people with the least taste and appreciation of that who are the haters, like yourself, because they don't understand the issue at hand.
Your analogy with woodworking is deeply flawed as well. Woodworkers do actually strongly prefer certain types of wood.
> It would be like a woodworker saying that pine made him hate woodworking, sure, you may prefer to work with oak, but pine is still wood.
It would be like woodworker getting dull tools to work and wood being rotten
I wrote software in js and then moved to ts and sometimes have to go back to js. It’s fine to me.
Ignorance is bliss I guess.
Eventually with a lot of lipstick on the pig, like async / await, it has become much more tolerable.
Personally, ever since ES5 I really started to enjoy writing javascript, and by now practically all the warts feel quite easy to avoid. I can't say if that's personal mastery or language improvements, probably bit of both.
I still hate the ecosystem though, and always disliked it more than I ever disliked the insane var scoping rules or whatever from twenty years ago.
That's some serious dislike of JavaScript! I'm not a big fan of the language and definitely find typescript projects less enjoyable than others, but I'm surprised you found it such a big impact!
What languages were you working with before? I'm interested if it was a relatively generic OOP languages like Python/Java/etc, or something very opinionated/specific like Haskell/Lisp/etc?
I didn't want to write a large essay because it would be boring. Every language has annoyances, but the thing with javascript is that it's a terrible server programming language (Node) and makes the already unpleasant UI client work even less pleasant.
A lot of my dissatisfaction was due to the environment of the web and full stack development work where Javascript became prevalent. Typescript fixed it somewhat while inheriting much of the "Framework of the week" mania from the javascript era.
In a nutshell the age of Javascript was when Software Engineering lost what I like to call "durable learning". Javascript always felt like a temporary hack and the surrounding ecosystem, ephemeral.
What I was always bemused by, was the rise of Javascript (Typescript, really) as an enterprise language.
The extra modern complexity at least gives you something in return with low level compiler optimizations and assurances that vanilla C and "C with classes" C++ can't easily offer.
I, too, was a manager, and that trained me to rely on "black box" code, written by others, and how to evaluate and control its Quality and feature set. Running an LLM is pretty much an extension of that. I didn't like being a manager, but that was mostly because of corporate garbage, not because the work was bad (I was just not allowed to do as much as I wanted to).
I love coding, but I like design, architecture, and delivery, even more, and LLMs allow me to exercise these. Now that I'm retired, I no longer have to deal with high-Dilbert-Index work environments, and that makes all the difference.
LLMs have given me extra time back, which I am using to study graphic design.
I'm more of a product guy so I tend to view DevOps as absolutely critical, and an area where a correct solution is of supreme importance, but also as something of a distraction from doing something that I find more fun and interesting.
(Before anyone gets upset, I'm not making a general statement about whether or not DevOps is objectively interesting, I'm just saying that I don't enjoy it. I know loads of people do find DevOps satisfying, which is absolutely great and to the benefit of all of us.)
But Claude has allowed me to set up this ludicrously overengineered pipeline - the sort of thing you see in a large enterprises with complex microservice architectures - that has completely automated every aspect of build, deployment, configuration, testing (including ordinarily pesky end to end tests), security and application hardening, monitoring, alerting, and so on. I've hit the ideal of "when the pipeline is green, the software is ready for release"... all for a personal website that gets maybe half a dozen real human visitors per day.
It's sort of ridiculous but, at the same time, with the increased frequency of new critical CVEs over the past few weeks and months, it also feels necessary.
But the great thing is that, in relative terms, I don't have to spend loads of time on it and can instead focus on other aspects of the site that are more interesting to me.
Unfortunately now due to a twist of fate and poor life choices, almost all the work I’m doing today is JS-based. I don’t even have the luxury of TypeScript half the time.
But you know what? With AI handling all that stuff, I don’t mind it anymore. It could even be described as… enjoyable??
But I can understand you, because I hate Python; I believe Python should be a dead language by 2026 but Google and Data Scientist brought to back to life for math and AI research. I still let AI agents write small Python scripts when they need to; sometimes I tell them to re-write in other languages; sometimes I leave it there and I continue with my life.
Actually Python has a similar problem in that there’s a cottage industry of solutions to make it behave more like a fundamentally different language (dataclasses, attrs, mypy, pydantic, fastapi, etc.) because it turns out what people like about python was its simple and expressive syntax rather than its fundamental design.
I was thinking about this, but in a more general sense. All those libraries, languages, their pitfalls and quirks made me not want to code at all, or at least automate coding to a degree where I don't have to suffer through someone's open source project. And in a way I got my wish.
I don't see the human aspect thing holding up in the industry. The manager's manager got some request through a LLM and passed it down, your manager passed LLM generated questions to a different department, who responded with an LLM answer which resulted in the developer having a LLM written ticket on their board which they will solve with an LLM. Along the way they, or well, their LLM, find out they'll need some data from a different team that they haven't planned for. They don't know what that data is, or why they really need it, but their LLM does, so the LLM asks the LLM of the other team.
You could argue this is good, efficient, cool, or whatever, and I will probably disagree, but I just cannot see how there is any form of a human aspect in the whole thing
Javascript is ugly, but simple and got the job done. That's the reason for its success.
Well, what alternative was there? At the time for the bowser - none as far as I remember. For the server ... Java was bloated and PHP even more ugly. So I also choose node.
Nobody wanted to implement another language which would have broken cross browser functionality for animating menus on HTML pages.
> And why did it spread to servers?
Because frontend devs didn't want to learn another programming language.
> Java was bloated and PHP even more ugly. So I also choose node.
So you chose an environment that was slow, single-threaded, had an immature ecosystem, callback hell, and was difficult to debug. To each their own I guess.
What choice was there, when I liked Java even less?
And node is just simple. I even used it as a cross plattform toolset. Indexing files. Moving around, tagging, sorting, toolcall. Not nice looking, but simple enough that it just worked. And I never had callback hell in node, as I kept my servers simple and most of the logic on the client.
AI destroys the work of those who like to write the code. And it makes it fun for people who don't like to code, because they don't have to. And you're in the second group. Lucky you, I guess.
I completely agree: there are a a few libraries that I have to work with that are insultingly badly designed, almost like the designers were trying to spite the users. But I have to use them, so vibecoding is great. There are other languages where programming is still fun.
Some replies are assuming I coded for a couple of years and then became a people manager. In fact I only became a pure people manager in the last third of my career, when Javascript became hard to avoid.
Before then, I jumped around tech lead roles with different degrees of management responsibilities but mostly hands on, sometimes being the person with most code contributions on the team.
I love some areas of coding like backend, firmware and systems development. I had a diverse career.
This is an anonymous profile so I will stop... :)
"When most people don't understand what I mean, it's obviously them, not me".
He really enjoyed doing it, I enjoyed building on top of what he did, and it's one of the most elegant implementions of Forth I've seen, as if for decades the PDP-7 has always had a fast lean mean Forth screaming to get out, thanks to its ideal instruction set.
Now thanks to JavaScript's efficient VMs inspired by Self, and Dave Ungar's subsequent ideas about Korz, it runs ridiculously fast on a Korz PDP-7 emulator implemented in TypeScript with a PDP-7 instruction to JavaScript JIT. So does the Korz Apple ][ emulator. Now I'm working on reincarnating my Apple ][ ProDOS 6502 Forth 83 system.
https://github.com/SimHacker/moollm/tree/main/designs/korz
Forth Day Talks: Mitch Bradley, PDP-7 Forth, Don Hopkins, PDP-7 and Apple ][ Emulator
https://www.youtube.com/watch?v=k2pwJ294r8o
https://en.wikipedia.org/wiki/Open_Firmware
https://en.wikipedia.org/wiki/OpenBIOS
https://github.com/mitchbradley
Forth Day notes:
https://github.com/SimHacker/WillWrightShowForFood/blob/main...
Forth Ultimate Hand demo:
https://hyperties.org/cabinet/devices/ultimate-hand/
"Thinking Forth" discussion:
https://news.ycombinator.com/item?id=33681531
>I've frequently written about Mitch Bradley's Forthmacs / Sun Forth / CForth / OpenBoot / OpenFirmware on HN. I was his summer intern at Sun in 1987, and used his Forth systems in many projects! [...]
"EFI? Intel has been trying to shove that down our throats for years." discussion:
https://news.ycombinator.com/item?id=12240478
Mitch Bradley originally developed a Forth system at Sun for use diagnosing and developing hardware, by burning it into ROM and running it via a serial port. It was based on Langston and Perry's Forth-83, and had a meta compiler that could target different word sizes and architectures. He made it even more architecture and word size independent, implemented interactive top level loops and conditionals, emacs-like line editing, all kinds of low level device drivers and testers that ran in stand-alone mode, and many other features, including full 16 and 32 bit support with a vocabulary for writing word size and endian independent code.
He ported Sun Forth to 68K and SPARC Sun workstations, as well as the Amiga and other systems. It ran in both stand-alone mode (from disk, tftp or ROM), or under Unix. Under Unix, it could dynamically relocate and link in Unix libraries, and you could call back and forth between Forth and C.
Sun Forth eventually evolved and standardized into the Open Firmware [1], whose purpose was to support machine independent byte code [2], so plug-in hardware cards could include ROMs with Forth byte code drivers that ran on 68K, SPARC, x86 and other systems.
Sun shipped it with the SPARC workstations, Apple adopted it and shipped it on their PowerPC Macs, IBM shipped with their POWER servers, and Mitch worked directly with the OLPC project extending OpenFirmware to support the OLPC XO-1 Children's Computer secure and power efficient hardware. [3]
>OLPC Wiki: Open Firmware
>Open Firmware is the hardware-independent firmware (computer software which loads the operating system) that the XO runs.
>It was developed by Mitch Bradley at Sun Microsystems, and used in post-NuBus PowerPC-based Apple Macintosh computers (though it has been dropped with Apple's transition to Intel processors), Sun Microsystems SPARC based workstations and servers, IBM POWER systems, and PegasosPPC systems, among others. On those computers, Open Firmware fulfills the same tasks as BIOS does on PC computers.
>For example Fedora and Debian use the YaBoot BootLoader for Open Firmware.
>The Open Firmware user interface includes a FORTH-based shell interface. FORTH is a powerful high level language that is remarkably compact. A complete Forth development environment including compiler, decompiler, assembler, disassembler, source level debugger, and assembly language debugger is present in the XO boot ROM (SPI FLASH). With the Open Firmware Forth system, you can directly access all of the hardware devices on the XO, use built-in functions like selftest diagnostics and games, and even write complete applications, without needing any external tools. The bulk of Open Firmware is written in Forth, so the source level debugger can be used to debug Open Firmware itself.
[1] http://www.openfirmware.info
They'll bet on any horse you tell them to. This is a new low even for pro-AI astroturfing.
You won’t be here to live with the consequences of your actions, which has been a theme for humanity. The western world is profoundly selfish (I’m not saying the eastern isn’t, but I won’t pretend to know that as well) and individualistic. It’s “me me me, my needs, what I want and like, fuck everyone else. When shit hits the fan, society and the government should rally to do something to help me. Someone makes a comment critical of me or my group? They should be downvoted, fired, removed from the gene pool”.
All of that lead to the situation we’re in. Everyone wants to get ahead of everyone else with complete disregard for others, and thus we all lose. Unfortunately the consequences come so late that the ones paying for them aren’t the culprits.
Everyone who is gaga over LLMs for coding and ignores all the external problems is by this point at best wilfully ignorant (I’m not saying that’s you, but those people exist). In the large scheme of things, having optional fun from using LLMs is far at the bottom of things which matter to the AI discussion.
I don't think that the external problems we see are intrinsic of AI. Firstly, we live in a bubble world where any new promising technology would get insane amounts of investments anyway. I think the issue with the data center build out isn't as much that we are building too many of them, but that we're building them so quickly that we're overlooking environmental and human concerns.
Secondly, the jury is out there on whether AI is a net positive or negative to humanity as a technology, aside from the other concerns. It wouldn't be intellectually honest to state either with certainty.
It has been a net positive for me but I'd be okay if society decides, with proper evidence and debate, that we can't have it.
(as long as we bury Javascript with it :) )
Extroverted folks will benefit I suspect.
Pray tell, what's the perfect programming language that you prefer that has no faults?
People think JavaScript is bad language simply because they never bother to learn how it works. As an example of why JS sucks people often give examples such as 'if you XOR a float and an array you get the string "false"' as if that operation even makes sense. JavaScript has had for years pretty much the same feature set as every other major equivalent language (like Python).
If the operation doesn't make sense in any case then the compiler should stop me, or (at very least) the interpreter should throw exceptions.
Glad you're getting pleasure from other people's misfortune, I guess?