3 ms·
> I don't think 'style' should be the deciding factor in something like this unless the difference in style translates in to 'readable' versus 'unreadable' Not
by jbert 16y ago
> I don't think 'style' should be the deciding factor in something like this unless the difference in style translates in to 'readable' versus 'unreadable'
Not a deciding factor, but there's a lot of subtle info in a whole code sample.
When asking someone for some OO code, I sometimes see OK-but-a-bit-naive code, which includes variable names like "theObject".
That suggests to me that the most important characteristic of this entity in the coder's head is that it is an object - i.e. that they're not very familiar with OO code.
Basically, information like the choice of variables names provides a window on the mental model the coder has of the problem. And that's useful.
- jacquesm 16y agoIf I read the first question correctly it asks if choosing a 'for' over a 'while' would be a reason to pick one programmer over another and I don't think that should be the case, it's a stylistic thing but one that is probably not very important. I agree with you on the naming issue, but the funny thing is that that sort of information is exactly what was removed in order to make the analysis possible.
- VBprogrammer 16y ago"myObject" is one of my pet peeves. I've seen and its relatives "myString" and "myNumber" in far too many published programming texts. In fact, its one of the many reasons I don't like vb.net, it actually has its own my name space!
- tetha 16y agoheh, I just had to think of some of my adventures in metaprogramming in python. Eventually, I ended up with variable names like "decoraterSelf", "mySelf" and "decoratedSelf", when I had stateful class decorators. One of the few instances where I was glad to see a myFrobble-Variable in code :)