General TC > Programming & Scripting - Unofficial
what coding style is prefered in tinycore?
Paul_123:
I’m a K&R guy, although never knew it had a name. Allman wastes too much vertical space.
But I agree with keeping the same format as the original code was written.
Rich:
Hi Paul_123
--- Quote from: Paul_123 on August 17, 2020, 10:48:58 PM --- ... Allman wastes too much vertical space. ...
--- End quote ---
That might have been a valid argument back when displays were limited to 24 or 25 lines, but it's pretty lame by todays standards.
I find it very distracting trying to match opening braces to the right of the page with closing braces to the left of the page. Constantly
having to scan side to side makes it difficult for me to focus when examining someone else's code.
ladnar:
As a newbie and a biologist, I have no right to offer an opinion. But just in case you didn't know, FYI, there was a whole episode or two of the HomeBoxOffice series, "Silicon Valley", devoted to this "flame war"; this "running gag". I AM trying to learn a bit more about coding, but I am going to read all the above, only half-seriously.
ferran:
Didn't you know me yet? I'm Tab-man 8)
--- Code: ---[Requirements]
[Definitions]
[Settings]
[Flow algorithmic instructions]
[Flow algorithmic instructions (nested)]
[evaluation process]
[I/O process]
[end flow]
[end flow]
[final & exit]
[Functions]
--- End code ---
Greg Erskine:
Your tab spacings in the above example shows 3, 4 or 5 spaces?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version