2 posts tagged “php”
I've been thinking about getting back into GUI programming (all I've done for about the last year, barring one small VB.NET project) is all web and scripting. I've also been thinking about picking up a new language but with the plethora of choices available now I'm at a loss on what to pick. Maybe you guys out there can help.
I'm fairly decent with VB.NET, live in PHP, and can understand C#. I've got a little experience in C++ but it's been so long since I've done any actual coding (and never anything GUI with it) that it would be just like learning it again (I'm purposely leaving out that I know COBOL and RPG...... crap). I want to learn something that is multi-platform to boot.
If anyone has any ideas, let me know. I'm looking at Python, but honestly, I have no idea where to go.
I have become a convert of the Ajaxy goodness that comprises Web 2.0. I've held off getting into Ajax since I'm pretty much against javascript. It's a pain to implement something in javascript, which may not work correctly in all browsers without extensive testing, it's finicky, and just a pain to write and maintain. To top it all of, what can't I accomplish in PHP that javascript won't do? I know PHP better so I'll build it quicker that way than with javascript.
One thing that I stumbled upon was xajax. xajax is a PHP wrapper for ajax functionality. What this allows a person to do is write PHP code for what they would like to happen, but then have it all tunneled through javascript without having to write a ton of javascript.
For example, let's say that you have two select boxes. When you make a selection from A, it changes the options in B. We've all seen this before. Now, imagine that B constantly changes and all of the options are stored in a MySQL database. One option is to learn Ajax to do all the altering for you. That can be a lot of javascript. The other option is with xajax. You can write a PHP function that does the same thing, and xajax will take care of turning it into Ajax for you!
xajax is currently at 0.2.4 and works pretty well. I've only had one project that doesn't work at all, and I'm sure that's because I'm doing something wrong. I've used it, as well as the SVN version (which is like beta 0.5.x) on a few different applications and it's worked great. I'm not using it for anything gigantic, but I'm finding little things in my applications that are benefiting from it.
If you do PHP development, xajax is something to look into if you want to get your feet wet with ajax without having to learn a new language.