Why do people do this? -
Toroi - 14.03.2017
I was quite sure I was a healthy person until few weeks ago:
I've seen it everywhere, from YSI files to tutorials, every
fucking where.
Instead of this:
people do this:
Like fucking why? what's the reason behind it? Is it more readable that way? I don't fucking think so. You do it only to demonstrate to other people that you can do it? Is that why? What the fuck man.
This triggers an OCD of mine I didn't know I had.
Re: Why do people do this? -
Luis- - 14.03.2017
I find it a lot more cleaner. People do code things different you know.
Re: Why do people do this? -
Toroi - 14.03.2017
Cleaner? To me it looks like you're coding while drunk.
Re: Why do people do this? -
]Kurence[ - 14.03.2017
I hate useless whitespaces/newlines in code, you are fighting for the right thing my friend
Re: Why do people do this? -
jlalt - 14.03.2017
Take a look on pattern design videos and you will know how you should program / script.
And yes its cleaner. leme show you why:
PHP код:
new PlayerName[MAX_PLAYER_NAME], Players[MAX_PLAYERS], PlayerID[MAX_PLAYERS], string[128], Handle[1800];
so you judge which is more clean and easier to read:
PHP код:
new
PlayerName[MAX_PLAYER_NAME],
Players[MAX_PLAYERS],
PlayerID[MAX_PLAYERS],
string[128],
Handle[1800]
;
Re: Why do people do this? -
Toroi - 14.03.2017
That example I can understand, it does not look cleaner to me though, but it does not look bad either. However, my focus is on single variables as I showed in my first post.
Re: Why do people do this? -
JaKe Elite - 14.03.2017
It depends on people's perspective and styles, I do sometimes uses that method and I sometimes uses the first example.
Re: Why do people do this? -
aymel - 14.03.2017
two spaces are better than a tab
prove me wrong
Re: Why do people do this? -
Bolex_ - 14.03.2017
Quote:
Originally Posted by jlalt
Take a look on pattern design videos and you will know how you should program / script.
And yes its cleaner. leme show you why:
PHP код:
new PlayerName[MAX_PLAYER_NAME], Players[MAX_PLAYERS], PlayerID[MAX_PLAYERS], string[128], Handle[1800];
so you judge which is more clean and easier to read:
PHP код:
new
PlayerName[MAX_PLAYER_NAME],
Players[MAX_PLAYERS],
PlayerID[MAX_PLAYERS],
string[128],
Handle[1800]
;
|
This ^^
Re: Why do people do this? -
SyS - 14.03.2017
Quote:
Originally Posted by aymel
two spaces are better than a tab
prove me wrong
|
http://softwareengineering.stackexch...verything-in-e
@op to me one space for single declaration is clearer but it might not be same for all.