Mblackwell, on 29 October 2015 - 07:24 PM, said:
If you format your tabs as 4 spaces and always do your code with indentations keeping track of brackets isn't very hard since you have a visual line to go from (and can always move down the lines and see if it's there).
Yes - and no. The issue usually arrises when I modify a function such as commenting out blocks whilst trying to get my crap to work. It also takes me a few hours to switch between c#/c++/php/javascript mode and CON file mode during which time I do some real dumb things like
state my_really_cool_function
{
}
which I then compound replacing the trailing '}' with ends. I hate getting old.
Mblackwell, on 29 October 2015 - 07:24 PM, said:
These days I always write like this:
useractor notenemy MYACTOR
ifvare SOMEVAR 0
state dostuff
else
{
getactor[THISACTOR].extra SOMEVAR
ifvarg SOMEVAR 10
{
ifvarg SOMEVAR 20
state domorestuff
else
{
mulvar SOMEVAR 100
getactor[THISACTOR].xrepeat SOMEOTHERVAR
divvarvar SOMEVAR SOMEOTHERVAR
state doevenmorestuff
}
}
}
enda
Wot no comments ? Shame on you
Mblackwell, on 29 October 2015 - 07:24 PM, said:
Blame TerminX for always enforcing fairly strict style guidelines when you code with him.
Yes, and that is good. We differ on very few - I could write an essay on why you should ALWAYS follow an if statement with curley braces even for single statements and why I am obviously right

But it's irrelevent, I've learnt over the years that it is far better to have a common standard whatever that standard is. I've asked if there is one of the Eduke source files that could be used as a suitable style reference.
Anyhow, it sounded like PsychoGoatee was put off playing with CON files because of getting a bunch of errors, just wanted to highlight that just one actual error can lead to a shed load of errors but not to panic it may well just be the first error that is important.
TTFN,
Jon