Why do people do this?
#1

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:
Код:
new variable;
people do this:
Код:
new
	variable;
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.
Reply
#2

I find it a lot more cleaner. People do code things different you know.

pawn Код:
new
       Var
;
Reply
#3

Cleaner? To me it looks like you're coding while drunk.
Reply
#4

I hate useless whitespaces/newlines in code, you are fighting for the right thing my friend
Reply
#5

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]

Reply
#6

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.
Reply
#7

It depends on people's perspective and styles, I do sometimes uses that method and I sometimes uses the first example.
Reply
#8

two spaces are better than a tab
prove me wrong
Reply
#9

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 ^^
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)