[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C/C++ lua_stackdump lib - feedback welcome
- From: Francisco Olarte <folarte@...>
- Date: Tue, 11 Oct 2016 12:56:38 +0200
On Tue, Oct 11, 2016 at 10:13 AM, Sean Conner <sean@conman.org> wrote:
> What? You are still using a pysical VT-100 in this day and age? Stuck
> with 80x24 text window?
Even if you are not limited by the display ( and I've seen code which
overflowed a 4k monitor for a not so long function ) too much vertical
space can be an issue. I normally prefer to split the code in chunks I
can scan confortably ( and I cannot scan more than about .4/.5 m ) for
easier comprehension. Sometimes braces in its own line make this hard,
and I feel they do not add anything ( I use cuddled elses, last brace
in its line, as for me the if opens a block, having a brace is a
detail, and the else / else if separates blocks, braces are just a
detail, and the last brace is the closer, being a brace or an end like
in lua is just a detail).
Anyway, what I like is indent-compatible coding styles, the ones which
I can take, pass through indent for my coding style, modify them, pass
them to indent for the original style and get them clean.
Francisco Olarte.