Most active commenters
  • cies(7)
  • demosthanos(7)
  • (5)
  • regularfry(5)
  • ivan_gammel(5)
  • thrw42A8N(5)
  • leptons(5)
  • neonsunset(4)
  • elashri(3)
  • fbn79(3)

←back to thread

272 points abdisalan | 174 comments | | HN request time: 2.145s | source | bottom
1. mvkel ◴[] No.42175730[source]
> time to run it after not touching it for 4 years

> Two hours of my life gone...

Two hours of work after 4 years sounds ... perfectly acceptable?

And it would have run perfectly right away if the node version was specified, so a good learning, too

This feels like making a mountain out of a mole hill

replies(21): >>42175799 #>>42175818 #>>42175826 #>>42175846 #>>42176217 #>>42176305 #>>42176788 #>>42176958 #>>42181497 #>>42182299 #>>42182564 #>>42182778 #>>42183020 #>>42183093 #>>42183501 #>>42183725 #>>42184814 #>>42192770 #>>42193606 #>>42194518 #>>42211558 #
2. mattgreenrocks ◴[] No.42175799[source]
Other ecosystems usually do not have problems to the extent the author had.
replies(2): >>42175953 #>>42177000 #
3. korkybuchek ◴[] No.42175818[source]
> Two hours of work after 4 years sounds ... perfectly acceptable?

Does it, though? Node wasn't exactly new 4 years ago, and plenty of other languages would offer a better experience for even older code -- Java, C, C++ to name a few.

replies(2): >>42180614 #>>42183420 #
4. abdisalan ◴[] No.42175826[source]
You’re absolutely right. My rational brain agrees and chalks it up to poor project management. However… emotions run high when you have zero idea why something isn’t working and the process of elimination is pretty taxing. So the point for me is venting / maybe someone will read this and remember to write their node version down!
5. ErikAugust ◴[] No.42175846[source]
Also, Gatsby has dependencies that aren’t even Node. I have had it break too.
6. hathawsh ◴[] No.42175953[source]
I am deep in the Python ecosystem, and I love Python, but I have to admit that Python has the same issue. Reviving a medium-size project after 4 or more years usually means I have to catch up on a lot of new surprising deprecations. That's not because there's anything wrong with Python; it's more of an economic issue: the authors of active libraries have little or no economic incentive to support old, deprecated versions, so they just don't. That's life in the modern world. It is a deep problem that should theoretically affect every large software ecosystem because very few library authors can predict the future with great accuracy, and very few open source library authors have any significant incentive to support old ideas.
replies(3): >>42176165 #>>42181256 #>>42184012 #
7. tmpz22 ◴[] No.42176165{3}[source]
> That's life in the modern world. It is a deep problem that should theoretically affect every large software ecosystem because very few library authors can predict the future with great accuracy, and very few open source library authors have any significant incentive to support old ideas.

I disagree. This is an easy problem to avoid with minimal due diligence, people just choose convenience and make unnecessary tradeoffs.

* Use the standard library (ironically not available for Node projects). It will be built with better backwards compatibility almost every time. What deprecations do occur will likely be VERY WELL documented with much quicker adaptions.

* Limit third party dependencies. Do you really need an ORM for your apps 40 sql queries? How long would it take you to scaffold it with GenerativeAI then make it production-worthy without the ORM? 1 hour? 5 hours? 20 hours?

* Pick technologies with better track records. Maybe don't use Beta software like Swift Data for your iOS App. Maybe choose golang for your API even though it'll take a little bit longer to build it.

replies(3): >>42176297 #>>42182193 #>>42210256 #
8. arp242 ◴[] No.42176217[source]
Well, the "solution" ended up as "I gave up and just installed an old Node version and called it a day". So those 2 hours weren't even enough.

I've been using Jekyll/Ruby since 2014 for my website, with a few custom plugins I wrote myself. And I've never really needed to do anything like this. It "just works".

My Go and C programs are the same: "just works". I have some that are close to a decade old.

replies(4): >>42176445 #>>42181328 #>>42181355 #>>42182182 #
9. Nadya ◴[] No.42176297{4}[source]
And this is how you end up with rewriting the world and spending more time rewriting dozens of existing libraries to avoid adding them as dependencies and less time working on the problem you're actually trying to solve because you're fixing the same dozen bugs that the first person already went through the trouble of fixing for you had you simply used their library instead of eschewing it and having to learn everything that they had already learned for you. Often times because the problem space is deeper than you could have known before getting into the weeds and hopefully you don't get bit by sunk cost and decide to do yourself a favor and just use a library instead of continuing to work on solving problems that aren't related to what you set out to do.

There's a balance to be struck between LeftPad scenarios and "Now there are 37 competing libraries".

replies(2): >>42176523 #>>42185258 #
10. fourseventy ◴[] No.42176305[source]
Sounds like you are way too used to the javascript ecosystem if you think getting an old project to build should take hours...
replies(4): >>42176343 #>>42176528 #>>42185263 #>>42185292 #
11. viraptor ◴[] No.42176343[source]
This is not even JS specific. All of Python / Ruby / other changing runtimes will require some upkeep. Even C recently needs some attention because clang updated default errors.
replies(2): >>42176394 #>>42177183 #
12. Macha ◴[] No.42176394{3}[source]
Even some of my Rust projects end up in this state, where updating one library ends up with needing to update interacting libraries.
replies(1): >>42187920 #
13. jeberle ◴[] No.42176445[source]
Not sure if I'd call out Jekyll as a paragon of stability. The last time I touched it, I made sure to write up detailed notes. In fairness, it's the only time I interact w/ Ruby.

https://jeberle.github.io/jekyll-setup

replies(1): >>42176792 #
14. hathawsh ◴[] No.42176523{5}[source]
Exactly. The right thing to do is study each dependency and decide whether the reward of having the problem solved quickly is worth the many risks of adding dependencies.

I'll acknowledge here that there seems to be a significant difference between Python projects and Node projects: in my experience, a small Python project has a handful of dependencies and maybe a dozen sub-dependencies, while a small Node project usually has a handful of dependencies and a few hundred sub-dependencies. That's where Python's "batteries included" motto does seem to help.

15. Ameo ◴[] No.42176528[source]
What ecosystem are you comparing to?

Any C/C++ project with even mild complexity has a good chance of being extremely difficult to build due to either missing libraries that have to be installed manually, system incompatibilities, or compiler issues.

Python has like 28 competing package managers and install options, half of which are deprecated or incompatible. I can't even run `pip install` at all anymore on Debian.

Even Rust, which is usually great and has modern packaging and built-in dependency management, often has issues building old projects due to breaking changes to the compiler.

All this is to try to say that I don't think this is some problem unique to JS at all - but rather a side effect of complex interconnected systems that change often.

A big reason Docker and containers in general became so popular was because it makes this problem a lot less difficult by bundling much of the environment into the container, and Docker is very much agnostic to the language and ecosystem running inside it.

