Help - Search - Members - Calendar
Full Version: component naming conventions
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Development - (fb2k)
eyebex
a forum search didn't bring anything up on this ... are there any component file naming conventions documented, i.e. suggested prefixes for certain categories? i'm currently coding a native plug-in to interface with CD Art Display (CAD for short) to overcome some limitations when using foobar with foo_winamp_spam. currently, i'm using foo_info_cad as a name, but it does more than just providing information to CAD (remote control is also possible, as an example), so i was thinking about "foo_iface_cad" (for "interface"), but i've never see a foobar component using such a prefix. would that name be okay?
foosion
The following prefixes are used by convention:
  • foo_dsp_: DSP components
  • foo_input_: audio input/decoder components
  • foo_out_: audio output components
  • foo_ui_: user interface modules
  • foo_uie_: Columns UI extensions
I think it is more important to use a descriptive name than worry about conventions in this case. When I read "foo_iface_cad" I associate that with "interface" and "Computer-Aided Design", therefore "foo_cdartdisplay" - or "foo_cd_art_display" if you like words separated by underscores - would be a much better name.
eyebex
Thanks, I'll go for "foo_cdartdisplay".
Spirit_of_the_ocean
QUOTE(eyebex @ Aug 30 2007, 17:35) *

Thanks, I'll go for "foo_cdartdisplay".

How about the devellopment status?
eyebex
It's feature complete, just fixing one or two remaining bugs before public beta testing, which will be announced in the CAD forum. Please monitor there for further info.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.