4 ms·
I think I can articulate what I find distasteful about approaches like TDD: it's basically a "how to program" recipe for people who have absolutely no talent. L
by kazinator 8y ago
I think I can articulate what I find distasteful about approaches like TDD: it's basically a "how to program" recipe for people who have absolutely no talent. Like "paint by numbers". It's tone-deaf toward the creative aspects of development: the Art, if you will.
TDD for music composition: add some notes which jar the ear (red test). Then massage them until they sound pleasing (green test). Make some adjustments for better flow with surrounding notes (refactor). Now repeat. Gee whiz, you're gonna be the next Mozart or Bach!
- crazygringo 8y agoI may never have disagreed more with a comment on HN than this one. TDD does absolutely nothing to hinder your creativity. All it does is help you to think about your code's behavior more thoroughly and catch inadvertent bugs. Nobody has so much talent they don't write bugs. For music composition: composers generally start out with an idea of what they want to achieve, whether at the scale of the symphony, movement, section, passage, phrase, or bar. Then they try different solutions until they satisfy the idea they want to achieve. And ensure it flows with the overall structure. And repeat. Beethoven didn't write out symphonies fully formed. He spent months and years experimenting with ideas until they satisfied what he wanted, e.g. the "test".