• 0 Posts
  • 54 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle



  • Counter point… Both are generating perfectly valid JSON, so who cares?

    Python 3.13.2 (main, Feb  5 2025, 08:05:21) [GCC 14.2.1 20250128]
    Type 'copyright', 'credits' or 'license' for more information
    IPython 9.0.2 -- An enhanced Interactive Python. Type '?' for help.
    Tip: IPython 9.0+ have hooks to integrate AI/LLM completions.
    
    In [1]: import json
    
    In [2]: json.loads('{"x": 1e-05}')
    Out[2]: {'x': 1e-05}
    
    In [3]: json.loads('{"x":0.00001}')
    Out[3]: {'x': 1e-05}
    
    Welcome to Node.js v20.3.1.
    Type ".help" for more information.
    > JSON.parse('{"x":0.00001}')
    { x: 0.00001 }
    > JSON.parse('{"x": 1e-05}')
    { x: 0.00001 }
    

    Javascript and Python both happily accept either format from the string and convert it into a float they are happy with.



  • https://en.wikipedia.org/wiki/Fast_inverse_square_root

    even if you can figure out specifically WHAT a function does, it’s not always clear WHY a function does, and honestly, if this function wasnt labeled in the code, no way in hell would I know what it does.

    It has an entire wiki page dedicated to explaining it, and it involves enough math that most people wouldn’t be able to follow along.

    Nothing this atrocious lives in any current codebases I work on… but if you work at an old enough company, some of the load-bearing code will be tricky to figure out what is calling it, but also it was written in a time where little hacks were needed to eke out performance.

    You only have to experience it once for it to be a memorable enough thing that you will cite it for the rest of your days.

    Or more realistically, it IS comprehensible, but the level of effort necessary to comprehend it is not worth it. So you leave it as “undecipherable” and move on.


  • XMPP has been an option for decades, if your contacts aren’t using it by now, they arent going to. And with communications tools, both parties have to agree on a tool. Even if one party doesn’t care about privacy or security.

    Raw brute force security isn’t the point most of the time, and ease of use and simplicity of setup are going to be major factors in adoption. Signal is much easier to get started with for most people than XMPP.











  • If we assume “half a day” is 4 hours, and 500 pounds. That’s 125 pounds per hour. Which isn’t the worst rate. Assuming it’s actually capped at 4 hours and we all know that if it’s your dad’s friend, this is not going to be a set and forget kind of thing. So that 4 hours quickly becomes 10. And suddenly you’re down to 50 pounds per hour. And then if it’s actually static and simple and good, you still have high odds of getting insane feedback demanding changes to make it worse. A motherfucking website would actually be the best option, but wouldn’t get you paid. At that point youre just doing it for the lols.

    But ultimately, this isn’t even about the rate or how much time this will take. this whole scenario depends heavily on the son here. Is the son unemployed and living in dad’s basement for free? Then yeah. Sorry, he should probably take any work he can get for any rate he can get. His dad gets a lot more say in how things work financially if the son is relying on him financially. But if the son is already working a full time job and living in his own house? Then no, I don’t care what the rate is. Don’t commandeer other people’s time. Don’t make deals that people haven’t agreed to. Come to me with opportunities, not demands.


  • I disagree with your definition of “killed Linux gaming.” It killed native Linux development perhaps. But using Linux for gaming is more viable than ever thanks to Valve. They single handedly boosted Linux gaming, if anything.

    And they also offer more than the competition. For a while there games on EGS were just telling people to get support on steam forums because epic had nothing for supporting games they sold. Steam has forums, screenshot storage, achievements, remote play, friends lists, a shopping cart (🙄) and is adding new features like clips. I’m not using steam because it’s a monopoly, I’m using it because it’s a better platform.