2 ms·
Any program that uses a database has a very similar problem to global variables. As Gilad Bracha has pointed out, types are antimodular, and your database sche
by js8 2y ago
Any program that uses a database has a very similar problem to global variables.
As Gilad Bracha has pointed out, types are antimodular, and your database schema can be considered one giant type that pervades your program, just like globals can be.
I don't think we have tools to compositionally solve this, across different programming languages.
- cauefcr 2y agoMigrations? Generate bindings for your queries automatically with query+schema definitions? (sqlc)
- nejsjsjsbsb 2y agoYour program is also one giant type.
- js8 2y agoYeah but I don't use that type in 100s of places.