What is the most elegant line of code you’ve seen?
Surprisingly, a lot of answers have a very weird definition of “elegant”. But still there are quite a few ones that are elegant indeed.
What is the most elegant line of code you’ve seen?
Surprisingly, a lot of answers have a very weird definition of “elegant”. But still there are quite a few ones that are elegant indeed.
http://en.wikipedia.org/wiki/XOR_swap_algorithm by far ;)
…hmmm not a very popular post then! :(
:P
Theo Filippidis liked this on Facebook.
Loved this one … Especially since I watched DMB yesterday ;-)
Russian Roulette in BASH
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
Vladimir Ivashchenko liked this on Facebook.