boutell: (Default)
[personal profile] boutell
Kevin Van Zonneveld has created a library of popular PHP functions, translated to JavaScript.

I'm not sure it's a great idea to make one language look too much like another if, at the end of the day, they are not the same, because it might make it harder to avoid dumb mistakes. But regardless of how you feel about that, it's a neat library with a lot of useful stuff that's not standard equipment in JS.

I found it because I was googling around to see how one implements something like PHP's function_exists in PHP, and lo and behold, it's included in php.js.

One downside that I don't imagine Mr. Zonneveld is too worried about: it's likely to increase the number of people who hold a deep conviction that if they were somehow just a little better at JavaScript, they wouldn't need to know PHP (or any other server side language) at all. And yes, I do hear from those people regularly.

Fortunately they all figure it out sooner or later and cough up the $10/month for real hosting with, y'know, a database to put stuff in.
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

September 2014

S M T W T F S
 123456
78910111213
14151617181920
2122232425 2627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 17th, 2017 10:10 pm
Powered by Dreamwidth Studios