What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » artificial intelligence script(close window)

artificial intelligence script(close window)
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: artificial intelligence script(close window)
quote:
Originally posted by xsouldeath
bad programming im sure the script contains that, but it works
you didn't really mention about the bad programming.... lol the script works and some say its better than smarterchild .. so yay :)
It's not about if it works, it's about if it works good. When you release a script which contains crappy, unneeded stuff like:
code:
if (Message.match(/(^|\s+)(\*)?add(d|s)?(\*)?($|\s+)/i)!=null)
or:
code:
var anExpression = Message;
others will be confused about it and think that they have to use the same in their scripts. Then, when it doesn't work, they come here and ask why. And we don't want thar, huh? :)

A good example of bad programming is:
code:
if (Message.match(/(^|\s+)(\*)?add(d|s)?(\*)?($|\s+)/i)!=null)
This rule contains so much unneeded stuff that it could even match a string like:
quote:
Hey I thought he     *adds*  something like bananas
If you would study the regular expression and know how to write proper regexp, you'll know why. Also, this code will make your script fail or even crash since it'll try to send:
quote:
I thought he     *adds*  something like bananas
to the eval function. :-/
So: go to some tutorial site like this one and learn proper regular expressions. ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-21-2006 03:19 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
artificial intelligence script(close window) - by xsouldeath on 09-19-2006 at 11:32 PM
RE: artificial intelligence script(close window) - by cloudhunter on 09-19-2006 at 11:48 PM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 12:19 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 12:27 AM
RE: artificial intelligence script(close window) - by Spunky on 09-20-2006 at 12:30 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 12:34 AM
RE: artificial intelligence script(close window) - by Lou on 09-20-2006 at 12:36 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 01:39 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 01:51 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 02:07 AM
RE: artificial intelligence script(close window) - by CookieRevised on 09-20-2006 at 02:13 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 03:13 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-20-2006 at 11:59 PM
RE: artificial intelligence script(close window) - by CookieRevised on 09-21-2006 at 09:38 AM
RE: artificial intelligence script(close window) - by xsouldeath on 09-21-2006 at 12:59 PM
RE: artificial intelligence script(close window) - by Matti on 09-21-2006 at 03:19 PM
RE: artificial intelligence script(close window) - by xsouldeath on 09-21-2006 at 07:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On