What are some of the craziest design standards you have seen? How about these:
- All property names must be palindroms.
- Every block of code must in Haiku.
- Use L33T identifiers for local variables.
- Document with ASCII Art to illustrate program flow.
Not that anyone actually follows these (at least I hope not), but after reviewing this list you won't find your standards (Hungarian notation comes to mind) as crazy.
3 comments:
All local verables start with 'l', controls start with 'x', all classes start with 'T', ...
Wait, I sort of like some of those.
I've also had some crazy Hungarian rules thrust appon me: all prefixes are (min) 3 characters. 'str' for string, 'int' for integer, 'obj' for object, 'cls' for class, 'mod' for module -- have you figured the language out yet: VB5.
But there is something to be said for being instantly able to tell the difference between an object, a type, or a function instantly, without having to ask the IDE.
I think making the block of code a haiku would be fun, sure it wouldn't serve a purpose, but it would be fun.... we're still allowed to do that right?
Chris, I agree sometimes it's nice to know the type without asking an IDE for those times when [gasp] you're not using one but most times it can be obvious.
bob.work();
Obviously a method of an object
dillyDallyLonger();
a non object method, if it's part of the class I'm working in then shouldn't it be this.* or self.*?
count++;
It might be an int, it might be a long, but do I care? Most of the time I don't/haven't
Please just don't start all your functions with 'fn'... please
Post a Comment