Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 05-08-2008, 10:09 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
He's saying to fix what we have, not add something totally new.

ECMAScript Standards can wait in line. We already have a way to do this, it just needs to be fixed. No need to reinvent the wheel
__________________
Reply With Quote
  #32  
Old 05-09-2008, 12:12 AM
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 cbkbud
He's saying to fix what we have, not add something totally new.
Exactly
Quote:
Originally Posted by Robin View Post
Because you currently can't do that with catch event.
Well duh, and you can't do addeventlistener() either. Its simpler for Stefan to edit catchevent() to do what I'm saying than it is to add what you're suggesting and confuse people with having two ways of doing the same thing.
Quote:
Originally Posted by cbkbud
ECMAScript Standards can wait in line. We already have a way to do this, it just needs to be fixed. No need to reinvent the wheel
I'm glad someone understands.
__________________
Reply With Quote
  #33  
Old 05-09-2008, 03:04 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
What you don't seem to understand is that addEventListener IS the wheel Stefan reinvented by making catchEvent.

Just a... slightly square... triangular wheel that doesn't work quite right.
__________________

Reply With Quote
  #34  
Old 05-09-2008, 03:11 AM
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 Robin View Post
What you don't seem to understand is that addEventListener IS the wheel Stefan reinvented by making catchEvent.

Just a... slightly square... triangular wheel that doesn't work quite right.
GS2 doesn't have to comply to any of your ECMAScript Standards.

There was no catchevent in GS1, he created catchevent in GS2. Therefore, he reinvented no wheel in Graal's scripting.
__________________
Reply With Quote
  #35  
Old 05-09-2008, 05:37 AM
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 Robin View Post
What you don't seem to understand is that addEventListener IS the wheel Stefan reinvented by making catchEvent.

Just a... slightly square... triangular wheel that doesn't work quite right.
Look you're really starting to piss me off (relatively) with your apparent inability to think about anything beyond what you want.

You don't seem to realize that we've been using catchevent() for years and nobody wants to have to replace all instances of it with some new function just to adhere to some standard that they probably don't care about.
__________________
Reply With Quote
  #36  
Old 05-09-2008, 03:04 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Inverness View Post
Look you're really starting to piss me off
Oh but I do love it so :P
Quote:
Originally Posted by Inverness View Post
You don't seem to realize that we've been using catchevent() for years and nobody wants to have to replace all instances of it with some new function just to adhere to some standard that they probably don't care about.
I never said anything about replacing catchevent, that would be bad for backwards compatibility.

catchevent seems to only work for GUI / HTTPRequest objects and that seems like a very small scope.

It should be modified to work with any event, custom events included.

The beauty of addEventListener is that it's an already defined function in C-like interperated scripts and you wouldn't lose backwards compatibility by adding a new function.
__________________

Reply With Quote
  #37  
Old 05-10-2008, 12:57 AM
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 Robin View Post
Oh but I do love it so :P
The relatively in the parentheses means that I don't get "pissed off" as much as I get irritated.
Quote:
Originally Posted by Robin View Post
catchevent seems to only work for GUI / HTTPRequest objects and that seems like a very small scope.
It was suggested multiple times that Stefan make catchevent() work with everything and not just the engine events like it does currently.

You still don't seem to understand that we do not need addeventlistener() because rather than adding a new way to do the same thing Stefan can simply modify catchevent()

On a different subject: I don't think you have the ability to be PWA if you can't understand simple things such as consistency.
__________________
Reply With Quote
  #38  
Old 05-10-2008, 02:19 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Inverness View Post
The relatively in the parentheses means that I don't get "pissed off" as much as I get irritated.
Pissed off does not mean irritated anymore?

Quote:
Originally Posted by Inverness View Post
It was suggested multiple times that Stefan make catchevent() work with everything and not just the engine events like it does currently.
But it has not been done, perhaps to not break backwards compatibility? Perhaps he would like to wait until the next client revision?


Quote:
Originally Posted by Inverness View Post
You still don't seem to understand that we do not need addeventlistener() because rather than adding a new way to do the same thing Stefan can simply modify catchevent()
I understand, and as the name suggests, it's a very generic function. addEventListener does not even have to be added, although it would be good.

If catchevent worked the way you and myself would like it to, I could make this:

