A
Armen Tsirunyan
Hello,
if(true == someBool)
{
}
if(false == someBool)
{
}
bool someBool = (true == someBool1 || true == someBool2 && false ==
someBool3) ? false : true
{
}
One of my colleagues keeps writing such code. I didn't exaggerate a
bit. All three examples are taken from his code. He won't accept that
this is horrible style. But is this really a matter of taste or style?
I mean I want to puke every time I see such code. Am I biased? Can
such style be justified by any explanation, like making it more
readable (???!) or that prevents some errors?
Thank you for your opinions, I am going to show this thread to him
if(true == someBool)
{
}
if(false == someBool)
{
}
bool someBool = (true == someBool1 || true == someBool2 && false ==
someBool3) ? false : true
{
}
One of my colleagues keeps writing such code. I didn't exaggerate a
bit. All three examples are taken from his code. He won't accept that
this is horrible style. But is this really a matter of taste or style?
I mean I want to puke every time I see such code. Am I biased? Can
such style be justified by any explanation, like making it more
readable (???!) or that prevents some errors?
Thank you for your opinions, I am going to show this thread to him