I think the other way to write code with the !string.IsNullOrEmpty(yourVar) is much clearer and easier to read.
Good code doesn't always mean the same thing, and I think writing "better" code also means having higher readability for everyone, from junior devs up.
I agree with everything, except this:
I think the other way to write code with the
!string.IsNullOrEmpty(yourVar)
is much clearer and easier to read.Good code doesn't always mean the same thing, and I think writing "better" code also means having higher readability for everyone, from junior devs up.
IMHO, of course :)
you know what? For me it's more easy to read this line of code.
At the beginning I agreed with you... but now I prefer the "new" version.
and of course... everyone can have different opinions