-
Notifications
You must be signed in to change notification settings - Fork 2
PRO3D Coding Guidelines
try not to go beyond horizontal character 115
open namespaces only on top of file, not in module scope
sort namespaces according to their general applicability e.g. to avoid wrong namespace hiding. suggested sequence/grouping
- .net system
- aardvark base
- aardvark rendering
- aardvark media
- project specific
- specialized 3rd party
limit function parameters to the necessary minimum in number and size e.g. don’t pass the whole model or scene if you function only needs 3 members
always put thought into the sequence of parameters, especially with respect to piping
avoid nested functions, they are not really pure because they get hidden parameters via closures
make explicit, top level action types, as for instance SurfacePropertiesAction instead of SurfaceProperties.Action
always write [iconName] and "icon" next to each other so it can be searched easily
Wrong: clazz "cube middle aligned icon"
Right: clazz "middle aligned cube icon"
use ~~ insteal of AVal.constant, needs open of FSharp.Data.Adaptive.Operators