News for hackers. Stuff that matters.
Re:Do We Worship Complexity? by hinkley on Wednesday October 17, 2018 @12:13PM (#18240504)
Over the years I’ve heard some good advice on this sport of thing attributed to Bertrand Meyer. I keep meaning to track down citations.

There are conversational styles you can apply to code that make it simple to test (or in his case, make coherent assertions about) that still keep the methods small but cleave it in a way that you can still track in your working memory.

It’s a style I aspire to, and put a great deal of time and energy into. But reading my old code I can say it’s harder than it sounds and it doesn't sound that easy to begin with.

There are no comments on this comment yet.