General TC > Programming & Scripting - Unofficial

what coding style is prefered in tinycore?

<< < (4/4)

andyj:
Asking about style is like asking which is the best dessert. It's a subjective question so just go for readability and more importantly consistency.

ferran:

--- Quote from: Greg Erskine on November 14, 2020, 02:30:41 PM ---Your tab spacings in the above example shows 3, 4 or 5 spaces?

--- End quote ---
I always configure the editor to 4 spaces per tab, in my opinion it's enough to see a fine structured coding.

Rich:
Greg Erskine

--- Quote from: Greg Erskine on November 14, 2020, 02:30:41 PM ---Your tab spacings in the above example shows 3, 4 or 5 spaces?
--- End quote ---
When entering text between code tags the font is proportional. If you look at alignment instead of counting spaces, you
will get it wrong. When you click the  Post  or  Preview  button, the text between the code tags gets displayed using a
fixed font, and will look correct if you counted spaces. I'm guessing ferran looked at alignment.

Rich:
Hi ferran
4 spaces per tab is my preference too.

dentonlt:

--- Quote from: andyj on November 14, 2020, 04:13:08 PM ---Asking about style is like asking which is the best dessert. It's a subjective question so just go for readability and more importantly consistency.

--- End quote ---

Hahahahahah - but you're the only one that has to eat your dessert  ;D

I take spaces over tabs since the latter vary per software/editor/user, but maybe that's equal justification for tabs over spaces ... using spaces takes control from the recipient. Hmm ... maybe I should use tabs in the future ...

If I had to choose tab size, I'd take only two spaces. I think that's what I did in submitqc. I think.  ???

Navigation

[0] Message Index

[*] Previous page

Go to full version