lua-users home
lua-l archive

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


On 25/08/14 09:15, Coda Highland wrote:
(The lesson in Apple's SSL bug was "don't copy-paste code," which is much more broadly relevant.)

That's actually a criterion i've been munching as a posible default for all the pesky "style" questions: "does it make copy&paste of code more robust/safe, or not?".

You can apply that to stuff like to whether to use begin-end or "{}" even when there's a single line, or where to declare variables (just before first use or at the beginning of scope), or whether a bunch of code should be factored out to a function.


Jorge