WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline andyj

  • Hero Member
  • *****
  • Posts: 886
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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
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.