Style guide?
Style guide?
I see a lot of mixed styles among the projects source files. I think it'd really be helpful to have a few standards defined so our submissions will look more in line with what you expect. As a rather minor example I see a lot of mixed spacing, 2 or 5 spaces instead of 4, not just mixing tabs and spaces which I can live with.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: Style guide?
me too, but it never really happened: i just follow what file i'm in (as they're usually the same)
generally, i do tabs (or 4 spaces), braces on separate lines, space between if and bracket
generally, i do tabs (or 4 spaces), braces on separate lines, space between if and bracket
Re: Style guide?
Tab keys should be removed from keyboards, or all systems should standardize to replacing tabs to 4 spaces. Tabs are the devils work.
Re: Style guide?
I feel the same way about any interface that requires I touch the mouse. As soon as I have to remove a hand from the keys and reach for the rodent, my workflow is disrupted. And then there is my cat...Mice were delivered to earth directly from hell itself with the sole purpose of entertaining my cat who enjoys watching my reaction to a swatted pc peripheral.atom0s wrote:Tabs are the devils work.
As for tabs, I tend to use tabs then batch convert them all to 4 spaces, got used to that from modifying python works where somebody didn't know how to use a spacebar or the basic replace most editors have.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: Style guide?
Yeah any new editor I get or when I reinstall /reformat the first thing I do is disable tabs and make them spaces. Cannot stand them at all.