Thread: writing good code is like writing an artistic expression

  1. #1
    Banned
    Join Date
    May 2009
    Posts
    37

    writing good code is like writing an artistic expression

    writing good code is like writing a good poem. what do you guys think?

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by renzokuken01 View Post
    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);
    //}

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by renzokuken01 View Post
    writing good code is like writing a good poem. what do you guys think?
    I think that didn't rhyme.


    Quzah.
    Hope is the first step on the road to disappointment.

  4. #4
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    No, it isn't
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    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.

  6. #6
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Posts
    639
    C and its quirks make for good poetry fodder. You don't get this with Java

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing dhcp client code using sockets on Linux
    By dash in forum Linux Programming
    Replies: 3
    Last Post: 08-04-2009, 10:20 AM
  2. recursion error
    By cchallenged in forum C Programming
    Replies: 2
    Last Post: 12-18-2006, 09:15 AM
  3. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  4. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM
  5. does anyone have good code????
    By K&J in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2001, 10:32 AM