DJango VS

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

DJango VS

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: DJango VS

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: DJango VS

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: DJango VS

Post by Weirdan »

alex.barylski wrote:Thanks for the reply, those sound like Python specific features, have you used DJango?
Nope, never had.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: DJango VS

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: DJango VS

Post 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.
Post Reply