Hey guys,
Ok, could use a little advice here before I end up in a situation similar to when I decided to make the "smart" move, and switch from mySQL to PostgreSQL. That little move managed to piss off a whole lot of customers, and create me a large headache, so I would rather not repeat that. 🙂
I'm an excellent Perl developer, and am just working on a new project that will become our new back-bone, as the old one was developed a couple years ago. I'm just starting to use PHP, and decided to use PHP because:
1.) The new project is going to allow other developers to easily develop their own modules and applications, and there's a whole lot more PHP developers out there than Perl.
2.) Regardless, we have to provide service for our software, and it seems that qualified Perl developers are becoming scarce these days. PHP developers on the other hand seem to be a dime a dozen.
3.) This is what all customers want, and I've constantly heard that PHP is much better than Perl.
Now that I'm starting to get into the middle of the development, I'm questioning myself as to whether PHP was the right choice, or if I should just stick with Perl. I can develop in Perl 10 times quicker than PHP, but I'm sure that's just a matter of getting used to PHP.
I'm moreless worried about the resources and flexibility. What I'm developing is quite large, and at the end, I'll have a good 100,000+ lines of code, plus whatever others decide to develop. Of course, not all code will to be loaded for each process, as the software only loads what's required each time, but you get my point. Please know that there there isn't any HTML code anywhere within the PHP code. Instead, all the HTML is stored in outside templates, the mySQL database, etc. There's only maybe 3 or 4 different functions that actually return output to the web browser.
I've always heard that PHP is much quicker than Perl, but now that I'm getting into it and have a fair bit developed, it seems to be slower. The Perl programs I have which are complete and much larger, seem to be run noticeably faster then the PHP program which isn't even near completion yet.
I'm just wondering, with a program of this size, am I walking into a trap by using PHP? Once it's done and released, is there all of a sudden going to be a huge headache because the software is running slow, and taking up too many resources? Am I better off to just stick with Perl? Mainly, I'm just wondering about the server usage between the two for large programs.
I could be wrong, but it seems as though PHP is meant for smaller and more straight forward system. And PHP seems to be really good for easy user-interaction, but that part simply doesn't matter in my case. Regardless if it's PHP or Perl, the software is still going to function the exact same way. Again, could be wrong, but Perl seems like a more stable and flexible language, that is better suited for larger systems.
I know this is a pretty vague post, so please let me know if you have any questions.
Any advice would be greatly appreciated.
Matt