| ▲ | TYPE_FASTER 6 hours ago | |||||||
> Rule 5. Data dominates. If you've chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming. If I have learned one thing in my 30-40 years spent writing code, it is this. | ||||||||
| ▲ | seanalltogether 5 hours ago | parent [-] | |||||||
I agree. The biggest lesson I try to drive home to newer programmers that join my projects is that its always best to transform the data into the structure you need at the very end of the chain, not at the beginning or middle. Keep the data in it's purest form and then transform it right before displaying it to the user, or right before providing it in the final api for others to consume. You never know how requirements are going to change over the next 5 years, and pure structures are always the most flexible to work with. | ||||||||
| ||||||||