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

help-circle
  • bisby@lemmy.worldto196@lemmy.blahaj.zonemaths rule
    link
    fedilink
    English
    arrow-up
    6
    ·
    15 days ago

    6 of this product with 200 sheets each (1200 total) = 8 competitor products with only 150 sheets each (1200 total).

    They are missing a ×200 and ×150 in their equation. They are trying to remind you that this isnt shrinkflation! … So they can normalize 6 rolls per pack and shrinkflate later




  • 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.








  • bisby@lemmy.worldto196@lemmy.blahaj.zonegame sucks rule
    link
    fedilink
    English
    arrow-up
    43
    ·
    6 months ago

    Sometimes games ship updates that mess with the game. I have over 20,000 hours in WoW. But my play habits from over almost 2 decades ago don’t reflect the current quality of the game.

    And some people compulsively play games they don’t enjoy because “once I get to the next thing, it will finally be fun!” And maybe this person had an awakening and realized that they will never get there… Or after this amount of time had a drastic change of heart.

    And some people leave games open when they aren’t playing.

    I’m not saying this is normal or necessarily healthy, but it’s not unfeasible.





  • I would hope the whole thing is a joke in general.

    “The sun gives us light when it’s ‘already’ bright” is where the real logic breaks down. “I don’t need <thing> because I already have <benefit from thing>” is circular logic.

    So of course we wouldn’t have sunlight at night without the sun. but we also wouldn’t have sunlight at night without the moon.

    Whether we want to call it “more useful” than the sun… it is just as useful as the sun at night. We need both of them for the system to work. I was just trying to snarkily emphasize that we shouldn’t downplay the moon because it is “just” reflecting sunlight.