On Thu, 7 Apr 2022 at 10:19, Brian McCall
Agreed, this is just using Python as a glorified calculator. I understand that this is just an example, but I *am* curious, is the bulk of what you do simply calculations like this, or do your more complicated examples tend to be more like actual programs?
I have never shipped code that would depend on these features. Code like this, including this exact formula, might sit in a script and be used to calculate normalization factors and feed into a noise model. That script might look at one complete concept that I want to test out in theoretical sense. In other cases, I'll make one or more of those quantities out to be variables that I pass in via command line or config file. This allows me to explore a system design space.
You have a VERY restricted definition of "shipped", then. If that code did some calculation and that calculation was used, then that's production code. ChrisA