4 ms·
Sorry, but that last line sentence has really touched a nerve, maybe I'm being trolled, but here comes my 2 cents anyway. I personally use PHP all the time, I
by Alan01252 14y ago
Sorry, but that last line sentence has really touched a nerve, maybe I'm being trolled, but here comes my 2 cents anyway.
I personally use PHP all the time, I love it. I can code large, maintainable and secure applications with far more speed than any other language I've ever used ( and trust me I've used a lot ). It's my language of choice when I'm building web applications.
Not only is it available everywhere! but it's been established for long enough that there are a wide range of top quality frameworks and libraries written for it. Oh and these have been written by developers who I'm certain are much smarter than us both.
And why the hell is mobile development any harder than web development. It's just code, not arcane magic. Trust me I've seen, and will continue to see, just as much badly written/badly performing code for mobile applications as I do for web based ones. Just because you're using Objective C / Java as the tool of choice doesn't make you any better or smarter a developer.
If there is a mobile offering coming up based around PHP, I'm looking forward to trying it. If it allows me the same benefits as the language does on the web then I'll be using it, regardless of how many people think that makes me "not smart".
- Floopsy 14y agoVery well-written. I agree with you 100%. The PHP bashing has gotten really old. I too am looking forward to what this new mobile PHP project will entail.
- mylittlepony 14y agoYou are indeed being trolled. Through the years I have learned to avoid PHP haters all along. While they are wasting their time trying to prove they are better, you are probably getting things done or just enjoying your day because you have already finished.
- FuzzyDunlop 14y agoThe reality of it is that it doesn't matter. People have their reasons for making their particular choices, neither of which are good or bad, or are worthy of avoiding or seeking out. I disliked PHP enough to move my career a different way; so fucking what? As such, you're basically wasting your own time trying to prove PHP haters are worse off.
- danso 14y agoI'd love to see you write a detailed case study defense of PhP...even though I realize it's kind of a raw deal to be expected to mount a formal defense for your own profession, especially given how much it gets trolled. But from the non-PHP fan's perspective, PHP persists because it has a strong foothold, not because it is clearly a more secure and enjoyable language. It doesn't help that PHP's ubiquity has attracted its fair share of bad programmers. Maybe not more than other languages, but the human mind, when lacking available data, will make judgments based on absolute count (I.e. I know more terrible PhP programmers than I know terrible Go coders) rather than by ratio. I started with PHP and did not enjoy the syntax, though I doubt I would be in web dev had PHP's stack on Dreamhost made it easy to make my first interactive apps. But I could never say that its conventions are conducive to good coding habits...but I have no place to judge, as I was a bad coder when I learned PhP and I may have been just as bad were I to start out with Python.
- maratd 14y ago> PHP persists because it has a strong foothold, not because it is clearly a more secure and enjoyable language. It is still immensely satisfying to write in any text editor <?php echo (2 + 2); ?> and then see 4 on your screen. And then to wrap that in HTML and really get going. No compiling, no libraries to include, that's it. After writing code in Java and C (12 years ago), that is a breath of fresh air, and that's what got developers of my generation interested in PHP. Do you have more options today? Absolutely. Python and Ruby were extremely obscure back then. No longer. You have Node.JS and of course, good templating libraries for all of the above. But PHP is a templating language at heart and it's still the easiest to embed into HTML and see immediate results. That's pure joy. Funny part? None of my production PHP code touches HTML or any client side stuff in any way. It just pumps data from the database to the client-side JavaScript. And it's still immensely enjoyable. Why? Because PHP is aimed at the lowest common denominator. It has to work for that dude in India and it has to work for the 50 year old guy who just decided to switch careers. Which means the base language has to be dead simple. And it is. It's pretty much C with a few web-centric functions thrown in. That simplicity is enjoyable.
- modarts 14y ago
- jamesbritt 14y agoIf it allows me the same benefits as the language does on the web then I'll be using it, regardless of how many people think that makes me "not smart". That was part of the OP's point. "PHP's killer app is the LAMP stack and $5 hosting." That option makes PHP useful in many cases where arguably better languages would not be smart choice. But, without that same value in the mobile space, what's the case for using PHP over, say, Objective C or JavaScript or Ruby or Lua, other than not knowing Objective C or JavaScript or Ruby or Lua?
- Joeri 14y agoLet's go over those: - Objective C: not a competitor as it doesn't do multi-platform, which I assume will be PHP's main angle. - Javascript: weird OO model (compared to PHP's traditional OO), much smaller set of API's, typically tied to a web UI (PHP would probably wrap around native UI API's). Along with C# I consider this the strongest contender, but I can see why people would prefer PHP. - Ruby, lua: does anyone actually use those on mobile? I'm sure they have their qualities, but those are really niche languages (on mobile). To me these are not serious competitors.
- ufo 14y agogiven that the whole point of Lua is that its easy to embed and run everywhere, I can guarantee that someone is using it on mobile somewhere.
- cpeterso 14y agoLua is very popular with iOS game developers.
- wreckimnaked 14y agoLua is very popular with most game developers.
- jamesbritt 14y agoThere is a Lua mobile game framework as well (which is why I popped Lua into that ad hoc list).
- bduerst 14y ago>there are a wide range of top quality frameworks and libraries written for it Exactly. It makes it a great first language too, since it's interpreted right off the bat for a LAMP stack.