For anyone that is passionate about software development, I'm of the opinion that you should always strive to write beautiful code; however, is there a clear definition of what beautiful code really is?
On one hand, I see elegant code being something that's easy to read while simultaneously solving the problem at hand in the most efficient way possible. It seems like readable code often comes at the expense of, for example, creating several new variables in order to represent the data with which you're working. Depending on your platform (or depending on how picky you are), creating these variables could be considered to be a performance hit.
On the other hand, this brings up another perspective that I've often seen that defines beautiful code as code that succinctly and efficiently solves the given problem. It can be argued, though, that succinct code may come at the sake of readability and thus ultimately detracts from the attractiveness of the code.
I personally want to be able to write expressive, effective, and elegant code, but I often find myself debating if adding a couple of more variables to improve the readability of the code three months later really does improve (or pollute) the code.