Personal tools
You are here: Home documentation Style Guide LukesStyle

Edit history

Edit: -1 of 1
Time: 2008-08-04 09:44:35
Note: /pd/pd/docs/style-guide/LukesStyle/edit


* If giving $0 as an argument to an abstraction, it is always first in the argument list [#]_

  - When possible, pass parent arguments in numeric order, like ![child $0 $1 $2 whale hippopotamus] etc.

Send/Receive/Value naming conventions:

* Sends and Receives are written in camelCase, with "R" appended to complementary receives (e.g. in !GUIs, $0mySlider for the send and $0mySliderR for the receive)

* When prepending $0 to a symbol, only add a "-" to separate it from another number, like ![r $0-1stSend].  Otherwise the symbol should immediately follow, like ![r $0mySend].

* When working with stereo, Left and Right pairs are written with Le and Ri appended (to distinguish them from an R denoting "receive", above)

Programming recommendations:

* To invert a toggle, use ![== 0]

* Use the loadbang of the parent of both abstractions to initialize two or more interdependent abstractions

.. [#] I think of this like emulating the "self" convention in Python

Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser