|
|
|
|
|
by et1337
2949 days ago
|
|
I prefer a more focused version of this principle: you should organize your data in a way that makes the design apparent. The code will follow later. This principle still works with the author's example. Most of the refactoring he did boiled down to modeling the data more accurately. |
|
This was something that was stressed by my mentor, who was a mathematician turned programmer and a big fan of Niklaus Wirth. It has proven valuable to me on numerous occasions and informs design.
https://en.m.wikipedia.org/wiki/Algorithms_%2B_Data_Structur...