My best/worst variable name ever
-
I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?
Dale Barnard wrote:
I should either be promoted or fired for that. I'm not sure which.
Promoted to a management position, where you can't do any more damage. :-D
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
I hate camelCase. ... and then the fight started.
Software Zen:
delete this;
Gary Wheeler wrote:
I hate camelCase.
And somehow I read that as
I hate camelToe
. It's Friday alright.Jeremy Falcon
-
Gary Wheeler wrote:
I hate camelCase.
And somehow I read that as
I hate camelToe
. It's Friday alright.Jeremy Falcon
In an odd way that works too, as I have arthritis in my big toes from 20 years of running, and that joint no longer bends beyond about 10°.
Software Zen:
delete this;
-
I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?
ThatIsOffensiveInTheExtreme
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
I hate camelCase. ... and then the fight started.
Software Zen:
delete this;
Seriously? Why? What do you do instead?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Nah. It'll just accuse me of going behind its back.
Software Zen:
delete this;
Oooh, dirty.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Gary Wheeler wrote:
I hate camelCase.
And somehow I read that as
I hate camelToe
. It's Friday alright.Jeremy Falcon
That's ... ... sad & lonely.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Seriously? Why? What do you do instead?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
I use
PascalCase
for global scope,lower_case
for local scope,private
andprotected
members prefixed by '_
'. Yes, StyleCop throws a hissy fit over my code. I don't care.camelCase
doesn't provide enough visual differentiation fromPascalCase
for me and my middle-aged visual infirmities.Software Zen:
delete this;
-
I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?
My biggest complaint about the name is that you spend over half of it replicating the type (
listOfThreeListsOfByteArray
), which smacks of Hungarian notation (makes the sign of the cross in your direction). TheRowThenColumn
part implies a matrix of some kind, and theScaledColorChannel
sounds like it actually describes the values in the matrix. Why notScaledColorChannelMatrix
and call it a day?Software Zen:
delete this;
-
My biggest complaint about the name is that you spend over half of it replicating the type (
listOfThreeListsOfByteArray
), which smacks of Hungarian notation (makes the sign of the cross in your direction). TheRowThenColumn
part implies a matrix of some kind, and theScaledColorChannel
sounds like it actually describes the values in the matrix. Why notScaledColorChannelMatrix
and call it a day?Software Zen:
delete this;
var listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel = new List<byte[,]>[3];
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[0] = new List<byte[,]>();
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[1] = new List<byte[,]>();
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[2] = new List<byte[,]>(); -
var listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel = new List<byte[,]>[3];
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[0] = new List<byte[,]>();
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[1] = new List<byte[,]>();
listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[2] = new List<byte[,]>();var ScaledColorChannelMatrixListTable = new List<byte[,]>[3];
for (int i = 0; i < ScaledColorChannelMatrixListTable.Length; i++)
{
ScaledColorChannelMatrixListTable[i] = new List<byte[,]>();
}do I hear banjos in the background?
Software Zen:
delete this;
-
I hate camelCase. ... and then the fight started.
Software Zen:
delete this;
I suppose camelCase is better than camelToe...
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Seriously? Why? What do you do instead?
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
I use COWCase a lot.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Dale Barnard wrote:
I should either be promoted or fired for that. I'm not sure which.
Promoted to a management position, where you can't do any more damage. :-D
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Can we please swap management? Our management is seriously destructive.
Wrong is evil and must be defeated. - Jeff Ello
-
That's ... ... sad & lonely.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
That assumption says more about you than me.
Jeremy Falcon
-
I use
PascalCase
for global scope,lower_case
for local scope,private
andprotected
members prefixed by '_
'. Yes, StyleCop throws a hissy fit over my code. I don't care.camelCase
doesn't provide enough visual differentiation fromPascalCase
for me and my middle-aged visual infirmities.Software Zen:
delete this;
Gary Wheeler wrote:
StyleCop throws a hissy fit
That's how you know you're doing things right. :thumbsup:
-
I use COWCase a lot.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Sure that's not PARTONcase? :cool:
-
I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?
Dale Barnard wrote:
I should either be promoted or fired for that. I'm not sure which.
You are clearly management material. Promote/fire yourself out of programming and as a manager, mandate that all variables should now be complete sentences with optional prepositional phrases. In your spare time, write a Lint utility that verifies compliance. Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
var ScaledColorChannelMatrixListTable = new List<byte[,]>[3];
for (int i = 0; i < ScaledColorChannelMatrixListTable.Length; i++)
{
ScaledColorChannelMatrixListTable[i] = new List<byte[,]>();
}do I hear banjos in the background?
Software Zen:
delete this;
List[] ScaledColorChannelMatrixListTable = {
new List(), new List(), new List()
}; -
I use COWCase a lot.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013That is very MOOOOOving.
Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun