I have seen a few PHP developers shoot off about how great Django is, but after many quick glances over the years, nothing really has me sold it's "that" much better than PHP. The framework seems to be a little more independent (isolated?) than the plethora of PHP frameworks which is a bonus and bummer.
Can you offer me some real examples of where you found Django as a framework (or Python as a language) to be superior to PHP alternatives? I suppose it has a lessd adhoc object model, but does it support AOP or something interesting?
Cheers,
Alex
DJango VS
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: DJango VS
Off the top of my head: classes are dynamic (and there are metaclasses), object system supports multiple inheritance (as if you wanted to go back to dark ages), you may extend base classes (like Int, String, etc), bound methods are first-class objects themselvesalex.barylski wrote: Can you offer me some real examples of where you found Django as a framework (or Python as a language) to be superior to PHP alternatives? I suppose it has a lessd adhoc object model, but does it support AOP or something interesting?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: DJango VS
Haha I'm not a fan of the dark ages :p
Thanks for the reply, those sound like Python specific features, have you used DJango? Just trying to stay abreast of the latest techniques
Cheers,
Alex
Thanks for the reply, those sound like Python specific features, have you used DJango? Just trying to stay abreast of the latest techniques
Cheers,
Alex
Re: DJango VS
Nope, never had.alex.barylski wrote:Thanks for the reply, those sound like Python specific features, have you used DJango?
Re: DJango VS
Django is really comparable to Zend from my understanding, and the reason people prefer it to Zend is a preference to not use PHP. (eg. they just like the language more than that particular framework). The biggest 2 differences have got to be multi-threading and blocks are defined by indentation rather than curly braces, leading to a lower lines of code, which means less scrolling.
Disclaimer: I have never used either the language or framework first hand.
Disclaimer: I have never used either the language or framework first hand.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: DJango VS
I really like thatThe biggest 2 differences have got to be multi-threading and blocks are defined by indentation rather than curly braces, leading to a lower lines of code, which means less scrolling.
Languages like C are a little to flexible in stnyax for my liking, results in way to many styles.