I see you can download 6 in the snapshots...but when will they say "use it for production"
Anyone have a educated guess or inside connections?
Moderator: General Moderators
Code: Select all
if($a==$b){ echo 'Hello world'; }Code: Select all
if($a == $b){
echo 'Hello world';
}
I used to think that, but honestly, I'm starting to think that "the best OO model" is kind of a pipe dream. PHP's oo model is not as dynamic and doesn't have as many cool features as python, but I think it FITS its purpose extremely well. PHP was originally written as a way to do a little bit of pre-processing before outputting a WEB page. A very modest goal which (and I know I'm way oversimplifying) is still all it really does. Python was written as an all-purpose language. One of many many things people have used it for is to write web applications.PCSpectra wrote:As I understand it Python has a better OO model
I hated it when I first learned it. It grows on you, trust me.PCSpectra wrote:although just looking at some examples I dislike a lot of their syntax.
You just need an editor that supports python. I use Komodo Edit.PCSpectra wrote:It doesn't appear to use {} braces for nesting. While not strictly bad practice what it does do is prevent my IDE from collapsing entire blocks of code to focus strictly on the problem at hand. Source code folding essentially, very handy feature.
Yea, I have no argument for that one. That drives me nutsPCSpectra wrote:I also dislike the 'elif' what the hell is that?
Bingo. That was the intention. It was written that way to make people write sexy code. Every python file looks the same. It's wonderful.PCSpectra wrote:I look at the code and wonder if perhaps it uses whitespace as a way of "bracing" code implicitly through tabs, etc...similar to some Linux config files (Postifx?).
While some might argue that is bad practice...in one way I would see that as a blessing in disguise as it would certainly stop people from writing code the way they want too...
When you print?PCSpectra wrote:1. Long lines always buckle when I print
Like I said, you can look at any python code, written by anybody and they will look exactly the same.PCSpectra wrote:I for one prefer consistency over anything else.
Depends...in all honesty each new release will try and depracate bad practices like those nasty $HTTP super globals...I presume not too much if anything...
Only if it's something a little unusual. Killing the old features that major open source apps use (OSCommerce, various forums, Wordpress, etc) will just stop ISPs upgrading because they'd end up killing their clients sites. That would definitely be bad.PCSpectra wrote:While it kills some backwards compatibility it's probably best over all.