lua-users home
lua-l archive

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


> I'm in the process of revamping my C skills and I'd like to study Lua
> sources as an example of very well-written code using the annotated source
> by Steve Donovan found at:

"Very well-written" code would be commented inline and not need
annotation. Yeh, sorry about being provocative about this, but I keep
insisting that good coding is also good documenting. So maybe its
well-written for being small and fast, but I reserve the adjective for
"very well-written" if it would have universal documenting function
and file headers (last time I looked, it has in some particular hard
cases)

Other than this, I would study code in the domain you intend to be
projecting on. So if you want to code a parser, virtual machine,
garbage collector or the like, it is a good idea to look at Lua code,
if you want to eventually do something else like 3D animation or such,
you should inspect code of that domain instead.