[matroska-devel] Re: tag names
steve.lhomme at free.fr
Mon Apr 28 10:20:11 CEST 2003
En réponse à Moritz Bunkus <moritz at bunkus.org>:
> Just read the following in the logs:
> Two things...
> 1) this is LONG! It's 46 characters long!? Your typical C/C++ source
> code has lines that aren't longer than 79 chars under Linux/Unix
> with an identifier this long you'll start to get problems VERY
> soon. Especially if this is a level 4/5 element - then the
> indentation I have to use already takes up about 30 or more
Sure, that's probably not a good example. When I create class, I only use the
name at the level and maybe the direct upper level, no more. It should already
give a unique name.
> Can't you think of a better naming scheme? A shorter one? Pleeeeaase? :)
> 2) Why use underscores? So far no class name contains underscores. Why
> start now? It's more consistent not to use them and just keep up
> the upper character on each word boundary scheme :)
> Lately I've criticised several of such small inconsistencies, but I
> think about other people who will be using this library. In a lot of
> cases inconsistent names/function arguments tend to confuse people. I
> just want to keep the library as consistent in itself as possible.
> Oh another thing: Steve: why do the function names in IOCallback not
> start capitalized like all the other classes' functions? :)
> (e.g. getFilePointer, setFilePointer)
Because Ingo wrote these classes not me.
Instead of fixing such things, I may rewrite the IO system because that's the
only file that may have license problems (even though Ingo didn't make any
problem so far)... For example he uses throw which I want to remove from the lib.
More information about the Matroska-devel