Should I use an easy readable code like this
if (var.isServicePGM() || var.isStandardPGM())
{
//Much code
if (var.isServicePGM())
{
//Some code
}
else if (var.isStandardPGM())
{
//Some code
}
}
or should i use an faster code like this
if (var.isServicePGM() || var.isStandardPGM())
{
//Much code
if (var.isServicePGM())
{
//Some code
}
else
{
//Some code
}
}
//Much codeis an indication that your code isn't readable, regardless of the version you use and addingif (var.isStandardPGM())to theelsewon't fix that. Yes, make code readable, but first you need to learn to write readable code. – David Arno Sep 28 '16 at 08:56