writing good code is like writing a good poem. what do you guys think?
writing good code is like writing a good poem. what do you guys think?
I think the initial inspiration that leads to good code is partially an artistic process, but the actual creation of code doesn't have to be, and in most cases, should not be, since that's not the point of writing code.
Unless you're just fooling around on your own, the purpose of a computer program is to accomplish a task, to do so efficiently and according to whatever requirements exist, and to do so in a way that the code can be understood and modified by somebody other than the original author. The ideas underlying the code may be beautiful, but the priority for the code itself is clarity and robustness, not beauty.
Good code is often beautiful, but that's about it.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
Following on with brewbuck, if you ignore modern poetry and claim that poetry is the expression of a beautiful and creative idea while following pedantic syntactic rules, then maybe you're on to something.
I would think the closest you get to actual creative code would be the obfuscated code contests.
C and its quirks make for good poetry fodder. You don't get this with Java