Little bit of everything!

Avid Swiftie (come join us at !taylorswift@poptalk.scrubbles.tech )

Gaming (Mass Effect, Witcher, and too much Satisfactory)

Sci-fi

I live for 90s TV sitcoms

  • 2 Posts
  • 10 Comments
Joined 2 years ago
cake
Cake day: June 2nd, 2023

help-circle


  • Right but then you have to pass that information around so people know how to deserialize it, and it means things like the UI need to do exact currency conversions on their side that must match the server too. So if you are doing USD you would not only need to pass 1000 to denote $10 but also the currency name, USD, and it’s precision value of 2. However if you are using the Dinar, and they pass the same 1000 they would need to make sure they pass the precision of 3, and the UI would need to calculate that. (And remember JS is floats, so you run the risk there that the value may not be the same as what the server would see)

    The best course of action is to format it on the server. I’ve found that passing the currency code is good along with the stringified value of “10.00” or in the Dinar case “1.000”. That way the UI knows exactly what it should show. Its also extremely rare that someone needs to modify a value on the frontend, but if they do most currency libraries prefer string anyway.

    Source: I’ve done FinTech for trading companies, banks, and payment processors. There are a lot of gotchas with money





  • How many times do educated math and computer scientists have to make this argument? Encryption is not something that can add another user to it. It’s mathematically impossible to have something be secure, and also be open for others to look in.

    Even if one extra key is added to the system that people can then use to access, that means there is one constant that can then be exploited. It really is all or nothing. Either it’s encrypted or it’s not.

    I’m so sorry it makes law enforcement slightly more difficult. That’s the price for freedom though, the freedom to be able to just chat with someone without another party reading it. I don’t care if it’s just memes, they’re our memes.






  • Correct, the situation is much more nuanced than a simple sign could say. Both sides have rights and very wrongs about them. The only thing that should really be on signs should be “both sides should stop the violence and talk it through”, but we all know about how well that would go. Still, star trek taught me that should be the goal.