Live data from Hacker News

Ask HN: Publish old projects even though the source code embarrasses you by now?

news.ycombinator.com

51–60 of 72 posts

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#51
post #6

I'm about to relaunch a 2D MMO title I made in 1999-2001 with new graphics. It's all in Java and uses MySQL. Should be fine! :D Don't know if I would publish the source though, unless it's successful and people want to mod it.

This sounds exciting! Where will this become available to play when you put it online? :)

Also, have a look at Canvas Legacy if you want some inspiration.

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#52
If it has "artistic" or other redeeming value, go for it. Write a README or blog (or three) covering what's unique or important, or how it fits into some historical narrative. Just be clear with yourself on what you expect to get out of it, and how much work you're willing to put into feeding your pet.

I published something once which was three lines of code. It was useful; anyone could do it, but nobody did (a modem dialing script, of all things). The (often multipage) requests for releases to publish were an unexpected annoyance; I always tried to respond politely that I didn't feel it manifested the requisite originality to be a protected work, and that if they printed the email out and sent it to me with a self-addressed stamped envelope I'd sign it and send it back.

I publish https://github.com/m3047/trualias (checksummed on-the-fly email aliases) even though I consider the code far from perfect: it works, it defines a grammar (which I'm happy with), and it has (pretty comprehensive) tests for that grammar. The most important aspect in my opinion is the grammar and a working proof of concept. (To my bemusement it also has the most stars of any of my projects on GitHub, go figure.)

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#54

I just published the source code for the first app I ever built, all the way back in 2003: https://github.com/aaronbrethorst/irooster It "turns your Mac into a $2,000 alarm clock." I originally made it because I had endless amounts of trouble waking up for my morning classes in college, and found that the only alarm that could get me up was a subwoofer right underneath my bed. So I hooked a 2.1 speaker system up to m…

I realize that this may not be in the spirit of the question being asked, but could this not be done with the following? 0 6 * * 1-5 open /path/to/bangin/tunes.mp3 I'm all about reinventing the wheel, but that's a lot of code to replace cron :-D

> could this not be done with the following

Well, that depends. Does your shell oneliner have a GUI? You're also not playing an iTunes playlist, so you'll probably need to parse the ITL file

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#55

Earlier quoted context omitted.

I realize that this may not be in the spirit of the question being asked, but could this not be done with the following? 0 6 * * 1-5 open /path/to/bangin/tunes.mp3 I'm all about reinventing the wheel, but that's a lot of code to replace cron :-D

> could this not be done with the following Well, that depends. Does your shell oneliner have a GUI? You're also not playing an iTunes playlist, so you'll probably need to parse the ITL file

Gotta wake the computer up from sleep too. And be able to unmute and adjust the volume. And give non technical users the ability to use it. And support Apple’s old infrared remote. And. And and.

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#56
I took the plunge and published some of my old projects over at https://github.com/steelegbr?tab=repositories

Yeah, I'm not proud of the way I wrote the code 17 years ago (historic-alldaydj-1) but it's fascinating looking so far back and comparing it what I'd deliver today. If someone finds use for it, fair play to them.

On that note, I probably ought to dig out the RoTs (tapes) from my days as a radio DJ on a long defunct station...

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#57
post #6

I'm about to relaunch a 2D MMO title I made in 1999-2001 with new graphics. It's all in Java and uses MySQL. Should be fine! :D Don't know if I would publish the source though, unless it's successful and people want to mod it.

Why not publish the source, though?

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#58
Always share code if you are able. It may be useful or interesting to someone in ways you may not expect.

Also, I don't know if this helps: But I consider myself a bad programmer, and assume everyone writes better code than me. It's probably not universally true, but I also don't feel ashamed of any given work I do: I tell people liberally I'm bad at coding but it works (if it works). It also puts my mindset in a great place to try to learn from everyone else I interact with.

One project I shared not too long ago I announced by describing it as a "crime" against the platform, and almost certainly "a really bad idea".

Just ship your code.

Re: Ask HN: Publish old projects even though the source code embarrasses you by now?

#60
After enough time passes, all of the code I write becomes embarrassing. I think it's because I'm constantly improving, and all of my historical code was written by a me that wasn't as good as I am now.

The code I write now will eventually be code I'm embarrassed by as well.

This is true for most people, I think, so I don't let it bother me. The effect is a sign of growth.

Post reply on HN