*grump* (Reply) [entries|reading|network|archive]
simont

[ userinfo | dreamwidth userinfo ]
[ archive | journal archive ]

[personal profile] simont Thu 2007-09-06 17:42
*grump*

As of this week I find myself maintaining code written by a C++ programmer in the Strict Orthodox style. This means that the program is divided rigidly into classes, even the parts that are entirely procedural in function; that there is a strict convention of one class to a source file even when this means separating fragments of code which are doing a semantically related job and would benefit from being near each other; and, in general, that classes and templates and namespaces and long multi-word names are used in a manner that suggests the author specifically wanted to avoid writing

    do_foo(arg1, arg2);

if he could possibly instead write

    FooDoingClass<inexplicableTemplateParameter>::getInstance()->
doFoo(RandomNamespace::arg, RandomOtherNamespace::arg2);

only, for added annoyance, without the line break in the middle.

Link Read Comments
Reply:
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting