Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: One-Liners back in town!

From: gerardcote:sympatico:ca at: 23-Nov-2002 10:32

Thanks a lot Carl for this refreshing view of the paren ( ) use inside VID and of the way you dissect your code and test it directly from the CONSOLE with finer granularity than I was sometimes ... until now - be assured of it. That remembers me the old days when I learned to code in my first COMMODORE'S PET BASIC programs. Later I new that this kind of doing was named bottom-up coding vs the top down approach. Even if I regularly do it, this had to be remembered to me here and thanks again for this help - even if it is on such a basic theme. This was something I missed completely in the context of VID and for sure it really helps me to better understand how VID is working in this case and how to use the console for testing in this way. To get our collective one-liner under the 80 chars limit, what do you think of the following refinements suggestions : 1- Use another slightly shorter message to display like "HELLO ALL" or "HI WORLD!" and everything is fitting without losing any readability. 2- To respect the original msg to be displayed, use another shorter word name than "img" to store the image. for example, use "im" or "ph" (for Photo) and you also get 2 characters, so the result is now 79 chars. 3- But personally, I would prefer to keep it at 81 chars since this suggests a better reading and so understanding. In fact I would like the judges accept such "not so formal" submissions as true one-liners - and relax somehow their first constraints, if this seems not too tricky for any NEW reader to understand, use and modify. These would be my own criteria but I am not the boss here. I'm only transmitting my "heart feeling" for the newcomers. Nevertheless keep up the good work everybody. Sincerely, Gerard P.S. May be this could be useful for such OFFICIAL rejected submissions (over 80 chars), to keep them under another general category called something like the "EASILY READ but SLIGHTY OVER SIZED one-liners" or else specify some SIZE RELATED categories like <80, 80-100, 100-1k, > 1k. But is it really necessary - we don't have to be purists like this I think. Just be kind enough and fair for everybody's else submission. It's not a DEAD or LIFE combat, in my view it must simply be entertaining and useful to learn and show others what can be done with REBOL in one EASY READ line of code. (That's my pov)