Lets say I have a string variable
FirstName can be null. I need to know if
FirstName exists or not.
Is it better to just use one variable:
FirstName and if
FirstName is empty assume that it doesn't exists
Create two variables:
Boolean HasFirstName and
The benefits of this is I know positively that
FirstName doesn't exist but on the down side it creates two variables.
firstName == nulland
firstName == ""