Fixed: Am I immoral for using a variable name that differs from its type only by case? #programming #development #solution
Fixed: Am I immoral for using a variable name that differs from its type only by case? #programming #development #solution
Am I immoral for using a variable name that differs from its type only by case?
For instance, take this piece of code:
var person = new Person();
or for you Pythonistas:
person = Person()
I’m told constantly how bad this is, but have yet to see an example of the immorality of these two lines of code. To me, person is a Person and trying to give it another name is a waste of time. I suppose in…
View On WordPress
















