Quote:
Originally Posted by ScriptWorkz
I don't really feel like getting into a debate and trying to argue over how php should be, but i will say this, i don't think it's so much that php can't do what you want, or it's limited (and i do feel it's whack for you to hate php cuz your too lazy to use $ and $this, etc..), but it's more a matter of you not accepting the fact it's not LISP, or ruby, etc.. it's PHP, if you use it like it's intended, it's an EXTREMELY powerful and flexible language (especially as far as script goes), and i do wish we could use the return values straight from the function calls, ala getArray()[0], but that's hardly a reason to condemn any language.
In response to your original question tho, i doubt you'd like perl too much and as others have said, the day of perl and high traffic websites are pretty much over. I'd say stick w/ ruby (and rails), or maybe pick up python, you might like the way it is over php and it's a pretty righteous language in itself.
Just saw the question of the deployment of python. I doubt python support in web servers is all that common, if your dealing w/ john q. public on shared hosting, etc.. Your pretty much fucked buddy, get over your fear of the extra typing and embrace php, use it like it's supposed to, love it, and it loves you back 
|
It's not a matter of laziness in the sense you are describing. It just seems like there is a lot of .... "noise" ... in the language. Lots of symbols and words that don't need to be there. Clutter if you will.
Also, hate might be a bit strong. It's just not the right tool for the job. No matter how I use a screwdriver it's just not going to work as well as a hammer for putting nails in a wall. I could do it with a screwdriver, but it's not ideal. Would require more effort and take longer.
The language feels like a hack of things thrown together without much thought for their implication. When designing any language there is always a trade-off between how much effort it will be to write the parser/compiler and how much effort will be needed on the user's (coder's) end.
Also, I think it is very rare that people will be able to understand what I am talking about because very few people know how to write a parser / compiler and also very few people are familiar with non-mainstream programming techniques such as closures, lambda calculus, and functional programming.
For anyone interested, I suggest reading the book "Programming Language Pragmatics". You will have a much better understanding of the differences between the languages. Sure you can do everything in pretty much every language, but some let you do it a lot easier. Saying that's just being lazy is a poor rebuttal. Wanting to use a hammer when you're forced to use a screwdriver isn't laziness, it's because you know there's something better for that particular task.
Using it like it's intended only works if PHP is suitable to what you are intending to do. I'm not talking about simple scripts. I'm talking about enterprise level stacks and frameworks that can integrate with each other.