[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua code learning path using annotated source by Steve Donovan
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 19 Dec 2011 15:24:08 +0100
> 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.