Comments on: Top 10 12 Reasons why Javascript is Better than PHP http://isaacschlueter.com/2006/08/top-10-reasons-why-javascript-is-better-than-php/ Just slightly more than my twitter stream. Fri, 20 Nov 2015 19:10:57 +0000 http://wordpress.org/?v=2.5.1 By: Peter Goodman http://isaacschlueter.com/2006/08/top-10-reasons-why-javascript-is-better-than-php/#comment-3011 Peter Goodman Thu, 01 Feb 2007 03:50:45 +0000 http://isaacschlueter.com/2006/08/top-10-reasons-why-javascript-is-better-than-php/#comment-3011 PHP5 allows a function to return an object and have it accessed as well, e.g.: function moo() { return new Whatever; } echo moo()->someFunc(); The same cannot be done (to my knowledge) with accessing array elements right after calling the function, (moo()[0]...); however, the PHP5 SPL ArrayAccess class should be tested to see if it would in fact work. (where Whatever would implement ArrayAccess) PHP5 allows a function to return an object and have it accessed as well, e.g.:
function moo() {
return new Whatever;
}
echo moo()->someFunc();

The same cannot be done (to my knowledge) with accessing array elements right after calling the function, (moo()[0]…); however, the PHP5 SPL ArrayAccess class should be tested to see if it would in fact work. (where Whatever would implement ArrayAccess)

]]>
By: mattbta http://isaacschlueter.com/2006/08/top-10-reasons-why-javascript-is-better-than-php/#comment-997 mattbta Mon, 28 Aug 2006 13:18:26 +0000 http://isaacschlueter.com/2006/08/top-10-reasons-why-javascript-is-better-than-php/#comment-997 All hail firebug. That has been so instrumental in debugging AJAX stuff I've been working on. I used to hate javascript but have warmed up to it as it is so easy to manipulate the dom. Good post. All hail firebug. That has been so instrumental in debugging AJAX stuff I’ve been working on. I used to hate javascript but have warmed up to it as it is so easy to manipulate the dom.

Good post.

]]>

Warning: fopen(/var/www/isaacschlueter.com/public/wp-content/cache/meta/wp-cache-f0ad128efa9d44aa3e23d4b0b7771676.meta) [function.fopen]: failed to open stream: Permission denied in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 378

Warning: fputs(): supplied argument is not a valid stream resource in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 379

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/isaacschlueter.com/public/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 380