From this observation we must conclude that this language as a tool is an open invitation for clever tricks
What programming language could stop people from using clever tricks? You see this behaviour everywhere: chess puzzles, crosswords, poetry, mathematics.
It may be a bit fanciful but Abigail
has suggested that Knuth would approve of Golf
I don't think Knuth would be a big fan of Perl, but he loves a programming
trick just like many people here, and he certinly likes to play golf.
I recently read an article where Knuth describes a game of golf on a 50's
machine. The machine read cards, and one could put 8 machine instructions
on a card. The goal was to write a program fitting on one card that would
read in a number, and reverse it.
Noone was able to do it, but Knuth once stunned his fellow students.
He came in, put a card in the reader, entered the number 123456789,
ran the program, and the program outputted 987654321.
Of course, the program would always output 987654321, regardless of
the number on input.
Later, the machine got an extension. A whopping extra register, with
front panel toggles. Which could be used to store an instruction as
well. Knuth was delighted that that enabled him to write a single card
program that reversed a number.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||