Code is Beautiful

Community Forums/Technical Discourse/Code is Beautiful

Matty(Posted 2017) [#1]
Hi folks,

I work as a programmer for a living, working in a variety of languages. To my mind there is something aesthetically pleasing about code.

It doesn't matter whether it be something simple or something complex but code in and of itself has a beauty that in my mind is almost artful in its quality.

Some languages use enclosing braces others use end-statements. Some languages use square brackets, round brackets, curly braces, or other methods.

Some IDEs are monocoloured, others are multicoloured.

But to my mind looking at neat and tidy code is of a similar nature to looking at a beautiful sunset or a photo of a forested mountainous landscape.

I've been spending a lot of time recently in the art world - going to galleries, painting pictures and sketching images...while I'm not a great artist I can imagine artworks combining the beauty of code with the beauty of the human face.


loofadawg(Posted 2017) [#2]
I read an article recently about code actually being used in art, as art. The article originally was about the BrainF*** computer lamguage. Do a bit of searching for it as it were fairly recent.


Steve Elliott(Posted 2017) [#3]

To my mind there is something aesthetically pleasing about code.



Some languages more than others :)


But to my mind looking at neat and tidy code is of a similar nature to looking at a beautiful sunset or a photo of a forested mountainous landscape.



I feel the same. Neat concise code, using efficient and elegant algorithms is a thing of beauty.


Xerra(Posted 2017) [#4]
I have OCD about neat, tidy code, to an extent. I hate stuff that's obviously hacked and messy, even if it works. Nothing like a few neat functions folded along with a simple loop for the program execution - all neatly coloured in a decent IDE.

Better than porn... Maybe :-)


RemiD(Posted 2017) [#5]
it depends whose code you are talking about, some code is really messy and lacks clarity and consistency...


Steve Elliott(Posted 2017) [#6]
That's why we all said neat tidy code RemiD.


TomToad(Posted 2017) [#7]
check out Piet especially the sample programs.


RustyKristi(Posted 2017) [#8]
Code as actual code, I don't see it.. clean yes. Art is inspired from nature. Code/language is designed by humans.

If you're talking about art product by code, then yes. latest example is gitfiti.

https://github.com/gelstudios/gitfiti

and that's messing and abusing commits to make simple art. ;-)




Steve Elliott(Posted 2017) [#9]
I certainly see it, I have a book called "The Art of C"...The literal aspect of art is ridiculous.

But some languages get too wordy, too over complicated - which leads to chaos when let loose with chaotic programmers.