1,331 karma · joined March 28, 2013
That's a false dichotomy, you don't get to choose between definitely crashing or maybe crashing. That would be nice but it's not on the menu. Crashing is just the best case scenario, so if you can make your system stop instead of being incorrect, that's great.
> but we all disable them in production (assertions)
We don't all do that.
I concede that it depends on the use case. You might not care if you got a single user non-networked gaming console for example. A bug could even become a welcomed part of the experience there. I hope these cases are more rare than not though.
First of all, making a problem both obvious and easier to solve is better. Nothing "only" about it - it's better. Better both for the programmers and for the users. For the programmer the benefit is obvious, for the user problems will simply be more rare, because the benefit the programmer received will make software better faster.
Second, about the behavior. When you attempt to save changes to your document, would you rather have the corruption of your document due to a bug fail with fanfare or succeed silently? How about the web page you visited with embedded malicious JavaScript from a compromised third party, would you rather the web page closed or have your bank details for sale on a foreign forum? When correctness is out the window, you must abort.
You don't have to buy it, you could crunch numbers for an equivalent cost if that's preferable. The advantage is that the effort can be stored and used later, so you need not even add a 2 second latency. Similar to "Privacy Pass".
Should the implementation of a module not be able to utilize functions internally?
I agree the phone ought to be plugged in anyway. Even if it could survive a full day of being your workstation, you wouldn't want a half dead or worse battery at the end of your work day, and regularly draining a significant amount while stationary unnecessarily shortens the total battery lifespan. In addition, if docked into something with a bit of active cooling, the phone could perform better and once again preserve the battery.
I feel like any recent iPhone would be brilliant for this, though the RAM is on the short side, though with slightly more in recent Pros it could be a Pro only feature.
Shame it seems like such an un-Apple move to not provide this value, that it will likely stay that way.
You have 1 share of Stock A and I have 1 share of Stock B. We both paid 1 USD for each of our different stocks.
Now I want Stock A and you want Stock B, so we'll trade with each other, and lucky us, both stocks are now valued at 2 USD per share.
After performing this trade, ask yourself these questions (from my perspective, or swap A and B for yours, it's the same either way):
* Have I held Stock B?
* What did I pay for Stock B?
* Do I now hold Stock B?
* Why not?
* What did I sell it for?
* And how much was that valued?
* So then how much did I gain?
* How much is owed in tax?
Unless your local tax law specifies "cashing out" not only as a taxable event, but the only taxable event, which I assure you it does not for stocks, the correct answers are as below. The equivalent to what you seem to describe for crypto would be transferring money in and out of the exchange where you trade stocks, and it would be ludicrous if this was the taxable event, which it isn't - but this is a common misconception among amateur crypto traders.
* I did hold 1 Stock B.
* I paid 1 USD for it.
* I don't hold it anymore.
* My dog did not eat it, so I must have sold it, which I did.
* I sold it for 1 Stock A and it was valued at 2 USD at the time of the transaction.
* 1 USD of value was gained at the time I sold from the time I bought.
* I owe a percentage of the 1 USD of value gained, depending on the capital gains tax rate, which differs.
I'd ask the local tax office anonymously. Not knowing doesn't fly as an excuse, everyone says that and it doesn't matter if it's true. Where is this place, if you don't mind?
Bonus question, what if we trade 1 DOGE for 1 Stock C? Is that different? What about 1 DOGE for 1 USD? What about 1 DOGE for 1 token backed by 1 USD? What about 1 Stock C for 1 token backed by 1 USD? Somehow it seems to get more complicated with "cashing out" laws, not less. Also I don't believe they exist, but I'd like to know too if they do anywhere.
There are many true horror stories of amateur traders going from in the green to losing more than they own. I don't know any place where what you describe is legal.
If this is your strategy (as in method to cheat with taxes) now is probably a good time to calculate how much you owe and put that aside into something less volatile, not to accidentally ruin your life.