Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Curiosity... (https://forums.graalonline.com/forums/showthread.php?t=81118)

Kristi 08-12-2008 07:00 AM

Quote:

Originally Posted by WhiteDragon (Post 1413570)
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.

WhiteDragon 08-12-2008 07:29 AM

Quote:

Originally Posted by Kristi (Post 1413571)
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.

Googi 08-12-2008 08:28 AM

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.

cbk1994 08-12-2008 04:28 PM

Quote:

Originally Posted by Googi (Post 1413584)
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 :cry:

xXziroXx 08-12-2008 04:32 PM

Quote:

Originally Posted by cbk1994 (Post 1413643)
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 :cry:

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" }); 


cbk1994 08-12-2008 04:35 PM

Quote:

Originally Posted by xXziroXx (Post 1413644)
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.

Inverness 08-12-2008 06:23 PM

Quote:

Originally Posted by cbk1994 (Post 1413643)
is perfectly readable for myself and Jave (who also scripts on Vesporia, albeit lightly). However, most think that's hard to read :cry:

That hurts my eyes.

cbk1994 08-12-2008 06:42 PM

Quote:

Originally Posted by Inverness (Post 1413668)
That hurts my eyes.

Yeah, like I said, most people don't like it.


All times are GMT +2. The time now is 05:29 AM.

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