Live data from Hacker News

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

github.com

131–140 of 193 posts

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

#131
post #124

Earlier quoted context omitted.

> In 2011, Java was on version 7. We're on 22 now in 2024. In the IDE technology, the jump was even larger. In 2011, I was using Intellij 10, now I'm on version 2024. > There have been some paradigm shifts in Java during that time. Streams (Java 8), Lambda expressions (Java 9), the var keyword (Java 10), Records (Java 14), switch and yield (Java 12/14), instanceof (Java 16). The only listed Java feature which represe…

Streams had a pretty huge impact on how a lot of people write code. Also, lambdas came in in 8, not 9. Streams without lambdas would have been pretty painful!

There were streams-like libraries before Java 8. It’s lambdas that made them more practical.

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

#132
post #6

The wayback machine is pure nostalgia. Every time I go there I’m truly amazed at what it’s like to have a society wide memory that automatically captures these different moments of our lives. Old pictures I never thought I’d ever see again. Landing pages for old companies I’ve built and only a handful of my closest friends remember. Blog posts from long deleted places, times, and mental caverns. Just incredible.

I try donating every few months. Maybe $5-$10 each time. Like yourself, I think it's an incredible resource and don't mind pitching in( when I can) to help keep it running.

Hope they can last the lawsuit that is still going on from what happened with that book thing.

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

#133
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…

Tell me about it... I recently just had the fun of playing with an angular 8 project and thats 'only' 2019. Luckily in that case it was just turning on flags for node to act in an older deprecated way.

For my older projects as long as I could get the right visual studio to install and run (VMs will fix any OS compat issues) I could compile the things out of the box. As we did not go external unless we absolutely had to. These newer central repository projects are not going to end well.

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

#134

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.

With Java 11 they hid a lot of internal functions that people had used in their code, so breaking things. But that was never really part of the public API, so strictly not a breaking change.

I remember moving to Java8 changed the iteration order of hashmaps etc, which also broke some stuff for us. But again, that was mostly our fault for relying on unspecified behavior.

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

#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)

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

#136

Earlier quoted context omitted.

> common lisp, erlang, fortran That's a pretty esoteric list. Javascript would have been a better choice because of widespread deployment by multiple vendors and heavy legacy.

Javascript is still pretty young (comparatively) however I do believe you'd be right in saying that its likely to be around for a very long time.

Interestingly, Javascript is just as old as Java, and Python is older.

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

#137
post #4

The first major piece of code that I ever wrote was a publishing workflow management system for a major newspaper. It routed page images to presses and generated pdfs of each page in each edition of the newspaper and made pdfs of each day's newspaper editions and published them to a static website where they were archived. I was only allowed to use perl 4 to write this software and I wasn't allowed to use a database,…

I architected/managed/maintained a perl web application starting in 2001 for a dot com. I still work with it today and the application/company recently sold to a new company for $24M USD.

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

#139
post #27

Earlier quoted context omitted.

It was quite different before the internet. I'm still holding out hope of finding some of my old BASIC programs from the 80s on a 5¼-inch floppy disk in my parents' basement. But they are probably gone.

> before the internet Even before GitHub, probably. Dropbox was a big step forward, still.

Eh, not really. Even before source control was widely used by non-professionals, there was still the habit of copying all your stuff over whenever you upgraded to a newer hard disk. I've got random stuff sitting on my hard drive that probably dates to my first PC in around 1996.

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

#140
post #4

The first major piece of code that I ever wrote was a publishing workflow management system for a major newspaper. It routed page images to presses and generated pdfs of each page in each edition of the newspaper and made pdfs of each day's newspaper editions and published them to a static website where they were archived. I was only allowed to use perl 4 to write this software and I wasn't allowed to use a database,…

Interestingly, i have a similar story. I created a database publishing platform exactly that time, a was given full control. I created it in Java, and added a JavaScript engine for scripting templates. The initial product was also side in a few months. It also runs to this day. The war file could be run by any Java server. The code, while old, was in a reasonable state, given some of the migrations. I never thought a…

I had a job once trying to help the government un-fuck a janky codebase that they were in the process of paying billions of dollars for. I remember opening a file that had some issues (IIRC it could only be compiled with a specific discontinued compiler) and seeing a comment that the file was created on my literal birthday. Was quite the surprise.
Post reply on HN