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

  • 45 Posts
  • 1.17K Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2023

help-circle

  • The fun differences between the perfect world of theoretical and the realistic. Everyone thinks of computers as perfect - but it’s not until you’re asked to solve “How do you store decimals using only 0s and 1s?” does it start to click. Not as easy. It’s why I’m hesitant to hire bootcampers into my roles. Bootcamps are great, and they get more people coding, but you don’t learn that theory behind the scenes - you don’t really know what the computer and operating systems are doing. For 90% of the time it doesn’t matter, it’s abstracted away - but that last 10% man, that can really fuck up an entire system.


  • Long and short, floating point math is imprecise, and when dealing with currency you must be 100% precise. One of those rules of programming: Never store (or let currency flow through) a float. That includes doubles too.

    In javascript, the number type is imprecise, it is contained by a float under the hood, meaning precision can be lost. So even just parsing JSON to a number, even if you mean to move it into something like BigNumber, the precision is already not guaranteed when it finally gets to BigNumber. The safest thing to do is pass the numeric values as strings, which are guaranteed of course to represent their exact precision and value, and then use a proper precise parser to the value, like BigNumber.parse(strValue). (Even then, there’s an argument that it’s very rare that you ever need an amount outside of a string in a UI. Most calculations should be handled by a server that’s the single source of truth in calculations, think sales tax and shipping, so a string is just a value that is presented to a user).

    In C#, float and double are imprecise and not guaranteed, especially with arithmetic. Decimal is the best way to store an exact value.

    In databases, it’s usually best practice to store the string value of the amount for exact precise recordkeeping, with a decimal field next to it labeled something like AmountImprecise that you can use for aggregating, sorting, grouping, whatever.

    Every language will have it’s quirks, but essentially, take this from me, a senior fintech engineer. If you see currency amounts, think precision, and know you’ll need to take extra extra care about how it’s stored. You don’t want to accidentally office space yourself, especially when auditors come around.









  • I know it’s weird here on the fediverse, but I’ve been through it. If you want, DM me anytime, or DM me and I can give my mastodon. Should probably start a community sometime. It’s been good talking to you too!

    I wish you luck, but be prepared for anger in response. Just be ready for it. Make it not about the politics but instead the hate, the anger. Hell try to make it about politics but instead make it about the hate. It’s not about Biden or trump, it’s the anger.






  • Learning about Gerrymandering was one of the first times I noticed cracks in our democracy.

    I grew up in the Midwest, and I truly thought America had done it. We solved corruption and bad governments, why wouldn’t the rest of the world want to know how to do it right?

    Gerrymandering proves the absolute worst of our system. Corrupted officials carving the worst possible areas to make sure the person they want to get elected is elected - and the only time we get to change them is once a decade - when the same committee decides again.


  • I appreciate it, and I hope your interactions with your father go better too. I know many many people who take your approach, just avoiding it. There’s no real right or wrong way, because we shouldn’t be in that position in the first place. I hope they stop bringing it up around you and respect your wishes about it.

    Re: circles, maybe keeping it personal will help too. Turning off Fox news and sources will help, but my dad sure did shut up when I brought up the people he knew (and I know he liked) that he was talking about. They always go “They’re one of the good ones”, but then the reverse is “These policies effect the good ones too, dad”


  • not sure about CoD myself, but Halo was my franchise of choice. Over the last couple of games they’ve changed social playlists to still alter your skill, I’m not 100% on the details of how, but essentially it means ranked is where you go to compete, social is where you go to practice for ranked. It’s become extremely frustrating because you have everyone trying way, way too hard in social games, getting angry when things don’t go perfectly, and dropping out of games that aren’t competitive enough leaving us with lopsided teams.

    I just wish games had a “Hey, no skills here, just in and have fun, there’s no points or levels, that’s over there” style gaming. And if there is skill based matchmaking in that style, then we shouldn’t know about our level in those games.