News for hackers. Stuff that matters.
Re:Programming is boring art by gorpovitch on Saturday May 30, 2020 @06:02PM (#23365157)
When I hear people talking about programming as an art, I usually assume that the decisions they make about their code tend to be about how elegant and beautiful it is, not efficient and valuable. It's fun and satisfying to write elegant code, but your company hired you to produce value, not art.
Re:Programming is boring art by saagarjha on Saturday May 30, 2020 @06:06PM (#23365195)
Elegant and beautiful things are often also efficient and valuable.
Re:Programming is boring art by combatentropy on Saturday May 30, 2020 @10:41PM (#23366713)
Re:Programming is boring art by MaxBarraclough on Sunday May 31, 2020 @06:57AM (#23368687)
> what does Hardy mean when he says there is no permanent place for ugly mathematics? He means the same thing Kelly Johnson did: if something is ugly, it can't be the best solution. There must be a better one, and eventually someone will discover it.

I don't think Hardy's take really stands up today. There is at least one mathematical fact which has been proven through exhaustive computerised tests, and which no-one has (yet) been able to prove without using computers.

Ugly? I suppose so. Is there a 'place for it'? I don't see why not.

https://en.wikipedia.org/wiki/Four_color_theorem#Proof_by_co...

Re:Programming is boring art by tomkwong on Saturday May 30, 2020 @06:16PM (#23365280)
Right, there is also difference between short-term value and long-term value.
Re:Programming is boring art by MaxBarraclough on Sunday May 31, 2020 @06:52AM (#23368662)
> how elegant and beautiful it is, not efficient and valuable

Perhaps a nitpick, but 'correct' deserves a mention somewhere.

As others have said, elegance in code should generally align with efficiency and correctness.