PHP Code:
function addEventListener(obj,event,func) {
  
obj.catchEvent(event,func);

That way, your event would work fine, and I could keep standards. As I said in my other thread, I'd like to keep general c-like based script standards in order to encourage more players to script.

Quote:
Originally Posted by Inverness View Post
On a different subject: I don't think you have the ability to be PWA if you can't understand simple things such as consistency.
Because, my wanting to be PWA has ANYTHING to do with this thread? You're just picking bones my old friend.

You say I do not understand consistency, when I am talking about standards. Standards are about keeping things consistent.

As I have also said, if you have a problem, feel free to IM me or to email me. You will not be ignored.
__________________

Reply With Quote
  #39  
Old 05-10-2008, 03:56 AM
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 Robin View Post
I understand, and as the name suggests, it's a very generic function. addEventListener does not even have to be added, although it would be good.
Then stop making a fuss about it.
Quote:
If catchevent worked the way you and myself would like it to, I could make this:

PHP Code:
function addEventListener(obj,event,func) {
  
obj.catchEvent(event,func);

Yes, that could fit perfectly into your atan->arctan junk.
Quote:
I'd like to keep general c-like based script standards in order to encourage more players to script.
GS2 is easy enough to learn. Personally, I see addEventListener as more confusing. Plus, it's not like people go around and say "HMM I COULD LEARN GS2 BUT IT DOESNT COMPLY WITH MY ECMA**** "
Quote:
You say I do not understand consistency, when I am talking about standards. Standards are about keeping things consistent.
We have consistency. Consistency of GS2. There is no reason we need consistency for any other languages.

Actually, I will start a crusade to make GS2 compliant with my BASICStandards

This way, everyone coming from BASIC would be able to script GS2
__________________
Reply With Quote
  #40  
Old 05-10-2008, 10:13 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by cbkbud View Post
Then stop making a fuss about it.
I already did.

Quote:
Originally Posted by cbkbud View Post
Yes, that could fit perfectly into your atan->arctan junk.
arctan is not the standard name for that function, try C, C#, Java, Actionscript etc. Judging by the fact that the following is perfectly legal GScript2, Stefan has already started to implement some Actionscript:
PHP Code:
function init(obj:Objectx:Numbery:Number) {

Quote:
Originally Posted by cbkbud View Post
GS2 is easy enough to learn. Personally, I see addEventListener as more confusing. Plus, it's not like people go around and say "HMM I COULD LEARN GS2 BUT IT DOESNT COMPLY WITH MY ECMA**** "
Is it really? Then why do I continue to see some god awful scripting from otherwise talented people? If it's so easy, why don't you contribute some scripts? I haven't seen anything in the Code Gallery from you since I got here.

Plus, as I have already said, I can add my own "addEventListener" if catchevent was fixed, it does not matter to me what the function is named as long as it works

Quote:
Originally Posted by cbkbud View Post
We have consistency. Consistency of GS2. There is no reason we need consistency for any other languages.
Obviously not considering the legal bit of Actionscript / GS2 above.

Quote:
Originally Posted by cbkbud View Post
Actually, I will start a crusade to make GS2 compliant with my BASICStandards

This way, everyone coming from BASIC would be able to script GS2
BASIC has no standards, it was a Microsoft invention. ECMA is not a script on it's own. It's a set of standards, like ISO or RFC.

I was starting no crusade sir, I saw the inklings of GS2 becoming something greater than it already is and decided to try and help, and yet was bashed
__________________

Reply With Quote
  #41  
Old 05-10-2008, 10:19 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 Robin View Post
arctan is not the standard name for that function, try C, C#, Java, Actionscript etc.
It is silly to make another function just because you do not wish to adapt

And yes, I know atan is the standard, I also script Java and basic Actionscript.
Quote:
Is it really? Then why do I continue to see some god awful scripting from otherwise talented people? If it's so easy, why don't you contribute some scripts? I haven't seen anything in the Code Gallery from you since I got here.
http://forums.graalonline.com/forums...ad.php?t=73425
http://forums.graalonline.com/forums...ad.php?t=73742
http://forums.graalonline.com/forums...ad.php?t=73784
http://forums.graalonline.com/forums...ad.php?t=73857
http://forums.graalonline.com/forums...ad.php?t=77749
http://forums.graalonline.com/forums...ad.php?t=77694
http://forums.graalonline.com/forums...ad.php?t=73726

I haven't been scripting much as final exams are approaching.

Quote:
I was starting no crusade sir, I saw the inklings of GS2 becoming something greater than it already is and decided to try and help, and yet was bashed
I apologize, sir.
__________________
Reply With Quote
  #42  
Old 05-10-2008, 10:58 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 Robin View Post
Pissed off does not mean irritated anymore?
I'm not going to define relatively for you.
Quote:
Originally Posted by Robin View Post
But it has not been done, perhaps to not break backwards compatibility? Perhaps he would like to wait until the next client revision?
Well duh, what I'm saying is in that next version he should be changing catchevent() instead of adding addeventlistener()
Quote:
Originally Posted by Robin View Post
I understand, and as the name suggests, it's a very generic function. addEventListener does not even have to be added, although it would be good.
Ok, stop pushing it then.
Quote:
Originally Posted by Robin View Post
and I could keep standards. As I said in my other thread, I'd like to keep general c-like based script standards in order to encourage more players to script.
Claiming that specific functions are a language standard is a stretch. GS2 has its own standards anyways.
Quote:
Originally Posted by Robin View Post
Because, my wanting to be PWA has ANYTHING to do with this thread? You're just picking bones my old friend.
If you want to be PWA you should understand simple concepts like what I've been saying.
Quote:
Originally Posted by Robin View Post
You say I do not understand consistency, when I am talking about standards. Standards are about keeping things consistent.
Changing GS2 all around to fit some standard nobody (few) cares about is not "keeping things consistent".
__________________
Reply With Quote
  #43  
Old 05-11-2008, 01:41 AM
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
Changing GS2 all around to fit some standard nobody (few) cares about is not "keeping things consistent".
Agreed.

The key is for you to adapt, not the language.
__________________
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 10:48 PM.


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