4 ms·
Art is subjective. Structure is forever. The first statement is indeed nice and elegant. A small work of art from a coding perspective. However, maintaining in
by mrcold 12y ago
Art is subjective. Structure is forever.
The first statement is indeed nice and elegant. A small work of art from a coding perspective. However, maintaining in the future will be a pain in the ass. Because art is the eye of the beholder. And future beholders won't appreciate it as much.
On the other hand, the second statement is structured. You know exactly with what you're dealing with. It's ugly. But it's a building block. Anybody can understand it and use it immediately.
So tell your colleague to make a screenshot of the first one and frame it on his wall. Then use the second statement in production. Code must always be generic. Personalization only leads to technical debt.