2 ms·
Somewhat related quote: Linus Torvalds: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." IMO prop
by vbezhenar 7y ago
Somewhat related quote:
Linus Torvalds:
"Bad programmers worry about the code. Good programmers worry about data structures and their relationships."
IMO proper database design is extremely important. Code is fluid. You can replace it. Data is not that fluid, it's much harder to change it. Database should contain checks to ensure that bad data won't be saved.
I don't think that complete business logic should be in database. Keep data in database, keep your code in your application. Database is responsible for data storage and some data validation to prevent misbehaved apps storing obviously bad data. Application is responsible for everything else.