One-Liners back in town!/Errr...
[1/14] from: tim::johnsons-web::com at: 19-Nov-2002 18:43
Hey Guys: I hate to be the Grinch that stole XMas,
but I don't consider this to be an attractive idea.
(Linux (self-styled) gurus may just laugh at you and make comments
like "I can do this from my bash shell")
.. and I once fired a apprentice programmer for
put too much "C" code into a 'for' loop...
Here's an alternative:
Find something in "public domain" that is somewhat widely
known. Challenge yourself as a team to "clone it in rebol"
and make it
"better"
"more readable"
"easier to maintain".
Here's an example:
formail.pl.
It's widely used.
Widely exploited.
Hard to read.
Beat it with a stick... :-)
-tim-
* Graham Chiu <[gchiu--compkarori--co--nz]> [021119 17:31]:
> >
> >I do, as it's fun, encourages competition, (in that
<<quoted lines omitted: 10>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[2/14] from: gchiu:compkarori at: 20-Nov-2002 19:06
> Here's an example:
> formail.pl.
> It's widely used.
> Widely exploited.
> Hard to read.
>
Yeah, a lot of spammers use formail.pl exploits to send
off their spam
--
Graham Chiu
http://www.compkarori.com/cerebrus/index.html
This dog feeds on spam!
[3/14] from: gerardcote:sympatico:ca at: 21-Nov-2002 9:01
Hi everybody,
Tim wrote:
> Hey Guys: I hate to be the Grinch that stole XMas,
> but I don't consider this to be an attractive idea.
[...]
> Here's an alternative:
> Find something in "public domain" that is somewhat widely
<<quoted lines omitted: 10>>
> Beat it with a stick... :-)
> -tim-
I agree completely with you Tim as this could be a lot more useful in the long run.
But nevertheless, I would like some kind of this power revealed to me - like when I discovered
the famous "awk" one-liners that are
so useful by themselves. I don't think we have to create unreadable monsters but nice
and eye charming "elves" that fly ...
Cheers,
Gerard
[4/14] from: anton:lexicon at: 22-Nov-2002 2:09
96 characters of disappearing box:
view f: layout [image red edge [size: 2x2] effect [fit blur] [face/image:
to-image f show face]]
Anton.
[5/14] from: greggirwin:mindspring at: 21-Nov-2002 10:38
Hi Gerard,
GC> But nevertheless, I would like some kind of this power revealed to me -
GC> like when I discovered the famous "awk" one-liners that are
GC> so useful by themselves.
Maybe we'll have some special categories. I wrote a little AWK engine
(RAWK) a while back, so we can apply those nifty tricks we've learned
in the REBOL world.
-- Gregg
[6/14] from: atruter:labyrinth:au at: 22-Nov-2002 15:08
> view f: layout [image red edge [size: 2x2] effect [fit blur] [face/image:
> to-image f show face]]
Very nice, but *how* did you discover this!?! ;)
Regards,
Ashley
[7/14] from: ammon:rcslv at: 21-Nov-2002 23:50
Hi,
I am sure some improvement could be made, but....
view layout[origin 0x0 h1 red black 87 rate 1 feel[engage: func[f a
e][f/text: now/time show f]]]
Doesn't quite make the 80 char rule, but...
Enjoy!!
Ammon
PS Where do we submit these?
[8/14] from: anton:lexicon at: 22-Nov-2002 21:38
Same way you are discovering it now.
And docs.
Anton.
[9/14] from: carl:cybercraft at: 22-Nov-2002 22:50
On 22-Nov-02, Ammon Johnson wrote:
> Hi,
> I am sure some improvement could be made, but....
<<quoted lines omitted: 3>>
> Enjoy!!
> Ammon
Nice Ammon. But you're right, it can be improved on...
view layout[origin 0 t: h1 red black 87 rate 1 feel[engage: [t/text:
now/time show t]]]
10 characters less - but still 87. Could still be a clock if the
cosmetics were cut back on of course. Just not as nice a clock...
> PS Where do we submit these?
Here until they're 80 or less characters? (;
--
Carl Read
[10/14] from: anton:lexicon at: 22-Nov-2002 21:27
You can simplify:
origin 0x0
to:
origin 0
Anton.
> I am sure some improvement could be made, but....
> view layout[origin 0x0 h1 red black 87 rate 1 feel[engage: func[f a
<<quoted lines omitted: 3>>
> Ammon
> PS Where do we submit these?
<- Here's good.
[11/14] from: ammon:rcslv at: 22-Nov-2002 4:49
Great!
view layout[origin 0 h1 red black 87 rate 1 feel[engage: func[f a
e][f/text: now/time show f]]]
That gets me down to 95 chars, only 15 to go...
Thanks!!
Ammon
[12/14] from: g:santilli:tiscalinet:it at: 22-Nov-2002 15:46
Hi Ammon,
On Friday, November 22, 2002, 12:49:18 PM, you wrote:
AJ> That gets me down to 95 chars, only 15 to go...
>> length? "view layout[origin 0 h1 red black 87 0:0:1 feel[engage: func [f][f/text:
now/time show f]]]"
== 91
;-)
Being a little more aggressive:
>> length? "view layout[h1 87 0:0:1 feel[engage: func [f][f/text: now/time show f]]]"
== 72
but this isn't as nice. :-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[13/14] from: ammon:rcslv at: 22-Nov-2002 10:30
HI,
Well, ok then, I guess I will drop the cosmetics. After all, the
characters don't look like LED characters anyhow:
view layout[origin 0 t: h1 87 rate 1 feel[engage: [t/text: now/time show
t]]]
77 character clock. ;-)
Enjoy!!
Ammon Johnson --- CIO
Addept ------------------ (www.addept.ws)
435-616-2322 -------- ([ammon--addept--ws])
[14/14] from: carl:cybercraft at: 23-Nov-2002 10:42
On 23-Nov-02, Ammon Johnson wrote:
> HI,
> Well, ok then, I guess I will drop the cosmetics. After all, the
> characters don't look like LED characters anyhow:
> view layout[origin 0 t: h1 87 rate 1 feel[engage: [t/text: now/time
> show t]]]
> 77 character clock. ;-)
That counts as a v1.0.0 I think. (; You listening oh keeper of the
REBOL one-liner library?
--
Carl Read
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted