Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #46  
Old 08-12-2008, 07:00 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by WhiteDragon View Post
If you hadn't noticed, once Hell learns something he refuses to believe anything else.
jk
CIS degree being Computer Information Systems is a standard college board thing.
__________________
Reply With Quote
  #47  
Old 08-12-2008, 07:29 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Kristi View Post
CIS degree being Computer Information Systems is a standard college board thing.
So? He said it was something else and you challenged for no good reason at all, standard or not.

Speaking of aligning things, I never align equal signs, but I usually line up SQL statements between the keyword and the data. e.x.,
PHP Code:
SELECT *
  
FROM `users`
 
WHERE `id` = '1'
 
LIMIT 1 
It becomes very nice when you get tons of joins and comparison predicates.
Reply With Quote
  #48  
Old 08-12-2008, 08:28 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Seeing someone going out of their way to line up equal signs or any other operator unless they're assigning some huge number of variables/array indices/etc always strikes me of showoffish. Even if there is a huge number of assignments I still don't like it. It might make the code marginally more readable, but it makes it a pain to edit.
__________________
Reply With Quote
  #49  
Old 08-12-2008, 04:28 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Googi View Post
Seeing someone going out of their way to line up equal signs or any other operator unless they're assigning some huge number of variables/array indices/etc always strikes me of showoffish. Even if there is a huge number of assignments I still don't like it. It might make the code marginally more readable, but it makes it a pain to edit.
The problem with code readability is that people don't agree what is readable.

PHP Code:
function foobar )
{
  
doSomethingpi );

is perfectly readable for myself and Jave (who also scripts on Vesporia, albeit lightly). However, most think that's hard to read
__________________
Reply With Quote
  #50  
Old 08-12-2008, 04:32 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by cbk1994 View Post
The problem with code readability is that people don't agree what is readable.

PHP Code:
function foobar )
{
  
doSomethingpi );

is perfectly readable for myself and Jave (who also scripts on Vesporia, albeit lightly). However, most think that's hard to read
The only occasion I add ugly spaces like that, is if I have an array within two (), such as:

PHP Code:
randomFunction( { "Foo""Bar""Baz" } ); 
EDIT: Actually, when I scan through my scripts, I haven't done that for a looooong time. It seems I do like this:

PHP Code:
randomFunction({ "Foo""Bar""Baz" }); 
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #51  
Old 08-12-2008, 04:35 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
The only occasion I add ugly spaces like that, is if I have an array within two (), such as:

PHP Code:
randomFunction( { "Foo""Bar""Baz" } ); 
EDIT: Actually, when I scan through my scripts, I haven't done that for a looooong time. It seems I do like this:

PHP Code:
randomFunction({ "Foo""Bar""Baz" }); 
PHP Code:
temp.foo = {
                  
"Foo"// Probably wouldn't do this for a short list like this, mainly for multi-dimensional arrays.
                  
"Bar",
                  
"Baz"
                
};
randomFunctionfoo ); 
Sorry, can't open RC right now (or anything with a fixed-width font), so they aren't aligned.
__________________
Reply With Quote
  #52  
Old 08-12-2008, 06:23 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by cbk1994 View Post
is perfectly readable for myself and Jave (who also scripts on Vesporia, albeit lightly). However, most think that's hard to read
That hurts my eyes.
__________________
Reply With Quote
  #53  
Old 08-12-2008, 06:42 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Inverness View Post
That hurts my eyes.
Yeah, like I said, most people don't like it.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.