note 15156 deleted from faq.languages by nlopess

From: Date: Wed, 08 Aug 2007 17:20:22 +0000
Subject: note 15156 deleted from faq.languages by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-129343@lists.php.net to get a copy of this message
Note Submitter: nick at divbyzero dot com ---- Actually, ASP isn't as terrible as one might think, if you have a background in Javascript (or other object-based languages with dot-notation (object.object.function()). VBScript is a pain, true (cuz it looks, feels, and smells of VB), but JScript is a lot nicer and syntactically looks like Javascript with extra functions added for server-side stuff (ie., file i/o) that Javascript can't do client-side. And while most of the code samples on the net and documentation talks about VBScript, JScript docs and manuals can be found on M$'s sites in a few places. Where VBScript has that painful IF ... ENDIF crap, JScript has the friendly if () { // ... } and even for (indexVar in ArrayName) { // ... } stuff, very much like PHP's foreach() looping. Once you get around the bulky object syntax for opening, closing, writing, appending files/folders, it's not too bad. Good regExp handling, too. And translating from PHP to ASP and back again is a good programmatic exercise for those trying to stay grounded in object (Javascript/Jscript) and function (PHP) notation differences. eg., preg_replace("/pattern/","replacement",$source); becomes source.replace(/pattern,"replacement"); etc. For examples of code workarounds I've built to translate PHP functionality to ASP and vice versa (like translating PHP's file() into ASP), check out: http://divbyzero.com/PHP/ and http://divbyzero.com/ASP/ - nick@divbyzero.com

« previous php.notes (#129343) next »