[LV2] [PATCH 1/5] add eg05-scope example plugin

David Robillard d at drobilla.net
Tue Dec 24 08:40:12 PST 2013


On Sat, 2013-12-21 at 00:40 +0100, Robin Gareus wrote:
[...]
> > One thing worth mentioning, which I added as a comment to explain for
> > others as well: there is a strong URI naming convention for things:
> > types are capitalized, other things like properties are not.  So,
> > objects with types like "ui-state" shouldn't happen.
> 
> Interesting. I never thought about capitalization. Pretty much
> everything is always lower-case here. I very much prefer underscores or
> dashes to CamelCase.

I do as well, except for types.  A different namespace is needed, which
is why "types are capitalized" is a common convention in many languages.

> > Things in the
> > distribution must adhere to this convention (which is pretty much
> > universal even outside LV2), 
> 
> makes sense.
> 
> > but you really should in your own code as well.
> 
> meh.

The distinction is quite important in this case since it is common to
have both types and properties with the 'same' name (often the type is
the range of the property), but you can not use the same URI for both.
This is why (in RDF) it's not really a personal style preference, but a
nearly universal convention.

-- 
dr





More information about the Devel mailing list