Page 1 of 1

DJango VS

Posted: Sat Jan 08, 2011 4:24 pm
by alex.barylski
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

Re: DJango VS

Posted: Sun Jan 09, 2011 11:32 am
by Weirdan
alex.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?
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 themselves

Re: DJango VS

Posted: Sun Jan 09, 2011 11:56 am
by alex.barylski
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

Re: DJango VS

Posted: Sun Jan 09, 2011 12:06 pm
by Weirdan
alex.barylski wrote:Thanks for the reply, those sound like Python specific features, have you used DJango?
Nope, never had.

Re: DJango VS

Posted: Sun Jan 09, 2011 11:29 pm
by josh
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.

Re: DJango VS

Posted: Wed Jan 12, 2011 5:10 pm
by alex.barylski
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.
I really like that :)

Languages like C are a little to flexible in stnyax for my liking, results in way to many styles.