lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Asko Kauppi wrote:
> I did mine today.. a script (regedit.lua) that allows Win32 registry
> control from within Lua. No modules, no c code, just .. regedit.exe and
> a temporary file. And _lots_ of file parsing!

> Anyone out there with even more useless scripts?

It depends on what you call "useless"... It is almost a philosophical
question!

If you made it out of a boring day, just to prove it can be done, OK, it is
really useless, as nobody will use 
it, because writing a registry library would be much more efficient.

If you made it because for some reason you have strong constraints on your
environment, it is not so 
useless, because it fills a need. Even if it is very inefficient (compared
to using registry API), it is still 
useful.

I wrote Lua useless code myself. For example, my first Lua program, which I
put to the wiki because at 
the time, there were not so much examples of Lua programs.
I wrote it because I saw a site listing programs in all sorts of languages,
writing the lyrics of "99 bottles of 
beer" song. There was no Lua version of this program, so I tried to write
one. I believe the site is down 
now, but it had some mirrors here and there.

This one is really useless, because nobody will ever take the time to really
read the output of the program!
Now, it is not completely useless: it falls in the "entertainment" category,
a bit like the Life program in the 
test directory of the Lua distribution.
And no program, as long as the source is provided, is useless, as it can be
used by newbies to see how to 
program (or how not to program, depends on the quality ;-)

-- 
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--

+++ GMX - Mail, Messaging & more  http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!