3 ms·
I do this too, but I’m always frustrated by the mismatch between database constraints and application constraints. For example, when using Django you can declar
by jhardy54 5y ago
I do this too, but I’m always frustrated by the mismatch between database constraints and application constraints. For example, when using Django you can declare a field as varchar(32) but that constraint isn’t checked until you actually insert the row into the database. I suppose maybe that’s not a problem in languages with more mature type safety ecosystems?
- Iazel 5y agoYeah, I've also worked with weak type systems in the past too (PHP, Ruby, JS), so I can definitely share the pain! I learned the hard way how much easier it is to build complex systems when you have a compiler helping you ;)
- jhardy54 5y agoWhat are you building with now? Rust/Go/something snazzy?
- teddyh 5y agoPlease do not confuse strong/weak typing with dynamic/static typing. Many dynamically typed languages are also weakly typed, but some dynamic langugages, like Python, are strongly typed.
- Iazel 5y agoFair point, thanks for calling it out. I should have said "statically checked, strongly typed languages"