From: "Pascal J. Bourguignon" <pjb@informatimago.com>
I've got one that is more than 40 characters, but it's _readable_!
Did you mean: ((I've got (one)) (that is more than ((40) characters)), ((but) (it's _readable_!)) ?
Well I could have done something like that, yes, but I restrained myself this time
Too bad we've got only oneliners, a subsidiary questions would have
been to produce a reversed quine, a quine that outputs the source
lines in the reverse order. (In C it's funny).
Ok, I'm at 17 if I ***cheat*** & assume *NIX.
and 28 if I don't cheat.
Still kinda fun, though.... the one at 28 bytes is not anything I'd use in real life, however. Definitely not maintainable.
Matt
···
--
"... if you do follow your bliss you put yourself on a kind of
track that has been there all the while, waiting for you, and the life
that you ought to be living is the one you are living. When you can
see that, you begin to meet people who are in your field of bliss, and
they open doors to you. I say, follow your bliss and don't be afraid,
and doors will open where you didn't know they were going to be." --
Joseph Campbell
On Sat, 30 May 2009, Matthew K. Williams wrote:
I've got one that's 197 characters, but it:
+ is readable and formatted nicely
+ uses gems
+ uses a class
+ shows the inheritence of said class
+ has more than one instance of "end"
+ took me less than 5 minutes to write
Now to try for brevity....
Matt
--
"... if you do follow your bliss you put yourself on a kind of
track that has been there all the while, waiting for you, and the life
that you ought to be living is the one you are living. When you can
see that, you begin to meet people who are in your field of bliss, and
they open doors to you. I say, follow your bliss and don't be afraid,
and doors will open where you didn't know they were going to be." --
Joseph Campbell
On Sat, 30 May 2009, Pascal J. Bourguignon wrote:
Sebastian Hungerecker <sepp2k@googlemail.com> writes:
Am Samstag 30 Mai 2009 02:17:54 schrieb Sebastian Hungerecker:
14 if it only needs to run on unixoid-systems.
Well, 15 if it needs to work correctly
I've got one that is more than 40 characters, but it's _readable_!
On Mon, Jun 1, 2009 at 12:16 AM, Aureliano Calvo > <aurelianocalvo@gmail.com>wrote:
> I did something like that, but with parenthesis.
>
> s="s=%c%s%c;printf(s,34,s,34)";printf(s,34,s,34)
>
> It is based on the C quine that uses printf on the wikipedia page.
>
>
>
> On Sun, May 31, 2009 at 2:10 PM, Pascal J. Bourguignon < > > pjb@informatimago.com> wrote:
>
>> Robert Dober <robert.dober@gmail.com> writes:
>>
>> > Ok, the shortest solution did not have much success, what about a long
>> > one then
>> >
>> > http://pastie.org/495692
>>
>>
>> $ echo ----- ; cat quine.rb ; echo ----- ; ruby quine.rb ; echo -----
>> -----
>> q=34;printf a="q=34;printf a=%c%s%c,q,a,q;puts",q,a,q;puts
>> -----
>> q=34;printf a="q=34;printf a=%c%s%c,q,a,q;puts",q,a,q;puts
>> -----
>>
>>
>>
>>
>>
>> --
>> __Pascal Bourguignon__
>>
>>
>