This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Hello
#12
My bane and mental anguish is tabs, period.

Is a tab two spaces? Four? Eight? For my code, in BASIC the indent is two spaces (because I started coding on the Beeb in MODE 7). For C, the indent is three spaces or align with the above elements (makes sense with switch statements and anything spamming multiple lines).
Spaces throughout. Never tabs.

I've had code (written by others) where people have used different tab sizes at different times in the program (usually 4 or 8) and no expansion fixes that mess. Tabs belong in a word processor, not in code.

The terminal treating tabs as spaces is not great, but it probably saved an amount of code figuring out what the hell to do with them. It's not just placement, it's size, it's cursor backwards over them, it's inserting characters and coping, it's just annoying.
(I think the crappy terminal I wrote a billion years ago did the same thing for the same reason; doing tab properly was a wishlist item, not a requirement)
Reply


Messages In This Thread
Hello - by CliveSemmens - 08/06/2021, 12:25 pm
RE: Hello - by SKS1 - 08/06/2021, 12:47 pm
RE: Hello - by CliveSemmens - 08/06/2021, 12:56 pm
RE: Hello - by SKS1 - 08/06/2021, 1:16 pm
RE: Hello - by heyrick - 08/06/2021, 1:15 pm
RE: Hello - by CliveSemmens - 08/06/2021, 1:21 pm
RE: Hello - by heyrick - 08/06/2021, 1:33 pm
RE: Hello - by GrahameParish - 08/06/2021, 1:30 pm
RE: Hello - by CliveSemmens - 08/06/2021, 1:34 pm
RE: Hello - by GavinWraith - 08/06/2021, 2:35 pm
RE: Hello - by SKS1 - 08/06/2021, 6:33 pm
RE: Hello - by heyrick - 08/06/2021, 7:46 pm

Forum Jump:


Users browsing this thread: 1 Guest(s)