11 ms·
A hashtable doesn't have methods. In a dynamically typed language, I can generate object methods based on the data currently available in the database (either c
by gambler 14y ago
A hashtable doesn't have methods. In a dynamically typed language, I can generate object methods based on the data currently available in the database (either columns or even row content) and take advantage of all the language's syntactic features while doing that.
In respect to any language, the database is inherently dynamic, because it doesn't share your type system and the schema can be redefined at any point after compilation of your code. A statically typed language doesn't magically change that. The best you can do is to write some classes in advance and then hope nothing gets out of sync.
So, to put it in simpler terms, some things are inherently dynamic, and dynamic languages make working with them easier.