replies(6): >>42178164 #>>42179805 #>>42180587 #>>42181310 #>>42184179 #>>42191776 #
16. WD-42 ◴[] No.42176788[source]
Which is fine until your host doesn’t support older versions of node.

I just got burned by an old js (vue 2) project. I ended up re writing it using good old ssr in Django with htmx and alpine when necessary. Now it’ll run until the end of time. It doesn’t even have a build step.

replies(1): >>42183177 #
17. arp242 ◴[] No.42176792{3}[source]
Those mostly seem the standard Ruby/Jekyll/GitHub Pages setup instructions?

I don't love how bundler works by the way; I think it should/could be a lot better in many different ways. Same for Jekyll. But once it works, it generally keeps working.

I don't think Jekyll (or Ruby) are a paragon of stability. I'm sure some stuff has broken over the years. It just seems to break a lot less than the JS/Node ecosystems.

18. em-bee ◴[] No.42176958[source]
it took two hours just to get the project running as it was 4 years ago. wait how much time it will take to upgrade everything to new versions.

and dare i say this is the lucky case. i had problems reactivating some older project because some dependencies were not version locked and newer versions of those were incompatible with other versioned ones. then it took forever to figure out the right versions. and i think i even had situations where the old version wasn't even available anymore (perhaps because of a linux dependency that wasn't available anymore on my newer linux system)

replies(2): >>42182397 #>>42184998 #
19. Supermancho ◴[] No.42177000[source]
Maybe they can try to get the node version into the package-lock tomorrow? This seems like an opportunity to improve the ecosystem, rather than a biting critique.
replies(1): >>42177145 #
20. cxr ◴[] No.42177145{3}[source]
Or, instead of responding to sunk costs by getting sunk deeper into the muck, just cut your losses, ditch Node and its proprietary/non-standard APIs and unstable featureset, and use a standard runtime.

