←back to thread

272 points abdisalan | 2 comments | | HN request time: 0.001s | source
Show context
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 #
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 #
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 #
mperham ◴[] No.42184173[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 #
guappa ◴[] No.42187619[source]
> Go is especially good because of the large stdlib

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

replies(2): >>42187755 #>>42188024 #
dartos ◴[] No.42187755{3}[source]
What does Java or Python have in their stdlib that go doesn’t?
replies(1): >>42188499 #
1. guappa ◴[] No.42188499{4}[source]
Well python has syslog, mmap, just to name a couple of things.
replies(1): >>42193768 #
2. dartos ◴[] No.42193768[source]
They had mmap, but it was dropped at some point, I guess.

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