Remix.run Logo
liampulles a day ago

Yeah its a bad pattern. And we can expect to see it in a sizable number of production codebases.

diggan a day ago | parent [-]

ORMs love to put people and projects in the situation where it's much easier for data types in your program to match exactly with the tables in your database, but reality often requires them to be decoupled instead. That "create user" request contains "isAdmin" smells like someone mapped that exact request to a table, and just because the table has "isAdmin", the data type now also has it.