8 ms·
exactly, with no-do overs. Everyone hand codes their assembly correctly on the first try right!?!!
by mox1 5y ago
exactly, with no-do overs. Everyone hand codes their assembly correctly on the first try right!?!!
- capableweb 5y agoThere are plenty of do-overs, it's called the "development phase" and involves testing things on your local computer with the team. No one gets everything right the first time, but with a lot of testing, you can actually write software that does exactly what you think it will do, and you can achieve pretty cool stuff. Remember that humans wrote the software that took humanity to the moon!
- UncleMeat 5y agoAs we know, no software has had bugs caught once launched to prod. The existence of some software that worked under this model is not evidence that it is a good model. "Just test prior to release" is not a complete solution.
- mox1 5y agoYes, and that code had bugs. https://www.forbes.com/sites/lanceeliot/2019/07/16/apollo-11s-infamous-landing-error-code-1202-offers-earthly-lessons-for-self-driving-cars/?sh=4934e30734bc https://www.forbes.com/sites/lanceeliot/2019/07/16/apollo-11... There are 0 do-overs on smart contracts in production. No stopping the network for a minute to triage, no rolling back a minute, no circuit breakers. No "Error 1202, do you want to continue?" pop-up messages.
- ddingus 5y agoIn this case, not really. User was calling a "ROM" What you describe are dry runs.
- capableweb 5y agoAre you talking about the user from https://www.reddit.com/r/ethereum/comments/sfz4kw/did_i_just_lose_half_a_million_dollars_by_sending/ https://www.reddit.com/r/ethereum/comments/sfz4kw/did_i_just... ? And do you mean "read-only memory"? I'm not sure how that's relevant. The contract they made the transfer to is read-only yes, like any contract on Ethereum. But they could have tested the contract call with a smaller sum before actually performing the bigger one. Just like the people writing the computer that took us to the moon, I'm pretty sure they tried it before in small-scale simulations before hooking it up to the rocket and letting it go to the moon.
- zepto 5y agoThe idea that people need to treat financial transactions in crypto as if they were writing software for a moon mission shows how impractical the entire space is.
- capableweb 5y agoIf that was the case, I'd agree with you. But as outlined in the comments of this submission time and time again, it was not what happened here. The user was not doing a normal transfer (at least, they didn't want to, but they ended up doing). They didn't know what they were doing at all, a simply Google search would have showed them the way. Using UIs instead of interacting with the contract directly would have prevented them from making the mistake they did. Doing a small test transfer before doing the big one would have revealed what was wrong as well. It's not that I'm comparing writing software for moon missions with making cryptocurrency transactions. I was directly replying to mox1 implying that writing 100% correct code is impossible and shouldn't be attempted.
- ddingus 5y ago"simply Google search would have showed them the way" That is how high toxicity systems get made.
- ddingus 5y agoTL;DR: They could have got it right. Didn't.
- ddingus 5y agoThere is a difference! The incentive was robust code that would work well, get it done, go to the moon. Here, machine time is expensive, puts emphasis on code that works, but just barely... Let's just say NASA would check for the "yup, you are gonna burn some money" case, and reject it.
- FDSGSG 5y agoWell, there's about $3B worth of WETH issued and only about $1.1M worth of those have been lost due to mistakes like the OPs. I think that people are so unlikely to fuck this up that such a check would be rather pointless.
- deleted 5y ago[deleted]