4 ms·
I think it is both an awful idea and very common. In the early stages your database looks very similar (if not identical) to what you want your API to look like
by mjr00 3y ago
I think it is both an awful idea and very common. In the early stages your database looks very similar (if not identical) to what you want your API to look like, so it's very tempting to reduce boilerplate by having your API and database objects use the same data structures internally.
- jdkoeck 3y agoYep, it’s a terrible idea but that’s exactly what frameworks like Rais push you to do.