in reply to Evolution of an Obfuscated Throwaway Script

I used to feel guilt about tinkering about finding solutions in this manner until I found this in the Sed & Awk book, I feel it's sentiments apply equally to Perl:

<quote>"For some people, myself included, the satisfaction of solving a problem is the difference between work and drudgery. Given the choice of using vi or sed to make a series of repeated edits over a number of files, I will choose sed, simply because it makes the problem more interesting to me. I am refining a solution instead of repeating a series of keystrokes."</quote>

To summarise: go forth and hack with impunity!

-- 

Brother Frankus.
  • Comment on RE: Evolution of an Obfuscated Throwaway Script

Replies are listed 'Best First'.
RE: RE: Evolution of an Obfuscated Throwaway Script
by Petruchio (Vicar) on Oct 13, 2000 at 19:47 UTC
    I recall reading this... and while I agree with the sentiment, I think it sells vi short. Part of what I love about working with Vim is that is has the raw ingredients for you to cook up interesting, rather than menial, solutions. Perhaps more so than sed, though to state so affirmatively is more than my knowledge of each will allow.
      One of the more interesting vi macros I've seen is one that solves the 'Tower of Hanoi'. I believe it comes as an example for vim (the Linux vi). Jano's Vim Marcro Page has some other good ones.

      /\/\averick