5 ms·
At one level, this horrifies me. At another level, I'm always impressed by how PHPers just do it. Whatever it is, you always just seem to get from A to B and
by calambrac 17y ago
At one level, this horrifies me.
At another level, I'm always impressed by how PHPers just do it. Whatever it is, you always just seem to get from A to B and have something up and running. You guys are like the weaver ants of the programming world.
- Scriptor 17y agoWhat specifically horrifies you about it? There are a lot of utility functions in PHP that aren't built-in to Javascript. I've used it a little by looking at the source for the code and tweaking things here and there. This isn't really a way to turn Javascript into PHP. PHP simply has a lot of functions that are handy. Some problems that I can think of are that it brings in PHP's namespacing and lack of naming conventions, but these can be fixed if a developer only incorporates one function at a time when he or she needs it.
- calambrac 17y agoSome problems that I can think of are that it brings in PHP's namespacing and lack of naming conventions. That's a part of it, along with some of the kind of weird function semantics, along with just the general idea of "Hey, we should port all the built-in PHP functions to Javascript!" followed by it actually getting done. If the idea was simply "let's port the useful functions in PHP that makes sense for javascript", that would be one thing. As that idea is actually a subset of this project, no harm done, I guess. Thank goodness we finally have "die" for javascript, right?
- ssharp 17y agoI guess PHP programmers should never expect anything more than a backhanded compliment. I just love how any topic that just contains the word PHP immediately gets a comment on how awful it is - even if PHP isn't really involved in it.
- calambrac 17y agoHow is PHP not really involved? It's all the built-in PHP functions! Do you just mean it's not a PHP Group project?
- randallsquared 17y agoPHP isn't really involved because this is only "like" PHP. It has no PHP in it. As far as I know from a quick skim.
- paulgb 17y agoIt doesn't run in PHP, but it borrows function signatures from PHP's core library. One of the most common complaints about PHP is that the core library is messy and inconsistent. edit: I didn't mean to sound so negative. I think this is pretty cool if taken for what it is. Despite the messiness of PHP's libraries, they are well documented and cover a lot. The string, date, and array libraries in particular are quite useful.
- jrockway 17y agoDude, the echo function contains an XML parser. That is truly something only a PHPer would do. It's art, man!
- sh1mmer 17y agoI love the print_r function I found this because I was searching specifically for that. On the other hand, I do not need the curmudgeonly array functions. Why anyone would want to recreate the frustrating hell of having to know which array functions are (needle, stack) and which are (stack, needle) is beyond me.