jcardana
Old to VB6, New to VB.NET
I've been watching videos about cleaning up my code.
I'm using a Boolean to determine if another variable represents a file from the Computer or the USB drive.
I initially named it "CompOrUSB", with False being Computer and True being USB. My thought process is False is first and True is second (0, 1)
I 'm renaming it to "isCompOrUSB" so it's obvious that it's a boolean.
But... everyone always states "True or False" when talking about boolean situations.
So, I'm asking you... How do you interpret the variable "isCompOrUSB"? To you, which situation (Computer or USB) would TRUE represent?
Or, do you have a better method?
Thanks for your time,
Joe
I'm using a Boolean to determine if another variable represents a file from the Computer or the USB drive.
I initially named it "CompOrUSB", with False being Computer and True being USB. My thought process is False is first and True is second (0, 1)
I 'm renaming it to "isCompOrUSB" so it's obvious that it's a boolean.
But... everyone always states "True or False" when talking about boolean situations.
So, I'm asking you... How do you interpret the variable "isCompOrUSB"? To you, which situation (Computer or USB) would TRUE represent?
Or, do you have a better method?
Thanks for your time,
Joe