For many uses it is semantically the same.
But for cases where you need to know if something was intentionally set to null or was simply not set, the difference is enormous.
For many uses it is semantically the same.
But for cases where you need to know if something was intentionally set to null or was simply not set, the difference is enormous.
Ah yes the difference between “unset” and “intentionally set to null”, the bane of API devs who work in languages that don’t inherently distinguish between the two.
I love when an API takes a json payload, and one of the json fields is a string that contains json, so I have to serialize/deserialze in stages 😭
The only reason to lie is external to the case, but that’s a bold move assuming reason was involved.
I bet he lied for no good reason, making it harder for them to do their job.
No, again.
I didn’t make a stance, I didn’t say they’re not that bad. I asked why everyone immediately shit on them, and then I asked for more information when your examination seemed contradictory in one area.
You keep putting words in my mouth and getting angry at me for them.
You gave me a reasonable explanation at first, and then when I asked for clarification about a part that seemed contradictory to me, I was immediately met with anger, accusations, and a repeated claim that all my questions had been answered.
Someone else actually gave me a pretty decent answer, but then they deleted their reply before I could follow up with them 😢. It was more about posturing than about economics (although when governments posture, economics are always impacted)
Ok, I see the problem; you’re not reading my replies.
I have been bending over backwards to make it clear I’m not advocating anything in general, and that I don’t support trump or his suggestion in specific.
You keep saying that you’ve explained tariffs in general, but most of what you’ve done is just assert they’re bad and then claim that you’ve explained it, but if you haven’t been reading my replies then of course you wouldn’t have read the questions I’ve asked about the explanations you did provided
You didn’t provide facts, you provided arguments and assertions.
Then I refuted one of your arguments showing how it is seemingly contradicted one of your assertions and asked for elaboration.
I don’t understand where your hostility is coming from. I’m not even saying you’re wrong, I’m pointing out arguments that don’t appear (to me) to lead to your conclusion.
I absolutely don’t refute that Trump’s idea is a bad one. My question is more general than that.
What?
Why am I getting down votes?
How am I shitting on anything? What am I even shitting on? \
All I’m doing is asking “why do we shit on teriffs and treat them as inherently bad?”
Im trying to have a discussion in good faith, and rather than having any of my questions explained or answered I’m just down voted and vaguely demeaned.
I’m being very clear I do not support whatever shit trump is doing, I’m trying to understand why people just hate tariffs.
I don’t understand how, if the importer bares all tariff costs, what would disincentivize a foreign nation from exporting to us since they bear no increased costs. Why would this not just appear as a decrease in demand, from their perspective?
It feels like this (common) argument it’s trying to have is cake and eat it too, so maybe you can help me understand.
As you, and everyone, say: the financial burden of the teriffs are paid by the importer and passed to the consumer, rather than being paid by the exporting country or exporter - so what is the disincentive for those countries to continue trade with us? They’ll see a decrease in demand, but is that really a disincentive? I don’t understand how both of these things can be true and have the same cause, at the same time.
The problem is outsourcing, and teriffs are an attempt to make outsourcing less appealing. I understand your analogy, but that’s the problem: we’re encountering Goodhart’s Law. We’re optimizing for GDP, and you’re right that’s teriffs will result in lower optimization, but in chasing GDP numbers we’ve failed to consider where the money is getting allocated. The lawyer could save money by hiring foreigners, but hiring locals helps people in their community. (Not saying foreign workers are bad, just trying to reuse your analogy). I don’t think we should get too preoccupied with economic efficiency, as long as we can ensure the waste stays domestic.
I’m not confident teriffs are actually a good idea, and even if they were I don’t trust Trump to implement them. What I’m trying to do is push back and get clarification about why people are acting like teriffs are inherently bad.
While I mostly agree with you, econ101 is a pretty poor argument; early econ courses (like intro to micro and macro) are notoriously not grounded in reality.
I hate Trump, and maybe that’s what he’s thinking.
But I’m not sure replacing taxes with tariffs won’t help; replacing sales taxes with teriffs will mean that domestic products are effectively being subsidized by people buying imported products. This increases demand for domestic products, hopefully stimulation domestic production.
I think the tell isn’t that he is using teriffs, it’s that he wants to cut income taxes at the expense of people buying foreign products.
Owners:
Now that we have generative AI, we can finally get rid of all those expensive employees
There are common traps and employer don’t spend money/time to train their devs to avoid them.
SOLID principles are pretty decent but a surprising number of people don’t do any of them
I wonder how hard it’d be to make a PWA and host it on GitHub 🤔 Maybe this would be a good yet-another-hobby-project-ill-never-complete to pick up
Gross
But considering the current state of Google search, not as gross as it was.
I’ll grant you that. “Died by aviation misadventure” definitely sounds a lot better than “accidentally drove his paraglider into the side of a barn”
Isn’t “misadventure” just aka “accident”?
ShockedPikachu.jpg
A coder after my own heart. State machines are the bane of my existence.
Imagine you’re writing a CRUD API, which is pretty common.
If null attributes aren’t included in the payload, and someone does an update (typically a PATCH), how do you know which fields should be nulled out and which should be ignored?
I agree for many cases the two are semantically equivalent, but it’s common enough to not have them be equivalent that I’m surprised that it causes arguments