Results 1 to 3 of 3

Thread: When/Where/Why does the writing of ultra-compact but otherwise illegible code arise?

  1. #1
    Join Date
    Jun 2008
    Beans
    204
    Distro
    Ubuntu 10.04 Lucid Lynx

    When/Where/Why does the writing of ultra-compact but otherwise illegible code arise?

    I write in fortran90 and C mainly, but am reasonably familiar with Python and some Perl (and VBA...).

    Most code that I write reads pretty easily, I comment it, but even if I didnt you could get a good idea of what was going on pretty quickly.

    Regularly I see, for example in programming challenges, uber-short code, take an almost exact example in J:
    Code:
    ./8*/\"."0 r
    I have no idea what this does...

    At what point does learning such methods become appealing, i.e. to those who do it - why did you pick it up? I am not adverse to it, but it seems rather difficult and counter intuitive. It might be "clean" in the computing efficiency sense, but is it dirty to work with?

    I acknowledge that regular expressions seem like the biggest hole in my toolbox at present (actually any good resources would be appreciated).

  2. #2
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: When/Where/Why does the writing of ultra-compact but otherwise illegible code ari

    It's just done for hack value; i.e., fun. It's got nothing to do with efficiency, really, nor any practical consideration. If you don't see the appeal, you're not a hacker. But that's OK.

  3. #3
    Join Date
    Jun 2008
    Beans
    204
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: When/Where/Why does the writing of ultra-compact but otherwise illegible code ari

    I see the achievement involved, particularly when I finally solve a problem and then see people do it a fraction of the code.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •