Live data from Hacker News

I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

github.com

151–160 of 193 posts

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#151
post #111

Earlier quoted context omitted.

> The whole thing was written in perl 4 style OO Perl What does that mean? Perl's basic OO support (using blessed hash references) was introduced with Perl 5 in 1994. I have no idea how anyone would even attempt writing OO code in Perl 4.

It says perl 4 style OO Perl, not perl 4 OO style Perl

He said he was using perl 4. And there was no such thing as "perl 4 style OO".

I'm thinking he's just misremembering what version of perl he was using. Easy to do after 20+ years.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#153

Not to be snarky but 2011 is yesterday for programming, no major shift. I'd imagine almost all code written there would be able to run today.

This is probably the worst case, but I wrote an iPhone game back around then. I recently tried to build it and after a couple of days of not even getting close to something which built (never mind worked when running), I gave up.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#154

Earlier quoted context omitted.

True story, that's why I moved back to Maven (pom.xml) from Gradle. As a bonus -- IDEs seem to work faster with Maven, I assume because parsing declarative pom.xml is faster than parsing and running imperative build.gradle.

Maven is better than Gradle, full stop. The only real issues with Maven, are the they keep adding features and are bringing in more scripting capabilities. Call me old, but a build system should be purely declarative as a matter of principle. Scripting just leads to someone eventually getting the idea of doing something clever, and then it becomes hell afterwards.

To put it more bluntly, Gradle only matters because of Android.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#155

Earlier quoted context omitted.

Except now a days you're not encouraged to run a system-wide JVM! You can still download a JVM for Java 21, but it's from weird third parties like Adoptium

Adoptium is a JVM from the Eclipse Foundation. They're hardly weird, even if the branding is. It's basically "people into JVMs not controlled or licenced by Oracle that work good". https://www.eclipse.org/membership/explore-membership/

Almost correct, except the part that it is a bit like saying Red-Hat is a Linux not controlled by Linus.

https://devclass.com/2023/03/22/despite-openjdk-70-of-java-f...

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#157
post #135

I promise you that there are major businesses still running on Java 6 code from 2011.

I don't even know what Java 6 means. Last time I wrote something in Java it said Java 1.5 compiled Java class data, version 49.0 (Java 1.5)

They rebranded Java 1.x as Java SE x, then later just Java x.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#158

Earlier quoted context omitted.

2011 for Java is nothing. I've used JDBC driver written for Java 1.4 (2002) in Java 17 and I absolutely sure that it'll work with Java 21 just as well. Java backwards compatibility is real and it works absolutely fine unless you do bad things.

I think the last breaking change I remember was enumerations being added, which broke any code that used the class name as a variable name. But I could be wrong; it was almost 20 years ago.

Thread#stop no longer works as of at least Java 21.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#159
post #79

Not to be snarky but 2011 is yesterday for programming, no major shift. I'd imagine almost all code written there would be able to run today.

In the Java world, sure. Other programming language ecosystems tend to have tons of churn. For an anecdote, every TypeScript project I find from 2021 or earlier is simply impossible to build nowadays, meanwhile the ClojureScript code I dealt with in a previous job was able to survive 8 years worth of updates to libraries and the core language. I frequently ran into code that was last modified around 2013 because it j…

Note that what OP said he found was a JAR, not code. If you found an executable built in any language, I would expect it to still be able to run 13 years later.

Re: I found one of my first programs (Java, 2011) on the Wayback Machine and it runs

#160

My earliest "large" program which I can remember was a drawing program I wrote in GW BASIC. You could draw figures, change brushes, I think it had a crude filling function and a few other things. In my innocence, I backed it up onto 5.25" floppy disks, labelled them neatly and put them in a box. This was in the late 1980s. Fast forward to 2024, I still have the disks but no drive to read them. On the other hand, the…

>Says a lot about "digital archiving" It doesn't, since you could easily buy a USB floppy disk reader

You don't have to buy anything to read the notebook though.
Post reply on HN