"A hack" in my book is a solution that works but is ugly, should probably be done better, but for one of various reasons (no time, no motivation, alternatives are awfully verbose and/or resource intensive) isn't. I tend to view these as sometimes necessary and always evils, that should be rooted out unless the hack in question is the lesser of evils.

I draw a very clear line between hacks and JAPHish/golfish trickery though. I have no fear of using the latter when it really does shorten the code by a noticable amount. Since I am generous with comments, I feel entitled to such tomfoolery.

Interestingly enough, I always have trouble bending my mind anew around a long forgotten hack that I have to take a second look at, but never any when trying to grok my long burried Golfish constructs.

____________
Makeshifts last the longest.

In reply to Re: Please 'hack' nicely... by Aristotle
in thread Please 'hack' nicely... by vladb

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.