News for hackers. Stuff that matters.
Re:I found one of my first programs (Java,2011) on the Wayba... by n9 on Sunday April 28, 2024 @09:35PM (#40193505)
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, even though the datastructure for a day's publishing batch had tens of thousands of keys and values and required RDBMs style queries. It also features a configurable postscript parser that extracts all kinds of data from completed newspaper pages that informs the publishing system. When I wrote it I was told that it would run for a few months only while we figured out how to get a $5M commercial product to handle the work.

The whole thing was written in perl 4 style OO Perl and came in at about 16k lines of code in the end -- most of the code was for the postscript processor and tons of cruft that I had to write to made a relational DBMS in memory because I wasn't allowed to use mysql. It took me four months to write it. I launched it in January of 2002 and it runs to this day. I know this because I got a call about it last month where my replacement's replacement's replacement asked me a few questions about what OO Perl is because he wanted to make a few changes. Good luck! It still runs and is responsbile for about 80% of what it was originally built to do. It is used by hundreds of people daily, who by all reports absolutely hate it. There are people working at the newspaper today that use it regularly that were not born when I wrote it. I am twice as old as I was when I wrote it.

They have apparently tried to replace it several times over the last 22 years and have failed to do so... this is likely due to the blockheadedness of my old boss (who is still there) as much as the radically insane obscurity of my code, which is exactly how you'd expect 16k lines of 22 year old OO Perl 4 would be.

Re:I found one of my first programs (Java,2011) on the Wayba... by jbverschoor on Sunday April 28, 2024 @11:18PM (#40194076)
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 about the code being older than the people working on it

Re:I found one of my first programs (Java,2011) on the Wayba... by chii on Monday April 29, 2024 @03:27AM (#40195502)
There's nothing more permanent than a temporary fix put in while waiting for a permanent fix for a problem.
Re:I found one of my first programs (Java,2011) on the Wayba... by stavros on Monday April 29, 2024 @05:28AM (#40196283)
We have a saying for that in Greek: Ουδέν μονιμότερον του προσωρινού

"Nothing more permanent than the temporary"

Re:I found one of my first programs (Java,2011) on the Wayba... by lb1lf on Tuesday April 30, 2024 @01:59PM (#40214009)
In Norwegian we have the (made up, but widespread) word 'Permasorisk' (a mangling of permanent and provisorisk) to describe a solution which is by no means meant to be permanent, but solves the original problem well enough that there no longer is a need for the permanent solution...
Re:I found one of my first programs (Java,2011) on the Wayba... by jbverschoor on Monday April 29, 2024 @10:20AM (#40198673)
It was never a temporary 'fix'. The product eventually spun off into a new company and was recently acquired by a PE firm.

But yeah, creating software - or any kind of process actually - results in maintenance. If something is used a lot -> too many people depend on it. If the number of consumers/users isn't documented -> you don't know if you can turn it off, but for this problem you can inspect a year's worth of log files :)

Re:I found one of my first programs (Java,2011) on the Wayba... by Rebelgecko on Monday April 29, 2024 @09:45AM (#40198276)
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.
Re:I found one of my first programs (Java,2011) on the Wayba... by justusthane on Sunday April 28, 2024 @09:41PM (#40193537)
That’s a really incredible story. I’m not sure how much more you remember/are able to share, but I would kill to read a longer post about this.
Re:I found one of my first programs (Java,2011) on the Wayba... by Folcon on Sunday April 28, 2024 @11:10PM (#40194035)
It's in moments like this that I miss the hacker news magazine[0], because I had relatively high certainty that when stories like this popped up, the poster in question would get interviewed and their story would appear in the next edition.

Not sure who else recalls it? Really appreciated the monthly format as well, I think summarising the last month and going in-depth on specific stories ended up being a good touchstone for what happened in the community.

If anyone is interested in picking up the torch, I for one would be happy to resubscribe to it :)...

-[0]: https://news.ycombinator.com/item?id=1261499

Re:I found one of my first programs (Java,2011) on the Wayba... by chefandy on Sunday April 28, 2024 @11:12PM (#40194041)
> asked me a few questions about what OO Perl is because he wanted to make a few changes

Well that's pretty impressive. Most of my garbage pearl code from 20 years ago would probably look like line noise to most modern developers if it wasn't for the shebang.

Re:I found one of my first programs (Java,2011) on the Wayba... by genewitch on Sunday April 28, 2024 @11:24PM (#40194116)
i never wrote perl in any serious fashion, but i've always tried to use as much information in the source so i can figure out how i did it. I enjoy reading the submissions to code golf challenges, though. A few of the more esoteric language users have let slip they write a compiler to go from readable code to the target unreadable code.

Whenever i see terse C or load bearing perl it does look like line noise.

Re:I found one of my first programs (Java,2011) on the Wayba... by wh33zle on Sunday April 28, 2024 @10:41PM (#40193848)
If you don't mind me asking, how much did they pay you to build it?
Re:I found one of my first programs (Java,2011) on the Wayba... by jbverschoor on Sunday April 28, 2024 @11:20PM (#40194091)
My salary was about 30k. Best deal ever lol
Re:I found one of my first programs (Java,2011) on the Wayba... by GrumpyNl on Monday April 29, 2024 @03:15AM (#40195424)
With software still running and being used, the company had a bargain.
Re:I found one of my first programs (Java,2011) on the Wayba... by glitchcrab on Monday April 29, 2024 @03:51AM (#40195673)
The person you're replying to is not the GP
Re:I found one of my first programs (Java,2011) on the Wayba... by jbverschoor on Monday April 29, 2024 @01:53PM (#40201664)
Per year for those who are confused..
Re:I found one of my first programs (Java,2011) on the Wayba... by s2l on Sunday April 28, 2024 @11:40PM (#40194173)
Not relevant to thread, but still for fun & testing LLM.

Asking Llama3: How old is the author of this comment.

Meta AI> Let's break it down! The author mentions: They wrote the code in January 2002. They were half their current age when they wrote it. They are twice as old now as they were when they wrote it. So, if they were x years old in 2002, they are now 2x years old. We know that 2024 - 2002 = 22 years, so: 2x = x + 22 Solving for x, we get: x = 22 This means the author was 22 years old in 2002 and is now 44 years old.

Re:I found one of my first programs (Java,2011) on the Wayba... by scubbo on Monday April 29, 2024 @01:55AM (#40194918)
Do your testing on your own - don't pollute the discussion with it.
Re:I found one of my first programs (Java,2011) on the Wayba... by xeyownt on Monday April 29, 2024 @01:14AM (#40194703)
Ah ah Perl, the king of all WORN languages: Write Once, Read Never. Because It is so powerful that you get burned if you come too close.
Re:I found one of my first programs (Java,2011) on the Wayba... by bionsystem on Monday April 29, 2024 @01:38AM (#40194826)
Great story ! I'm proudly responsible for a small perl script that pre-processes SWIFT messages before sending them in a back-office banking Java app. It's barely 10 yo but I'm not a dev, and I suspect it will probably run forever.

The idea is to split messages in chunks and sort the rows by ISIN instead of having one big file without any sorting pattern, and it cuts the processing by the app from a few hours to 10 min. Never heard of a bug in this one but it's only like 300 lines of code.

Re:I found one of my first programs (Java,2011) on the Wayba... by shawn_w on Monday April 29, 2024 @02:02AM (#40194964)
Perl /4/ in 2002? When I learned perl in like 1995, 5 had been out for a bit already and it was hard to find a system with 4 installed...

(perl 4 didn't have built in support for OO; did you roll your own system?)

Re:I found one of my first programs (Java,2011) on the Wayba... by worthless-trash on Monday April 29, 2024 @02:23AM (#40195089)
To be fair it is perl, there was probably a library for it.
Re:I found one of my first programs (Java,2011) on the Wayba... by mhd on Monday April 29, 2024 @05:16AM (#40196215)
For Perl4? Not that likely, IIRC CPAN was started in '95, after Perl 5 came out which introduced most of the packaging semantics. I think Perl 4 basically had an "include" equivalent.

Don't remember anyone doing OO back then with it, either. Would be interested to know how that worked...

Re:I found one of my first programs (Java,2011) on the Wayba... by davorg on Monday April 29, 2024 @06:25AM (#40196598)
> 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.

Re:I found one of my first programs (Java,2011) on the Wayba... by Almondsetat on Monday April 29, 2024 @07:42AM (#40197092)
It says perl 4 style OO Perl, not perl 4 OO style Perl
Re:I found one of my first programs (Java,2011) on the Wayba... by shawn_w on Monday April 29, 2024 @11:09AM (#40199319)
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 Wayba... by Almondsetat on Monday April 29, 2024 @01:51PM (#40201631)
I can write C style C++ or html 4 style html 5
Re:I found one of my first programs (Java,2011) on the Wayba... by hohlraum on Monday April 29, 2024 @09:31AM (#40198112)
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 Wayba... by ssl-3 on Monday April 29, 2024 @02:31PM (#40202113)
How does it feel to be 44, fellow old person?
Re:I found one of my first programs (Java,2011) on the Wayba... by defaultcompany on Tuesday April 30, 2024 @03:52PM (#40215516)
> It is used by hundreds of people daily, who by all reports absolutely hate it.

This made me chuckle because as a software development intern in 1988 (being paid like $8 an hour) I wrote a giant monstrosity of a time tracking program for a local CAD company in an Empress database using its forms builder interface. It was in use for far longer than anyone ever intended and whenever I ran into someone from that company years later they would tell me how bad it was. Sorry guys!