4 ms·
Half related and only quarter-serious: I bet your code is full of functions with names like: takeCustomerIDAndDateThenQueryDatabaseToReturnArrayOfPurchase
by greggyb 7y ago
Half related and only quarter-serious:
I bet your code is full of functions with names like:
takeCustomerIDAndDateThenQueryDatabaseToReturnArrayOfPurchaseOrdersWhichConsistOfPONumberAndNetSalesPrice
takeCustomerIDAndDateThenQueryDatabaseToReturnArrayOfPurchaseOrdersWhichConsistOfPONumberAndLineItemsOfProductAndQuantityAndUnitPrice
- TeMPOraL 7y agoNo, it isn't. Because what you wrote is the exact equivalent of "coleslaw" and "de volaille" - taking what should be a parametrized base, or set of interchangeable tokens - '(salad cabbage vinegar), '(wrap (fillet chicken) butter) - and turning them into unique names. In other words, "coleslaw" == takeCustomerIDAndDateThenQueryDatabaseToReturnArrayOfPurchaseOrdersWhichConsistOfPONumberAndNetSalesPrice, and all I'm asking for is to parametrize it instead like a sane human being.
- greggyb 7y agoAh, I more fully understand your complaint. (Now only 1/4 related and 1/8 serious.) I thought you were opposed to nondescriptive names, but instead you just want to have a minimal set of orthogonal constructs which can be combined together on an ad-hoc basis to create meaning. So your ideal code looks like this: https://github.com/Battelle/movfuscator/blob/master/overview/prime_mov.asm https://github.com/Battelle/movfuscator/blob/master/overview...
- joombaga 7y agoThey're all called with the wrapper function takeFunctionNameAndInterpretAsFunction It's the only function with a body.
- TeMPOraL 7y agoYes, that's exactly what names like "coleslaw" or "de volaille" are. Unique names for things that should be parametrized instead.
- greggyb 7y agoTurns out it's just a regular interpreter, and there are strict semantics about how things must be named. That's what they meant by metacircular interpreter in SICP, right?