7 ms·
Interesting, that kind of "smelled" like the right answer. So, help me out here - "You're using a language where you can put the data in an appropriate structu
by jjonte 17y ago
Interesting, that kind of "smelled" like the right answer.
So, help me out here - "You're using a language where you can put the data in an appropriate structure used by high-order code." I don't understand that statement? I don't know what "the data" or "high-order code" is?
- swolchok 17y agoThe entity definition files are the data. Higher-order code is code that operates on code. I need a slightly more concrete example from you to get any more concrete here, but I'm imagining that the C# code generator has a set of rules for mapping entities to 1) C# classes and 2) fields in a database, and the generated C# classes automatically do database queries upon method/attribute accesses. In Python, you might override attribute lookup on your "DatabaseObject" class to hit the database, or you could have some code that processes an entity definition file and adds appropriate functions to Python classes at runtime. The advantage is that you don't have reams of code to muddle through and compile.