The author of the blog post is trying to run a static site generator. A static site generator doesn't need to be able to do anything that Node provides that can't be done with the World Wide Wruntime (which they're already going to use to verify the correctness of the SSG output). So use that runtime and tools that target it, not Node.

replies(2): >>42242802 #>>42278890 #
21. ◴[] No.42177183{3}[source]
22. ramon156 ◴[] No.42178164{3}[source]
Libraries in the project fixes this whole issue for C/C++. As for compiler issues, just run it with the same compiler. It really shouldn't take more than 20 mins of setup.
replies(1): >>42181244 #
23. elashri ◴[] No.42179805{3}[source]
You can't use 'pip install' in debian because they chose to do that during the transition from python2 to python3. You should use 'pip3 install' which is provided by package python3-pip from debian.

One can argue that this decision should be revised by debian but you should not install packages on system python installation for working into projects. Always use virtual environment.

replies(1): >>42180222 #
24. Ameo ◴[] No.42180222{4}[source]
No that does not work either. You get an error like this:

» pip3 install supervisor error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

As far as I can understand, they did this on purpose to dissuade users from installing packages globally to avoid conflicts with other Python environments.

Anyway, I'm not trying to argue about if that decision is right or not - I just wanted to use it as an example for my case that the JS ecosystem isn't alone and may even be far from the worst when it comes to this kind of issue.

replies(3): >>42181070 #>>42181259 #>>42184227 #
25. treflop ◴[] No.42180587{3}[source]
Java has a great ecosystem. It’s well thought out and I can compile and run 10 year old projects no problem. In fact, I wish everyone had just copied Java’s model instead of inventing their own worse model.

I love Python but it has a terrible package ecosystem with mediocre tooling that has only gotten worse with time.

JavaScript has gotten better but it seems they are just re-learning things that were long figured out.

When I see new package managers, I just see a list of problems that they forgot to account for. Which I find strange when there have been many package managers that you can learn from. Why are you re-inventing the wheel?

replies(3): >>42182207 #>>42182685 #>>42183352 #
26. mvkel ◴[] No.42180614[source]
Define "better experience."

1.5 hours to get running again?

1?

In exchange for needing to run C? How many hours would it take to build a Node app equivalent in C, I wonder.

replies(1): >>42181275 #
27. elashri ◴[] No.42181070{5}[source]
I understand that, you can use `--break-system-packages` or change configuration `python3 -m pip config set global.break-system-packages true`.

Python is different here because in many linux distributions, there are many tools that rely on you system python. Python unlike node is not limited (in practice) to web applications. that's why you have to be more careful. So while I understand you are using this as an example, I don't feel that your comparison is apple to an apple.

replies(1): >>42183091 #
28. lmm ◴[] No.42181244{4}[source]
> Libraries in the project fixes this whole issue for C/C++.

Yeah, make sure no-one can ever fix your security vulnerabilities.

> As for compiler issues, just run it with the same compiler.

And when the same compiler doesn't exist for your new machine?

Freezing everything makes things easier in the short term, but much harder in the long term.

29. lmm ◴[] No.42181256{3}[source]
> That's not because there's anything wrong with Python

It's absolutely because there's something wrong with Python, the package management, and also the type safety. JVM languages haven't had these problems for 20+ years.

30. regularfry ◴[] No.42181259{5}[source]
My slightly heretical opinion is that Debian would have been better off removing system pip entirely. The system python is for the system.
replies(1): >>42183221 #
31. regularfry ◴[] No.42181275{3}[source]
0 would be fine. I'd take 0. This could all have been avoided if the interpreter version had been recorded by default somewhere. That's all this needed.
32. skeletal88 ◴[] No.42181310{3}[source]
Javascipt is a horrible language because it basically is missing a standard library so you need external dependancies even for the most basic things that are already present in other languages. Python has a very rich standard library. You can do a lot with libc, if you had a c++ Qt project then it would provide you with basically everything you could ever need.
replies(2): >>42182835 #>>42187241 #
33. pzmarzly ◴[] No.42181328[source]
Good for you, my experience with Jekyll is closer to OP's experience with Node. I have a big website that I built in 2014, with tons of custom plugins, that is now stuck on Jekyll 2.x and Ruby 2.x, and has a ton of hidden C++ dependencies. The way I build it now is using a Dockerfile with Ubuntu 18.04. I probably could update it given enough effort, but I was rather thinking of rewriting it in Astro.js or Next.js.
replies(3): >>42181523 #>>42182439 #>>42217665 #
34. Aeolun ◴[] No.42181355[source]
Every single time I clone anything Go, I first spend a few hours sorting out dependency issues.
replies(1): >>42182509 #
35. fbn79 ◴[] No.42181497[source]
I would love the author to test and old java/maven project. Node is a paradise compared to that stack.
replies(2): >>42181720 #>>42181950 #
36. rahoulb ◴[] No.42181523{3}[source]
This is the issue I have with the "build vs buy (or import)" aspect of today's programming.

There are countless gems, libraries or packages out there that make your life easier and development so much faster.

But software (in my experience) always lives longer than you expect it to, so you need to be sure that your dependencies will be maintained for that lifetime (or have enough time to do the maintenance or plug in the replacements yourself).

37. avtolik ◴[] No.42181720[source]
Why do you think so? I have 10+ years old Java/Maven projects that build and run fine.
replies(1): >>42185591 #
38. cies ◴[] No.42181950[source]
The only problems I've run into are related to certain package repos that went offline. So you have to track down suitable versions of certain packages on other repos.

OTOH with Node I always find myself in dependency hell with dealing with old projects.

replies(1): >>42185570 #
39. wink ◴[] No.42182182[source]
I dug out a small Rust project from 2016 and with edition = 2018 I got it running again in under 30 minutes, I was kinda surprised. 8 years is ancient in terms of Rust. I have had more problems with certain other crates. But yeah, C/C++ usually don't really compare. 5 years is nothing, it should just work. For Go the big breaking moment was modules. All my pre - 2016?ish code would need some work.
replies(1): >>42183982 #
40. pjc50 ◴[] No.42182193{4}[source]
> How long would it take you to scaffold it with GenerativeAI then make it production-worthy without the ORM?

Having a machine do codegen to map your queries to objects is still an ORM, except now it's nondeterministic and not updateable.

(mind you, I come from C# where you simply use LINQ+EF without worry, or occasionally Dapper for smaller cases)

41. wink ◴[] No.42182207{4}[source]
I am not sure you should put ant or maven as shining examples here, but I am kinda warming up to Gradle, at least without Groovy being involved.
replies(1): >>42183150 #
42. watt ◴[] No.42182299[source]
Did you read it? The author did not actually resolve the issue, only figured out that it should build with older Node version.
43. DecoySalamander ◴[] No.42182397[source]
It took 2 hours to realize that project build for a specific version of node should be run with that version of node. And even that was self inflicted since author didn't vet dependencies and used something build as a C++ node addon instead of actual JS (my bet it was to have a slightly easier time writing CSS).
44. ohthatsnotright ◴[] No.42182439{3}[source]
If you're looking for a stable target you should not even consider Next.
replies(2): >>42183264 #>>42199817 #
45. segfaltnh ◴[] No.42182509{3}[source]
This shocks me, what sort of issues do you hit?
replies(2): >>42182797 #>>42185025 #
46. jonathanlydall ◴[] No.42182564[source]
C# devs can open decade+ old solutions without issues, maybe this is just "normal" for the JavaScript ecosystem, but there absolutely exist other ecosystems which don't absolutely waste your time in this way.
replies(8): >>42182945 #>>42182967 #>>42183426 #>>42183534 #>>42183571 #>>42183855 #>>42184181 #>>42185862 #
47. ahoka ◴[] No.42182685{4}[source]
"Java has a great ecosystem. It’s well thought out and I can compile and run 10 year old projects no problem."

We just had to workaround breaking changes in a patch version update of Spring Boot. Maybe it was true in 2005, but certainly not the case today. I know of products that are stuck in Java 1.8 and not because they are too lazy to upgrade.

replies(1): >>42183507 #
48. blenderob ◴[] No.42182778[source]
> Two hours of work after 4 years sounds ... perfectly acceptable?

Pefectly acceptable? Perfectly? Really? I have 10 year old C and Go projects that build and run fine as if nothing has changed. I can upgrade the dependencies if I want to but that's on me. The projects themselves have no problem building and running fine.

replies(2): >>42187366 #>>42210265 #
49. fredrikholm ◴[] No.42182797{4}[source]
+1 on this. I've been using Go almost exclusively for the last 5 ish years partly because this sort of thing never happens.
replies(1): >>42183442 #
50. cies ◴[] No.42182835{4}[source]
> Javascipt is a horrible language because it basically is missing a standard library so you need external dependancies even for the most basic things that are already present in other languages

That's not the only reason. :)

Horrible syntax full of inconsistencies, bolted on type system with TypeScript helps but will always be bolted on, quirks everywhere, as if `null` was not bad enough they also have `undefined`, I can go on.

I simply avoid it for anything but small enhancements scripts on otherwise static HTML pages.

replies(1): >>42187285 #
51. nisegami ◴[] No.42182945[source]
I wish I lived in the world you described but trying to onboard a new dev onto an existing (edit: ancient) C# project at my job is frequently a multi-day endeavor.
52. toyg ◴[] No.42182967[source]
> C# devs can open decade+ old solutions without issues

For some definition of "without issues"...

53. molszanski ◴[] No.42183020[source]
I agree. It is not weird if you try to run old code through new env / vm / framework / compiler it can break.

Locking env version is important.

Double points for using experimental / POC technology like gatsby or nextjs. They are expected to burn and fail

54. LamaOfRuin ◴[] No.42183091{6}[source]
>Python unlike node is not limited (in practice) to web applications. that's why you have to be more careful.

They may or may not be running Node.js specifically, but I believe that many Linux distributions, as well as Windows, include JavaScript code in core applications. I don't see this as particularly different, except that they might choose to assume a single standard system Python that is able to be modified by standard Python development, whereas I would rarely expect that to be the case with however each component chooses to execute JavaScript.

replies(1): >>42183491 #
55. ivan_gammel ◴[] No.42183093[source]
I still can open my decade-old Java projects, run build with modern Maven/JDK and get working code - in a few minutes. Two hours of dancing with a drum doesn’t feel acceptable to me.
replies(5): >>42183272 #>>42183987 #>>42184062 #>>42184422 #>>42187870 #
56. ivan_gammel ◴[] No.42183150{5}[source]
What do you get from Gradle that Maven cannot offer?
57. authorfly ◴[] No.42183177[source]
I sympathize with you, I had one too. Luckily it was small.

It seems luck of the draw. My old React projects (old as in 2018) still work great with class components. I guess the Vue guy did say he would be more revolutionary, when he launched it.

58. j1elo ◴[] No.42183221{6}[source]
My not so heretical opinion is that PIP should behave like NPM by default, and work under a local environment subdirectory, just like "npm install" already creates a "node_modules" directory where to put all files, without the user needing to specify how and where and which env tool to use.
replies(2): >>42184259 #>>42184267 #
59. ◴[] No.42183264{4}[source]
60. demosthanos ◴[] No.42183272[source]
Maven, maybe, but Gradle absolutely not. If you don't have the exact version of Gradle that you used before, you're in for the same kind of misery documented above, with the same end state: just stick to the old version and deal with the upgrade later.
replies(3): >>42183488 #>>42185664 #>>42188426 #
61. demosthanos ◴[] No.42183352{4}[source]
In JetBrains's Developer Ecosystem 2023 survey, 50% of developers were still regularly working in Java 8 [0]—the exact kind of "stick with the old version of the runtime" solution described in TFA.

[0] https://www.jetbrains.com/lp/devecosystem-2023/java/

replies(1): >>42183515 #
62. demosthanos ◴[] No.42183420[source]
> Java

50% of Java developers are still regularly working in Java 8 [0], which is the same solution that the author could have arrived at immediately—when starting up an old project after 4 years, use the same version you ran last time, don't try to update before you even have the thing running.

> C, C++

Not my experience, but maybe it depends on your operating system and distro? In my experience sorting through the C libs and versions that you need to install on your system to build a new project can easily take a few hours.

[0] https://www.jetbrains.com/lp/devecosystem-2023/java/

63. thrw42A8N ◴[] No.42183426[source]
Lol, I left C# because I couldn't solve this issue and in Node.js it's particularly easy - just keep a nvmrc file and a dependency lockfile.
64. thrw42A8N ◴[] No.42183442{5}[source]
You lucked into the period when they solved the issues. If you need to work with older projects and can't easily convert them, you're going to have a bad time.
replies(1): >>42183931 #
65. ivan_gammel ◴[] No.42183488{3}[source]
Well, I‘m not talking about Gradle, right? Sometimes conservative choice is what gets the job done.
replies(2): >>42183533 #>>42183997 #
66. elashri ◴[] No.42183491{7}[source]
Apps that rely on OS provided Webview and electron apps are totally different situation. This is exactly what I said. And no, they don't use any standard nodejs installation like python. And they are different as I said. so this is still apples to orange comparison.
replies(1): >>42183642 #
67. demosthanos ◴[] No.42183501[source]
It's also two hours that would have been completely avoided if the author were familiar enough with Node to know to pin the version and not try to install 4 years of updates in one shot.

Most who are here saying that X, Y, or Z ecosystem "compiles and runs" fine after 4 years are talking about the time it takes to resume an old project in a language they're very familiar with running the same dependency versions, not the time it takes to version bump a project on a language that you don't know well without actually having it running first on the old version.

I can open my 4-year-old Node projects and run them just fine, but that's because I use the tools that the ecosystem provides for ensuring that I can do so (nvm, .nvmrc, engines field in package.json).

replies(2): >>42184974 #>>42184978 #
68. cess11 ◴[] No.42183507{5}[source]
I've been involved in bringing real old Java 1.4 and 6 and whatnot up to 17 and from classic app servers into cloud, can take a bit of work but it's pretty straightforward, mostly switching out deprecated methods to their successors and copying over boilerplate config from similar applications.
replies(1): >>42183901 #
69. lucianbr ◴[] No.42183515{5}[source]
Java 8 is 10 years old. If you had a project with a Java version that was recent 4 years ago (11 - 14), you could run it without any problems or changes.
replies(1): >>42183583 #
70. demosthanos ◴[] No.42183533{4}[source]
Right, I'm just clarifying for others who may not know the difference that Node doesn't have a monopoly on instability.

There are a very small number of projects that specifically make it their goal to be backwards-compatible effectively indefinitely, and Maven is one of those. It's part of what people who hate it hate about it, but for others it's the main selling point.

71. me551ah ◴[] No.42183534[source]
Not true for the entire C# ecosystem. I tried rebooting a Xamarin project I coded a couple of years ago. Had to spend weeks upgrading it cause Microsoft decided to discontinue Xamarin and force everyone to use NET MAUI
replies(1): >>42183621 #
72. timrobinson33 ◴[] No.42183571[source]
As it happens I've recently upgraded a 2 year old project with both node and C#

It was open much the same in both. If you're happy using outdated and unsupported components with security issues AND you can get hold of the right version of the dev tools and plugins AND your hiding environment still supports the old platform, you can maintain the old version with minimal change. But should any professional developer do this?

replies(1): >>42196557 #
73. demosthanos ◴[] No.42183583{6}[source]
Because they made the design choice to stop making large breaking changes to the language and tooling. Java 8 to 9 wasn't easier than Java 8 to 17 is, it's getting off of Java 8 that is hard because they made the choice to break so much in 9.

Node does not promise indefinite backwards compatibility, which is a design choice that they've made that allows them to shed old baggage, the same way that the Java developers chose to shed baggage in 8->9. Neither choice is inherently better, but you do have to understand which choice a language's designers were making during the time window in question when you go to run it later.

74. neonsunset ◴[] No.42183621{3}[source]
This has to do with specific framework and does not translate to the overall experience (for example targeting iOS is pain because Apple deprecates versions quickly, so downstream dependencies have to match this too).

You can open and build a back-end application that targets e.g. netcoreapp2.1 (6 years old target) just fine, it might require installing you an archived SDK for the build to succeed (which you can download regardless, it will complain that it is EOL though) but it's an otherwise simple procedure.

For library code it's even easier - if you have netstandard2.0 target, it will work anywhere from .NET Framework 4.6.1 to the latest version without requiring any maintenance effort whatsoever.

On Windows, Visual Studio will happily work with .NET Framework 3.0 (which is ancient) and more.

replies(2): >>42185278 #>>42186681 #
75. LamaOfRuin ◴[] No.42183642{8}[source]
>Apps that rely on OS provided Webview and electron apps are totally different situation.

No, they're not. I'm talking about core apps and services that are essential to a functional operating system. This is exactly the same situation. The difference is choices made by the OS and language ecosystem about how to manage dependencies in various use-cases. It is an apples to oranges comparison because of those decisions and not because of the language.

replies(1): >>42189302 #
76. antihero ◴[] No.42183725[source]
Yep, this could have been sorted by one line in a .tool-versions file and using mise or asdf.
77. JansjoFromIkea ◴[] No.42183855[source]
I think there's much bigger deviations from long term stability the closer you get to a GUI as things deviate further from ideals into brute force hacks for stuff to look right.

Can remember trying to update a Unity project so it'd be still buildable for 64-bit Mac devices. The very first version bump I done resulted in several critical libraries no longer working and there being no clear alternatives to swap in.

78. mleo ◴[] No.42183901{6}[source]
Depends on the frameworks in use. I have done the same as you in bringing code that was originally started on 1.4 up to 17 and now 21 and it just took grunt work, but not too crazy since most of it was bog standard Java.

However, some other projects around here using different application frameworks are stuck since the frameworks aren’t maintained or upgraded in ways that aren’t compatible anymore.

Looking into old Java code, it is hard to remember a time before enums and what a pain that is to deal with int constants instead of typed constants.

79. popcalc ◴[] No.42183931{6}[source]
I open up random Go projects from a decade+ ago every week with no issues.
replies(1): >>42184935 #
80. c0balt ◴[] No.42183982{3}[source]
Rust is kinda like c++ here, it's easy until you have a library that has external, non-vendored dependencies.
81. KronisLV ◴[] No.42183987[source]
> I still can open my decade-old Java projects, run build with modern Maven/JDK and get working code - in a few minutes.

Try any old Spring project, where anything newer than JDK 8 will be incompatible. The only saving grace is that JDK 8 is still available, but even it will eventually reach EOL. And then you look at JDK 11 projects and realize that they won't run on anything newer due to Lombok issues, so that's another thing to update and fix.

I think the experience of code rot is universal and increases with the amount of dependencies you have.

replies(3): >>42184173 #>>42187355 #>>42211544 #
82. lowboy ◴[] No.42183997{4}[source]
Well, the article is about npm, a package manager for node. Vendoring dependencies into source is a choice, albeit one that I don't often reach for.
replies(1): >>42184056 #
83. the_mitsuhiko ◴[] No.42184012{3}[source]
> I am deep in the Python ecosystem, and I love Python, but I have to admit that Python has the same issue.

The same problem in Python is much easier now because you can ask the uv resolver to limit itself to some earlier point in time.

You can do `uv pip install --editable . --exclude-newer=2022-01-01` and you will end up with a resolution from two years ago. Since uv can also install older python versions automatically you can easily bisect you to a newer point.

replies(1): >>42185385 #
84. cesarb ◴[] No.42184056{5}[source]
> Well, the article is about npm, a package manager for node.

And Maven is a package manager for Java. The main difference IMO? The usual way to do things in Maven is to always use exact versions for the dependencies. When I specify I want some dependency at version 1.2.3, Maven will use version 1.2.3 of that dependency even if 1.2.4 or later already exists.

replies(2): >>42184253 #>>42185188 #
85. andai ◴[] No.42184062[source]
I spent an hour or two figuring out how to even download Java, whether I need to give Oracle my home address, use a third party JDK etc. Then it turned out the standard built in GUI library I needed was no longer standard or built in. (I also used it ten years ago and it was a much better experience then.)
replies(4): >>42184202 #>>42185636 #>>42187229 #>>42188287 #
86. mperham ◴[] No.42184173{3}[source]
> I think the experience of code rot is universal and increases with the amount of dependencies you have.

This is true but there's also a factor from the language/framework in use. Node is especially bad because of it generates huge package dependency trees. Go is especially good because of the large stdlib (which I use to minimize deps in https://github.com/contribsys/faktory) and excellent backwards compatibility.

replies(2): >>42185563 #>>42187619 #
87. liontwist ◴[] No.42184179{3}[source]
I check out C projects which have not been updated in 15 years and run make.
replies(1): >>42185744 #
88. david_allison ◴[] No.42184181[source]
Not any more. Security vulnerabilities in dependencies now break the build by default.

It's arguable whether this is the correct decision, but it makes things slightly harder than they used to be

89. ivan_gammel ◴[] No.42184202{3}[source]
Well, I would spend probably similar time to get started on Pascal, which I used last time in the previous century. I would not blame Pascal for it though.
90. secondcoming ◴[] No.42184227{5}[source]
Encountered this too. So annoying.
91. ivan_gammel ◴[] No.42184253{6}[source]
Maven is also stable and requires only JDK to run. You can unzip it to desired location and add to PATH - it will be ready to go in a couple of minutes.

It will not build all old projects out of the box, of course. Specific versions of plugins may not be compatible with it or some dependencies may break on modern JDK. But chances of hitting this issue are much lower than in JS/NPM ecosystem.

92. secondcoming ◴[] No.42184259{7}[source]
Python is a scripting language. I shouldn’t need to faff about with environments if I want to run my script on another machine.
93. regularfry ◴[] No.42184267{7}[source]
Ah, but that would require that the python interpreter look first in the local directory in case there's a virtualenv there, which would mean your system could break depending on which directory you ran bits of it from. Less than ideal.

It's better all round to just assume that unless you're building something to be a part of the system itself, that the system interpreters just aren't for you. There's a special case for shells where they're actually UI, but I've seen so much effort wasted over the years trying to let system interpreters do double-duty as both system tools and development environments that I've come to the conclusion that it's simply not worth the hassle.

replies(1): >>42189169 #
94. addicted ◴[] No.42184422[source]
If node saved you 8 seconds per working day over those 4 years, you’d still be ahead spending 2 more hours on that node project every 4 years.
95. ericmcer ◴[] No.42184814[source]
Exactly, you would have to compare it to other package managers to make it fair.

Npm at this point is probably the most used and most worked on package manager in history. If it is still one of the worst ones that is actually kind of interesting philosophically.

96. thrw42A8N ◴[] No.42184935{7}[source]
Lucky you, then. I open them every week too, but definitely not without issues.
97. jorams ◴[] No.42184974[source]
The author didn't update all dependencies, they just tried running it on a newer version of Node itself. That is definitely a use case included when most people talk about an ecosystem compiling and running fine after several years.
replies(1): >>42185323 #
98. kwertyoowiyop ◴[] No.42184978[source]
Pinning versions should’ve been the default, then.
99. kwertyoowiyop ◴[] No.42184998[source]
And even though it builds, there’s no guarantee it’ll work properly.
100. Aeolun ◴[] No.42185025{4}[source]
Mainly weird issues of incompatible dependencies, maybe sometimes something that won’t compile because it’s missing a system dependency? I also feel like it sometimes pulls a newer or older dependency that is the missing some used module.
101. lowboy ◴[] No.42185188{6}[source]
Pinning to exact versions has been supported in npm for most, if not all of its life.

That’s the usual way to do things in most teams working on app code I’ve been a part of (as opposed to library code where version ranges are preferable).

102. tmpz22 ◴[] No.42185258{5}[source]
> There's a balance to be struck between LeftPad scenarios and "Now there are 37 competing libraries".

I think we're actually in agreement. My assertion is that for projects which want to avoid constant maintenance, particularly small projects, you can make architectural decisions some of which could significantly improve the maintenance outcome. Of course there are trade-offs to those, and if you make the wrong architectural decisions it can cause more harm than good.

Maybe I'm glib for calling it "easy" but for many leftpad scenarios it really is a "holy crap why did you think that was ok" scenario in my experience. Lets avoid those scenarios when we can.

103. ◴[] No.42185263[source]
104. a1o ◴[] No.42185278{4}[source]
Note Microsoft still removes downloads of previous versions of Visual Studio that aren't the latest - now you can only download VS2022 unless you have some mysterious paid account that has access to those - I don't have in either my personal or my corporate so I don't know the details
replies(1): >>42185825 #
105. ◴[] No.42185292[source]
106. demosthanos ◴[] No.42185323{3}[source]
In some ecosystems, yes, backwards compatibility is a given, but not in most. Python versions behave in much the same way as Node, with you having to make sure you're using the same Python version this time as last time in order to be able to install the same dependency versions. Java has been better in recent years, but Java 8->9 can take several hours to get working on even a small project.
107. cle ◴[] No.42185385{4}[source]
Will uv even be around in 4+ years? No idea.
replies(1): >>42186958 #
108. dilap ◴[] No.42185563{4}[source]
Plus even if you were using lots of deps, the Go code would almost certainly keep working, thanks to minimal version selection and the Go module mirror. (And of course for maximum reliability, could even easily vendor deps with "go mod vendor".)
109. fbn79 ◴[] No.42185570{3}[source]
In my experience this only happen if the project does not have a lock file and does not specify a node version (two good practice that must be followed).
replies(1): >>42204225 #
110. fbn79 ◴[] No.42185591{3}[source]
Maybe you are fortunate or I'm not because in projects I have experienced missing o changed maven repository urls and changed deps packages names or url. And was an hell to fix.
111. trinix912 ◴[] No.42185636{3}[source]
JavaFX? I’ve been there too, had to install it with maven and waste a few hours getting the maven xml just right for it to bundle the entire thing into a runnable jar (one that doesn’t require shipping extra files). Not the most convenient, but I get that they wanted to split it off the JDK release cycle.
112. trinix912 ◴[] No.42185664{3}[source]
Might be an unpopular opinion but I like it that way. It means that I can pull an old Gradle version and the build should succeed. Unlike maven where I’ve been bitten by plugin xml syntax changes and such.
113. icedchai ◴[] No.42185744{4}[source]
I have C code that I wrote in 1995 that still builds. There are many warnings, however.
114. trinix912 ◴[] No.42185825{5}[source]
This is true and is a pain if you’re stuck on something like Windows 7/8.1 (or 10 in the future). The installer being a web installer that auto-updates on start also means that downloading an older one doesn’t help at all. The only way seems to be to pirate the Enterprise offline installer which of course isn’t really an option.
115. horsawlarway ◴[] No.42185862[source]
As someone who has migrated old ASP/silverlight projects and BHOs... seriously, this is complete bullshit.

This depends highly on what dependencies are in your C# solution.

Same for his node project. If he'd stuck with dependencies that are just plain js - I'd bet money his project would have installed & built just fine.

By the time you're hitting the native addon apis and doing things like compiling python and C/C++ code... you're going to feel all the pains of those ecosystems too.

116. thrw42A8N ◴[] No.42186681{4}[source]
If you used pure Node.js, you wouldn't have any problems whatsoever, too.
replies(1): >>42186905 #
117. neonsunset ◴[] No.42186905{5}[source]
Unlike Node projects, your dependencies don't break - they stay on nuget.org, and the projects compile just like they did when they were first implemented. Upgrading dependencies and project target is subject to the same restrictions as in other good languages.

I know for sure that I can clone a random project on Github, hit `dotnet build` and usually expect it to work on the first try. The rate of bitrot for average unmaintained JS project cannot be compared. The average dependency graph of a .NET project is going to be 10 times smaller too.

replies(2): >>42188629 #>>42191608 #
118. the_mitsuhiko ◴[] No.42186958{5}[source]
I don't know either, but think even if it's not, whatever will replace it, will at least have to achieve feature parity.
119. Suppafly ◴[] No.42187229{3}[source]
>I spent an hour or two figuring out how to even download Java, whether I need to give Oracle my home address, use a third party JDK etc.

My son found a disk with some of my old java project from college 20 years ago and that's about what it took to run them, first figuring out how to even download java and then making some minor changes to get them running. I think we gave up trying to get the actual applet based ones to run.

replies(2): >>42210676 #>>42213380 #
120. leptons ◴[] No.42187241{4}[source]
A standard library is not a "language" feature.
121. leptons ◴[] No.42187285{5}[source]
It's okay for you to have the opinions you do, but I have zero problems programming very complex systems with Javascript, even without Typescript (before Typescript ever existed). Javascript has always been the easiest language to build anything with for me. And yes, I know a dozen other languages including C, C++, C#, Python, Go, various flavors of Assembly, and more - but Javascript is still my favorite. YMMV.
replies(1): >>42191924 #
122. nitwit005 ◴[] No.42187355{3}[source]
Spring generates bytecode, and Lombok is a language extension. You're effectively writing code in another language that's very similar to Java.

The company I work at has a ton of projects stuck on ancient spring versions and Java 8 (or Java 6 in one instance). They still insist on Spring despite being essentially unable to upgrade to a version newer than a decade old.

replies(1): >>42191475 #
123. danieldk ◴[] No.42187366[source]
Just to try it out, I took one of my old C projects written in 2010, last code update in 2012. It's a machine learning utility to train maximum entropy rankers. I was a bit worried because it used CMake (rather than a vanilla Makefile). It configured and built without any issues (and super-fast).
replies(1): >>42192755 #
124. guappa ◴[] No.42187619{4}[source]
> Go is especially good because of the large stdlib

Come on… compare it with what java and python have.

replies(2): >>42187755 #>>42188024 #
125. dartos ◴[] No.42187755{5}[source]
What does Java or Python have in their stdlib that go doesn’t?
replies(1): >>42188499 #
126. jvanderbot ◴[] No.42187870[source]
`make` works pretty well on ... everything I've written that I kept since then.

`cmake ..` otoh, tends not to.

replies(1): >>42194141 #
127. jakimfett ◴[] No.42187920{4}[source]
That sounds pretty frustrating.

When I find my shell scripts from 20+ years ago, they still just run as intended.

128. blizdiddy ◴[] No.42188024{5}[source]
Java can't even read/write json without third party libraries.

Tell me a single thing that Oracle has added to the standard library. As far as I can tell, more and more of what was once standard is now getting offloaded and trademark-washed with the eclipse and apache foundations.

129. sorokod ◴[] No.42188287{3}[source]
To save you time in the future:

https://adoptium.net/en-GB/

Haven't used javaFX for a while but this is worth a shot

https://openjfx.io

130. cypressious ◴[] No.42188426{3}[source]
If you use the the Gradle wrapper, it will use the correct version and download it if necessary. If I'm not mistaken, that's the recommended approach.
131. guappa ◴[] No.42188499{6}[source]
Well python has syslog, mmap, just to name a couple of things.
replies(1): >>42193768 #
132. thrw42A8N ◴[] No.42188629{6}[source]
Yeah, that's nice, unfortunately it's the built-in Microsoft stuff like WPF that keeps breaking between versions.
133. j1elo ◴[] No.42189169{8}[source]
That's the idea, yes. Do you have by any chance any experience with Node.js? Running a JS script is usually done in two steps:

  1. npm install
  2. node my_script.js
First one downloads and installs all dependencies listed in a package.json file into a node_modules local subdir. This is equivalent to creating a pip venv, activating the venv, and running pip install against a requirements.txt file.

Second one runs the interpreter with the script file and against the locally downloaded dependencies.

I.e. the local env dirs in Node.js are not a suggestion that you need to learn about, make choices, and actually use; they are just how the tool works by default, which makes the experience of using Node.js with NPM by far much better and less confusing than the default experience of using Python with PIP.

replies(1): >>42191992 #
134. jcelerier ◴[] No.42189302{9}[source]
Which apps would that be ? I'm pretty sure there's zero node server running on my desktops & laptops at the moment
135. KronisLV ◴[] No.42191475{4}[source]
> Spring generates bytecode, and Lombok is a language extension. You're effectively writing code in another language that's very similar to Java.

That's the reality of using the language in production projects.

Same as how you're likely to see more than just Python or Node being used in projects that list them in the tech stack, because there's native dependencies and tooling used.

136. MrJohz ◴[] No.42191608{6}[source]
This is true for NodeJS as well - dependencies on NPM cannot be removed, so at long as NPM keeps running, and as long as you've got a lockfile that precisely specifies all dependencies, you shouldn't run into problems running older projects. (Certainly I have never had an issue with this - the problems, if they occur, are always around upgrading. And like you say, this is subject to much the same issues in every ecosystem).

If this isn't enough, there are tools like Yarn which encourage vendoring dependencies to ensure that as long as you have a copy of the repository, the yarn CLI, and a valid version of NodeJS, you can always run the project.

137. d3VwsX ◴[] No.42191776{3}[source]
I don't know if any API does this, but I often wished that APIs I used could mark up just a tiny, tiny subset as @FutureSafe, like the opposite of tagging deprecated code, so that for smaller projects you could stick to only or mostly those parts and know that you can come back after 2 years or 20 years and things still work. Maybe throw in a compiler flag to verify that nothing not-@FutureSafe is used by accident. Sometimes you just want to write something small, once, and not have to actively maintain it forever. Outside of shell-scripts or retro-platform code you can barely write Hello World for any target today and feel confident that it will still run six months from now.
138. cies ◴[] No.42191924{6}[source]
> It's okay for you to have the opinions you do

Likewise.

> I know [...] C, C++, C#, Python, Go, various flavors of Assembly

That's good. But these are all languages that either lack strong typing and or are themselves rather quirky.

Only C# and Go stand out, IMHO, as languages that are recently designed. Even Python did not have user defined classes in the first versions, and some things thus feel off (__len__, __init__, etc.).

Also C# and Go still have implicit nulls all over the place. Their designs show ignorance for modern language design. Sum-types, explicit null, immutability, sound type systems -- all lacking in all langs you mention.

So what languages do have these IMHO "Game changers"? OCaml/ReScript/ReasonML, Haskell, Elm, Rust, Gleam, F#, Scala, Kotlin, ...

Those languages really showed _me_ something important: how it could be better.

There is another group of languages that also sits on a unique place in the solution space: the LISPs (incl. Racket, Schemes and Clojure). I found it very worth while to learn to program with them as well.

replies(2): >>42195478 #>>42196133 #
139. regularfry ◴[] No.42191992{9}[source]
I have years of painful experience with node.js, yes. The critical difference between node and python is that there are no system-provided scripts on my system which have `#!/usr/bin/node` as a first line.

There are a load of scripts with `#!/usr/bin/python` (or similar) in `/bin`, which means package resolution can't look first in a local subdir otherwise all bets are off. Again: your system will break depending on which directory you run bits of it from. The system-provided process would be loading dependencies that it was not tested against. In case this is unclear, you do not want that to happen. It would be bad. On my system I can see python scripts involved in driver management. I do not want them to do unexpected things. It would be bad.

Python package management is a mess in lots of ways, but this particular choice isn't one of them.

replies(1): >>42192054 #
140. fragmede ◴[] No.42192054{10}[source]
> which means package resolution can't look first in a local subdir

Sure it can, it's just a matter of examining where it's being run from.

I wrote python-wool to load packages from a venv if it finds one.

https://github.com/fragmede/python-wool

replies(1): >>42193196 #
141. fennecfoxy ◴[] No.42192755{3}[source]
How many external dependencies/libraries does it use? Ie remote dependencies not stored on your machine?

How complex is the project? I know ML utilities like that can be as simple as 50-100 lines.

142. fennecfoxy ◴[] No.42192770[source]
Exactly, 2 hours after 4 years is perfectly fine. And all those saying "well my c project did it without a problem!" yeah that's why the entire world is mostly using c for large modern, complex and ever-changing applications; right? Most of the C stuff people are claiming compiles fine after so long have no external dependencies and are really small, simple projects...

This whole thread just reeks of JS hate. I'm not perfectly happy with the language either, but nor am I perfectly happy with any other. If my employer wanted me to use C# or Go or whatever instead I'd be perfectly okay with that as well.

143. regularfry ◴[] No.42193196{11}[source]
Yep. That comes under the category of "not default". Although now you've pointed it out I'll probably be using it.
144. stuaxo ◴[] No.42193606[source]
Each to their own, I don't find it acceptable - while other platforms have updates needed, it's not to the same level.
145. dartos ◴[] No.42193768{7}[source]
They had mmap, but it was dropped at some point, I guess.

They do have syslog though https://pkg.go.dev/log/syslog

146. jeroenhd ◴[] No.42194141{3}[source]
`make` itself works fine, that hasn't changed in decades. That doesn't mean the tooling `make` scripts kick into gear still exist, or work, or do the same things, though. Makefiles don't fix the dependency on a fifteen year old C compiler.
147. thiht ◴[] No.42194518[source]
> Two hours of work after 4 years sounds ... perfectly acceptable?

It's really not. I'm in the same situation with a Go + React project I haven't really touched in 3 years. The Go part is just `go build`, it still works after 3 years and I have a build in a fraction of a second. The React project doesn't build anymore at all. I used Parcel 2 at the time, and it turns out it's incompatible with a Mac M1 for some reason, and it's hard to update in my case. I also used Antdesign and some components (icons specifically) apparently disappeared. It should not be so hard.

replies(2): >>42194748 #>>42194907 #
148. lelandfe ◴[] No.42194748[source]
I feel like you've just proffered a second success story. It can get worse. I've worked on software whose "dusting off" involved swapping the entire dep tree because the remote that Bower was using no longer existed, or manually compiling pinned versions of dependencies that Homebrew no longer offered. Sometimes it took days to get everything working.
149. LunaSea ◴[] No.42194907[source]
Go would be much worse than Node.js in most cases since dependencies directly reference GitHub projects which could have been deleted whereas NPM has a cache and immutability guarantee which makes old NPM modules available and unchanged.
replies(2): >>42215709 #>>42217264 #
150. neonsunset ◴[] No.42195478{7}[source]
In the last few years C# did away with implicit nulls. Nullable and non-nullable object references are disambiguated with T? and T. There are multiple keywords and expressions to further make it nice to work with these. You would be correct to note that there are "nullability holes" in certain edge-case scenarios, particularly around JSON serialization. But other than that it's a pretty smooth sailing.

If you do use C#, you may also want to add <WarningsAsErrors>nullable</WarningsAsErrors> to .csproj too.

replies(1): >>42199604 #
151. leptons ◴[] No.42196133{7}[source]
I prefer Assembly before any of the fringe languages you mentioned. There are no types in Assembly, and I rather like it that way. If you know how to work with data, then there's very little confusion about what you're doing.

And there's a reason practically nobody uses the languages you mentioned, and Javascript is so wildly popular. Most people don't really like or need type nagging systems. Sure, if you're trying to launch a rocket or doing something like building medical equipment or something else that requires covering your ass, then yeah, sure, go ahead and type the hell out of it. But for most programming tasks the languages you mentioned are overkill and frankly too obscure to use.

replies(2): >>42197735 #>>42199653 #
152. HeyLaughingBoy ◴[] No.42196557{3}[source]
It depends.

In domains where software is expected to run for years, if not decades, it's common to archive the entire toolset, along with libraries and SDK's in case you need to fix a bug/add a feature 10 years later. Obviously, in this case you can't have dependencies sitting somewhere on a server you don't control.

There are also situations where this is forced by regulation: you need to recreate build xxx.yyy.zzz 7 years after release because a customer reported a serious bug and it needs to be reported to the relevant regulatory agency and investigated.

153. throwaway14356 ◴[] No.42197735{8}[source]
only one type :p
154. cies ◴[] No.42199604{8}[source]
I know it's a bit like Kotlin. I heard though that C#'s move still has some std lib bits that are nullable.
replies(1): >>42199981 #
155. cies ◴[] No.42199653{8}[source]
JS is popular due to it being the only browser lang. Did you forget that?

Also: TS popularity shows that not everyone in the JS community agree with you.

For server side web dev you will find that statically typed langs (Java, Kotlin, C#, Go) are a big chunk of the pie. Sure it also comes down to taste, but if you work in a large team, having stronger types can greatly help to keep the codebase in shape. (better IDE refactor tools, clearer for noob, harder to hide/ check in rubbish to git)

If you are afraid by obscurity, have a look at Kotlin!

replies(1): >>42202391 #
156. jmathai ◴[] No.42199817{4}[source]
Just avoid JavaScript frameworks altogether.
157. neonsunset ◴[] No.42199981{9}[source]
The idea is not to never have nulls. It is pointless (ha) - the way to understand T? vs T in C# is like an optional.

The entirety of standard library is annotated since long time ago. All new and not so new projects are also null-aware. Pretty much either completely legacy libraries or libraries that explicitly removed Nullable: enable that is set by default for all new project templates do not have those.

As I mentioned previously - it isn't perfect, but the level of "good enough" of NRTs in .NET is such that the nullability is a solved problem.

158. leptons ◴[] No.42202391{9}[source]
Typescript is still nowhere near as popular as Javascript, and likely never will be. It's overkill for the vast number of uses of Javascript.
replies(1): >>42204216 #
159. cies ◴[] No.42204216{10}[source]
JS's uses have been growing steadily. The language was clearly not "designed" (I saw a talk about the first 10d of JS, little actual designing happened).

TS is to the rescue when you have a big JS project, because that's what JS is not good at: big projects and large teams.

replies(2): >>42210150 #>>42211295 #
160. cies ◴[] No.42204225{4}[source]
I'm talking about upgrading dependencies. Something that's rarely easy in a JS/TS project with lots of dependencies.
161. phatskat ◴[] No.42210150{11}[source]
I’d love a link to this talk if you happen to have it handy!
162. paulddraper ◴[] No.42210256{4}[source]
> Use the standard library (ironically not available for Node projects)

???

Node.js has an extensive stdlib [1].

Contrast that with Python which practically requires a 3rd party HTTP client.

Or Java that doesn't even have JSON support.

[1] https://github.com/nodejs/node/tree/main/lib

163. paulddraper ◴[] No.42210265[source]
Lol, Go was notorious for breaking with its "pull from main"/lack of lockfile approach.
164. banku_brougham ◴[] No.42210676{4}[source]
applet. thats a name i havent heard in a very long time.
165. leptons ◴[] No.42211295{11}[source]
Except big JS projects with large teams existed well before Typescript ever did, and it never stopped anyone from producing good results. Typescript really isn't making anything possible that wasn't possible before Typescript existed.
166. signal11 ◴[] No.42211544{3}[source]
Old Spring versions < 6.1 are obsolete, so you do have to upgrade Spring in many scenarios as well. No security fixes for them unless you pay for support.
167. signal11 ◴[] No.42211558[source]
An anecdote — I recently upgraded an old NodeJS project written using v14 to 22. It used an old version of Svelte for the UI. It wasn’t too bad, took about 90 minutes to upgrade a bunch of Svelte 3 components to Svelte 5, with some assistance from Copilot.

This was with zero awareness of Svelte 5 (I only knew it was released — I wanted to upgrade because Node 14 is EOL now and I’d noticed some npm audit warnings.) So I feel I also learned something in the process.

168. fian ◴[] No.42213380{4}[source]
I know this is a late response, but for anyone curious you would need to use an official Oracle or Sun JDK/JRE from Java 8 or older. OpenJDK doesn't include support for applets.

You also need a browser that has NPAPI. IE 11 was the most modern browser I am aware of that still supported applets.

The old GUI framework mentioned in the GP might have been Swing. It is still included in most JDKs and allows for cross platform desktop GUI application development with no other dependencies outside the JDK. Finding documentation on how to do GUIs in Swing is getting increasingly difficult though.

replies(1): >>42225535 #
169. thiht ◴[] No.42215709{3}[source]
You rely way less on dependencies when writing Go code though. That’s in big parts why it doesn’t break nearly as much (or at all).
170. pipe01 ◴[] No.42217264{3}[source]
Go also has the goproxy
171. otabdeveloper4 ◴[] No.42217665{3}[source]
Yes indeed, that is the solution to modern IT problems - never update your Ubuntu 18 containers and you're set.

(Wish I was joking, but sadly I'm serious.)

172. Suppafly ◴[] No.42225535{5}[source]
IIRC Oracle makes it really hard to find the download. Admittedly we didn't spend more than an hour or two messing around with all of it and getting the applets to run wasn't a high priority or anything.
173. ◴[] No.42242802{4}[source]
174. cxr ◴[] No.42278890{4}[source]
Fact: NodeJS's never-standardized APIs that change from release to release are a source of non-negligile breakage and churn for JS programmers who make the mistake of entrusting it to run their programs.

Fact: for a great many programs, NodeJS isn't even necessary to provide the operations that a given program needs in order to do its work, because there exist standardized, vendor-neutral, cross-platform, stable APIs, with broad sort by such companies as Apple, Google, Microsoft, Mozilla, etc.

Fact: the runtimes that support these APIs are already pre-installed on virtually every desktop and laptop computer.

Fact: you could write a static site generator targeting these APIs today and get a working program today and that will continue to work indefinitely, due to these vendors' commitment to backwards compatibility.