Do we write code for clarity, or to show off how much we know about a language?
Oh, this always bugs me. No, advanced or more complex code isn't "showing off". It's brevity. It's using the language's features. There's wide gaps between "write so simple everyone understands it", "write concise code that leverages the language's tools to the fullest" and "lolcodegolf", and we should certainly aiming for a solid balance of these.
(In fact, sometimes code golf is actually the right answer, but that's a bit beside the point...)
I agree with you, a 100%. I do believe we should use the language features whenever appropriate. My concern is more with those who write over engineered code.
Oh, this always bugs me. No, advanced or more complex code isn't "showing off". It's brevity. It's using the language's features. There's wide gaps between "write so simple everyone understands it", "write concise code that leverages the language's tools to the fullest" and "lolcodegolf", and we should certainly aiming for a solid balance of these.
(In fact, sometimes code golf is actually the right answer, but that's a bit beside the point...)
I agree with you, a 100%. I do believe we should use the language features whenever appropriate. My concern is more with those who write over engineered code.
It often performs better too