Slashdot Mirror


Outstanding Objects (Developed Dirt Cheap)

Mark Leighton Fisher writes "Some readers might be interested in Outstanding Objects (Developed Dirt Cheap); or "Why Don't Developers Search the Literature?" It seems like I still see a lot of wheel reinvention going on, even with the wealth of code and information now available on the Net."

3 of 397 comments (clear)

  1. Simple explanation by rickms · · Score: 5, Informative

    It's because all us developers think our way is the better way :P

    Rick

    --
    Making something out of nothing : MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
  2. Re:Why wheels often reinvented by realdpk · · Score: 4, Informative

    Not to mention how much CPU time each of those takes. For example, check out the "tinyurl.pl" example in CPAN. It uses:

    use POE;
    use POE::Component::IRC;
    use LWP::UserAgent;
    use HTTP::Response;
    use HTTP::Request::Common;
    use URI::Find;

    Each of which probably use a good number of libraries themselves. Running perl -wc on the script takes .6 user CPU seconds alone - an approximation of how much CPU time it takes to start up (and by my measurement, a pretty accurate approximation).

    Hell, check this out:

    $ time perl -e "use POE"
    0.23s real 0.21s user 0.01s system

    Sick.

  3. Re:Library bloat by Balinares · · Score: 4, Informative

    #!/usr/bin/env python
    import sys
    from qt import *
    a=QApplication(sys.argv)
    img=QLabel(None)
    img .setPixmap(QPixmap("my_image.png"))
    a.setMainWidg et(img)
    img.show()
    a.exec_loop()

    9 lines.
    You're welcome.
    It would probably have been even shorter in Perl.

    'Bloat' is not knowing the right tools for the task.

    --

    -- B.
    This sig does in fact not have the property it claims not to have.