NextBurgh, PA          @VannevarB      About      Pittsburgh Murals
October 11, 2009

Elegent Code And Implementation: The Baby Rocker

Linux Baby Rocker



There's elegant code, and there's elegant implementation, and sometimes you get to see them together in the same project.

Here's a bit of elegant code, just 5 lines if you remove the explanatory comments:
while [1 = 1]
   do
        #eject cdrom
        eject

        #pull cdrom tray back in
        eject -t
   done


Here's an abundantly elegant implementation:

0 comments:

Post a Comment

Comments and Feedback? Love that stuff. Please leave your thoughts in the box below--