r/programming • • May 28 '14

"Compression-oriented programming" - Casey Muratori's blog

http://mollyrocket.com/casey/stream_0019.html
126 Upvotes

67 comments sorted by

View all comments

7

u/bstempi May 29 '14

So, how does this method of development help him with the problem he presented at the beginning of the article (modeling a payroll system)?

I can see how this helps with existing code, but how does it help with new code? How would his solution approach the payroll problem?

13

u/kankyo May 29 '14

Just start coding and it'll sort itself out. Have faith in that making a small mess will teach you something about the details of the problem. And lose faith in that planning ahead will solve anything at all.

4

u/loup-vaillant Jun 01 '14

He talked about payroll systems because that's where he have seen bad examples. He showed the solution in GUI code because that's what he worked on. Hopefully you can port the idea to other domains.

The exiting code he was starting with was done right to begin with. If he wrote the code, he would have started with something similar: no abstraction, no fuss, just do something. That's the easy part. The hard part is tearing this code apart, and compress out the commonalties as soon as you feel the obvious way stops being the simple way.