[Windmill-dev] Test naming conventions / var naming conventions

Mikeal Rogers mikeal at osafoundation.org
Tue Dec 11 15:34:09 PST 2007


> On a related note, it would be nice to clean up the Windmill source  
> code to replace underscore varable names with standard JS-style  
> camel case. It's certainly not critical, but makes our code look  
> better to the outside world.

The Python side is all using the underscore convention except in the  
case of class names. The only place you should be seeing underscores  
on the js side would be callbacks from the RPC layer that interfaces  
with Python.

The Python convention isn't changing, and although I don't work in the  
js code, i would imagine seeing the naming difference for RPC calls  
and callbacks differ from the other conventions would be useful.

The windmill API uses camel case -- as it's implemented in javascript  
and this seems to be a universally accepted naming convention across  
all languages which we hope some day will implement windmill authoring  
libraries. I've found this particularly helpful on my end because I  
can easily call out methods that part of the windmill API as they  
differ from anything else in my Python code.

-Mikeal


More information about the Windmill-dev mailing list