I expect it's possible to get a shorter program that is still pretty legible, but that you'd have to use a little language that's almost purely declarative to do so. Arc (like other Lisp dialects) is not only brief but flexible.

For example, this is short and clear (to me, anyway):

one: form two, text foo two: link three, "click here" three: say "you said: " . foo
This example, though, is of a language that describes only web page interactions or screen-based applications. It's not a general language with a few functions or macros related to the web along with the ability to handle any other type of program. Its syntax is dedicated to the one type of task. It's also not a popular (or even implemented) language.

Arc itself may not be exactly mainstream yet, but as a Lisp dialect it's familiar enough to a wide enough audience. It's certainly reasonable to expect that the challenge specifies popular languages, and could have also specified that the languages be general-purpose.


In reply to Re: Take the Arc Challenge by mr_mischief
in thread Take the Arc Challenge by kyle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.