Having worked both in software development and at a warehouse, I can vouch that both have multiple dimensions.
Oddly enough, both jobs involve sorting algorithms, and both can be completely derailed by poor management.
I will tell you: between 2 days and 6 weeks.
"shrinking its warehouse training time from a conventional six weeks to as little as two days."
How long do you think i have to train your wife to setup a kubernetes cluster, make sure it is secure, backuped and works efficient? Then when she knows that, how to build images, and write code in java, go, bash, ansible etc.?
If the answer is longer than 6 weeks, you see the difference. And don't get me wrong, i have seen people who had a 3 year education and start as juniors and miss a lot for years until they get it all right.
You could just as easily say: all right LOC is the only thing that matters, we're not paying you to be right, we're paying you to write code so do it. And the warehouse could have thousands of metrics to measure the intricacies of working in a warehouse. Following that your argument easily applies to programmers as well. They deserve to be treated like crap.
That you view working in a warehouse as so simple,and that you talk about "deserving" so much reveals a lot. You're using metrics as an abstraction to hide behind so you can really say they "deserve" to be treated this way because they work in a warehouse.
But, really, whether someone deserves some treatment or not because of the job they work should be irrelevant.
I feel like at some point we have to draw the line. We're going to have to coexist with automation and eventually it will get to software development, too. Some parameters about what we consider to be reasonable and unreasonable to automate make a lot of sense to me.
I also feel like we get very classist as software developers and fall into the I-am-special trap frequently.
Also there is a critical thing to software development: Working for a business that makes money. If you don’t hit that metric, you’ll eventually be out of a job.
Plus, there are many more people who can pick up boxes than there are who can program.
For comparison sake, I know someone who runs a company sorting refuse. Each person in the warehouse needs to sort through 500kg of refuse every day. That's it. Literally nothing else matters. It's not a complex job, so the metric is not complex either.