On Monday 27 July 2009 02:12:07 Charlie DeTar wrote:
> Hi,
>
> I'm writing a reusable Django app that interfaces with a standalone
> javascript library, which I hope eventually to submit for inclusion
> in Django.  I've run into a conundrum: the javascript library uses
> mixed case naming (likeThis), where Django recommends using PEP 8
> naming (like_this).

PEP 8 is really about writing Python, not any other language.  While 
javascript is close enough to Python in syntax that some conventions 
can be carried over, it's a different language and I don't think it 
should be bound by the same rules.  There is already plenty of 
javascript code in Django that uses mixed case, so I'd go for option 
1.

Luke

-- 
"I asked mom if I was a gifted child. She said they certainly 
wouldn't have paid for me." (Calvin and Hobbes)

Luke Plant || http://lukeplant.me.uk/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to