Updated 11/12/23
Updated 11/12/23
Naming conventions are a strong part of gDS. The existing code generator requires them.
See the schema for the first case study:
https://github.com/talborough/testingComplexSystems/blob/main/caseStudy_01/animalFarm_01.dd
The naming conventions in the schema are obvious I believe. Given the conventions then, the following is possible:
animalRef = int(input("Enter the animal number to work with: "))
print (gCounty_Name[gFarm_gCounty_Ref[gAnimal_gFarm_Ref[animalRef]]])
The reference above is dense, expressive, concise. You don't find the need to write that kind of expression often but it does "flow". I have found ordinary code to do ordinary things to be relatively readable. It's easy for the eye to scan the code and ensure the references are of the correct type. Again, this is only to be used in places where you don't need all the abilities of a DBMS.
Testing Complex Systems
Copyright © 2023 Testing Complex Systems - All Rights Reserved.
Powered by GoDaddy
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.