Slashdot Mirror


How Mainstream Can Code Scavenging Go?

The time-honored tradition of code scavanging has long been a way for new programmers to "break in" to a new language or task that they may not want to build from the ground up. The re-use of old code, cleaned up and tweaked to a new purpose can help developers learn many useful skills and accomplish tasks quickly, especially for small tasks that aren't of vital importance. One blogger wondered if this process could be formalized and tools could be built to help foster and enable code scavanging on a mass level. Is this a viable option, or are there just too many things to consider?

19 of 139 comments (clear)

  1. Re:IP Laws? by thegrassyknowl · · Score: 2, Funny

    I want to be the first to welcome our new GPL overlord to the commercial software world.

    --
    I drink to make other people interesting!
  2. I've been thinking of scavenging code from SCO... by kclittle · · Score: 4, Funny

    ...since they obviously aren't going to be using it for much longer...

    --
    Generally, bash is superior to python in those environments where python is not installed.
  3. It's called a "subroutine library" by Animats · · Score: 4, Funny

    The Web 2.0 crowd rediscovers subroutine libraries. Film at 11.

    1. Re:It's called a "subroutine library" by visualight · · Score: 2, Funny

      The poster you replied to is thinking the "lots-o-books" kind (I'm sure). As in, "a library of subroutines".

      --
      Samsung took back my unlocked bootloader because Google wants me to rent movies. They're both evil.
    2. Re:It's called a "subroutine library" by Tablizer · · Score: 2, Funny

      The Web 2.0 crowd rediscovers subroutine libraries. Film at 11.

      You gotta punch it up, PHB-ify it: "Reusable Enabling Action-Oriented Web Object Architecture Patterns".

    3. Re:It's called a "subroutine library" by Comatose51 · · Score: 2, Funny
      You joke but I've phone interviewed someone and asked him, "What are some ways of reusing code or implementation?" Inheritance or composition would have been okay. In fact, a lot of answers are acceptable.

      Instead, he answered "uh... cut and paste?"

      --
      EvilCON - Made Famous by /.
  4. foreheat meet desk by Yath · · Score: 4, Funny

    I guess this is slow news day. Using bits of code without writing everything from scratch - how novel! How controversial! Is there anyone who doesn't do this? What kind of skull-shattering boredom do you have to endure before you start writing blog entries about this?

    And the first article suggests that trusting the code is an issue, because you didn't write it. Well let's see - it's short, and you just pasted it into your program. But you're not going to bother to read it? You fail. Seriously.

    --
    I always mod up spelling trolls.
  5. Isn't this a library? by poppycock · · Score: 3, Funny

    Isn't this, you know, a library?

  6. "Scavanging"? by Anonymous Coward · · Score: 2, Funny

    Why don't you scavenge the dictionary to spell properly?

  7. This is a great idea! by AEton · · Score: 3, Funny

    If only there were some computer programming language that had built-in support for some kind of a Comprehensive Archive Network, that would be the best.

    Maybe the C++ language could do it. Then you could just ... hmm ... "import" the things you need from the Comprehensive C++ Archive Network!

    Hmm, CC++AN sounds pretty dumb. It'd never catch on. Oh well.

    --
    We recently had heard in the office over one of the Yellow Machine that's made by Anthology Solutions.
  8. Today Slashdot jumped the shark. by xxxJonBoyxxx · · Score: 2, Funny

    Today Slashdot jumped the shark.

    Seriously. I'm starting to lose brain cells when I read the "articles" these days.

  9. Re:scavanging turds is mainstream by YrWrstNtmr · · Score: 4, Funny

    That sir, was a work of beauty. There should moderation other than -1 Troll for such art.

    Indeed...we need a -5 Asshole.

  10. It's already been done. by etnu · · Score: 2, Funny

    It's called Google.

  11. A Brand New Idea by Anonymous Coward · · Score: 1, Funny

    What a great new idea! Maybe we could put all of the scavenged code into a container and call it a "library". Wiyth brilliant ideas like this software is going to advance by great leaps and bounds. No more reinventing the wheel, or constantly rediscovering ancient ideas.

  12. Wow by smitth1276 · · Score: 5, Funny

    That article used a lot of words to say absolutely nothing. But it got me thinking... perhaps we could group related snippets of code into units called "libraries", and then we could easily use those libraries to perform common tasks?

  13. I have found the most scavenged code on earth by nerdyalien · · Score: 1, Funny

    #include

    using namespace std;

    int main()
    {
              cout "Hello World!";

              return 0;
    }

  14. Re:Don't we call that "refactoring"? by Anonymous Coward · · Score: 5, Funny

    TFA is not really a FA.


    It leaves us only "the". Which is an article. Liar.
  15. oops by yoprst · · Score: 2, Funny

    Apparently, slashdot has already scavenged angle brackets - they're gone. Truly the most scavenged code ever.

  16. Re:IP Laws? by jc42 · · Score: 2, Funny

    [I]f you publish something with no licensing info, it is copyrighted to you by default. (In the US at least, and many other countries as well.) So even if you're looking at a site that is, say, clearly marked as a tutorial, that doesn't necessarily mean that you can use that code, unless the guy comes out and says the code is public domain/GPL/etc.

    Good point. I think I'll use it the next time someone comments about code of mine that is overly complex and convoluted.

    "You see, all the simple ways of doing it have been published in tutorials. This means that they're copyrighted by the author. If I used simple code, I'd almost certainly be violating some author's copyright, and since you hired me to write the code, they'd probably sue both of us. Wouldn't want that, would we?"

    (Only half-joking here. This is what the world's coming to. ;-)

    --
    Those who do study history are doomed to stand helplessly by while everyone else repeats it.