Hacker News new | ask | show | jobs
by sophacles 5608 days ago
I have lots of code all over the internet "rotting". Some of it was written because I actually needed it. Some because I was learning. Some to prove a point. Some to just play. There's lots of reason to write code, and lots of reasons to let it go. Now here's the thing, putting code on the internet and typing "here it is, BSD or MIT or whatever licensed" is a trivial marginal effort. Since that effort is effectively $0 for me, I do it, thinking like this:

Maybe someone will get some value of it. I don't want it, I don't care to put effort in, but hey, if someone else does: cool!

Basically, putting stuff out there is not that different from the freecycle mentality.

The place you seem to come from is that "Oh they want to make an open source project, that means they must want to be $0 vendor for my company!". Honestly, I hate that mentality. Instead of coming in and demanding I give you more effort for free, take or leave the free work I choose to do and let it be. That's not to say I am not open to suggestions or maybe even explaining or fixing things, but you have no right to expect it of me.

3 comments

A downside of this is that, for some problems, there are so many libraries to choose from that are working, documented, performant, supported, complete, etc. to varying degrees that the act of picking the best one for one's objectives is sheer impossible.

What makes this worse is that your "rotting" should be written without quotes. Most code rots incredibly fast, even if it is written to high standards. Your makefile may break, your dependencies may see an interface change, popular architectures may change (an .ini file for preferences?), etc.

Meh. That is a surprisingly subjective and arguable statement, when you consider there are useful purposes for code besides running on your current dev system. For instance I frequently find code on the net that is rotten from the POV of "it runs on the latest git head of the dependencies" but completely and utterly fresh and relevant in the "how would I approach a solution in this language with this general design paradigm" POV. Other forms of "rotten" include software written to $HEAD, only to have those features never incorporated in an official release. The list goes on and the differences between "rotten" and "doesn't work for my special case" grow very indistinct.
"does not run on my current system" is not a sign of rot; "I cannot even make a guess whether it will be useful for me without trying" is. To make such a guess, the following info can be helpful:

- for what platform(s) it is written (e.g. C code where tagged as 'Unix', that use Linux-isms)

- what the license is (home page claims 'free' or 'open source', source files mention license A, read me mentions license B)

- what the library does and, almost more importantly, what it's limitations are.

- what the dependencies of the library are.

- what systems the code has run on (it can for instance be useful to know that code has run in big-endian machines if your machine is big-endian)

The more of this info is present, the higher the probability that I will try to use your software.

There is lots of code out there where too little of this metadata is present. If such software is not solving some unique problem, I would prefer it if its writer did not make it available.

I am a CPAN author myself and I am not from that place you're describing :) I put almost all of my code on github to rot there too. This article is from the open source community perspective. Maybe it's just not emphasized enough.

I do agree that I don't have any right to expect anything from the open source software, I am just saying why I won't use some of it.

Well, you attitude is both better and smarter than mine. :-(

I have a couple of large 80% done libraries I wrote to publish as open source -- which I am going to rewrite heavily before I'm letting anyone see.

(Answer to next question: Yes, a couple -- instead of finishing one and starting a second. There are reasons in addition to me being stupid. :-) )

At least I learned a lot.

Edit: About the article -- it is hard to create a good API, I've designed lots of APIs in my days -- and I don't think I've done a single good one. :-(

Ye, when I am preparing a CPAN dist I usually clean up everything. I think it helps to create a more usable and independent distribution. And everybody wins.

Good API++