WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: what coding style is prefered in tinycore?  (Read 4330 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 965
Re: what coding style is prefered in tinycore?
« Reply #15 on: November 14, 2020, 01: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.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: what coding style is prefered in tinycore?
« Reply #16 on: November 14, 2020, 01:37:21 PM »
Your tab spacings in the above example shows 3, 4 or 5 spaces?
I always configure the editor to 4 spaces per tab, in my opinion it's enough to see a fine structured coding.
TC CorePlus v.11.1 i686 & lots of coffe

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 9587
Re: what coding style is prefered in tinycore?
« Reply #17 on: November 14, 2020, 01:47:50 PM »
Greg Erskine
Your tab spacings in the above example shows 3, 4 or 5 spaces?
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.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 9587
Re: what coding style is prefered in tinycore?
« Reply #18 on: November 14, 2020, 01:49:25 PM »
Hi ferran
4 spaces per tab is my preference too.

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: what coding style is prefered in tinycore?
« Reply #19 on: December 21, 2020, 01:56:57 AM »
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.

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.  ???