Return Statement Evolution

Return Statement Evolution
code-optimization-memes, boolean-logic-memes, ternary-operator-memes, programming-humor-memes, code-refactoring-memes | ProgrammerHumor.io

The evolution of every developer's coding style! At first, you write verbose conditional blocks like some kind of coding newbie. Then one day, you discover the ternary operator and suddenly you're wearing sunglasses because you're just that cool. Why waste 6 lines checking if a == 0 when you can flex on everyone with return (a == 0) ? true : false;? Of course, the truly enlightened would just write return a == 0; but that wouldn't make for such a sassy Pikachu meme, would it?

More Like This