Hacker News new | past | comments | ask | show | jobs | submit login
Code Reduction or Spartan Programming (willcode4beer.com)
13 points by edw519 on Dec 10, 2008 | hide | past | favorite | 10 comments



I thought it was cool that the author mentioned Hemingway. He linked through to an article, "Ernest Hemingway’s Top 5 Tips for Writing Well" (http://www.copyblogger.com/ernest-hemingway-top-5-tips-for-w...), which contained this little gem:

"Hemingway was famous for a terse minimalist style of writing that dispensed with flowery adjectives and got straight to the point. In short, Hemingway wrote with simple genius.

"Perhaps his finest demonstration of short sentence prowess was when he was challenged to tell an entire story in only 6 words:

"For sale: baby shoes, never used."

Every now and then you come across code that's as good as that, and when you do it's a wonder to behold.


I think it was "For sale: baby shoes, never worn."


Shamelessly plugging a little site I put together a couple months ago in hopes of inspiring more stories of this form (inspired by a Wired article): http://sixisenough.com


Still heartbreaking every time I hear it.


language style matters too

from my experiences, code-length continuum is between FP and OOP (imagine haiku vs bible)


Another programmer blog by someone who hasn't heard of Don't Repeat Yourself yet.

A lot of this stuff just boils down to Don't Repeat Yourself. If all substantial ideas in your codebase are only expressed once, then changing your mind about any idea in your system is easy.

http://en.wikipedia.org/wiki/Don't_repeat_yourself


It really is common sense stuff, but the longer I live the more I learn how uncommon 'common sense' really is.


It's common sense applied a few steps farther. In the short term, cut & paste can get your job done fast. But after the 12th cut & paste followed by another change in requirements, it starts to look not so good.


Even there is a hacker comunity based in these principles: http://www.suckless.org/common/index.html (KISS with steroids)


i'm the happy user of suckless' dwm and dmenu :D




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: