Write code top-down

Uncategorized

Write code top-down

URL: https://www.teamten.com/lawrence/programming/write-code-top-down.html?utm_source=abyteofcodingnewsletter&utm_medium=newsletter&utm_campaign=a-byte-of-coding-issue-361 Type: link Domain: teamten.com

Notes: Nice article but I disagree with the conclusion. I have found that you need to combine the two and go back and forth. There is no single way. By the way, notice that if you believe in TDD, that approach generally starts bottom up (UNITs are at the bottom.) so whatever design comes out of that process would be bottom up.

Highlights: - {'text': 'The correct way to architect and write a program is top-down. This is not a matter of taste or preference. Bottom-up design is fundamentally busted and you shouldn’t use it. Every system I’ve been involved in that used top-down succeeded and those that used bottom-up failed. Edsger Dijkstra wrote an entire monologue about this. I’ve never seen an architect advocate bottom-up.', 'note': '', 'color': 'yellow', 'created': '2024-03-04T12:02:57.329Z', 'lastUpdate': '2024-03-04T12:06:36.199Z', 'creatorRef': 624427, '_id': '65e5b94cba834f0e006477a1'}