• 0 Posts
  • 10 Comments
Joined 2 years ago
cake
Cake day: June 23rd, 2023

help-circle
  • somePotato@sh.itjust.workstoProgrammer Humor@programming.devno.. just no
    link
    fedilink
    arrow-up
    54
    arrow-down
    2
    ·
    edit-2
    1 year ago

    I was disgusted by the XML at first, but it’s a readable query returning a sane JSON object.

    Meanwhile, I’m mantaining Java code where the SQL is a perfectly square wall of text, and some insane mofo decided the way to read the resulting list of Object[] 🤮 is getting each column by index… so I’d switch to SQXMLL in a heartbeat.









  • Your way of thinking makes sense but you’re interpreting it wrong.

    If you can round up and say “0,9_ = 1” , then why can’t you round down and repeat until “0 = 1”? The thing is, there’s no rounding up, the 0,0…1 that you’re adding is infinitely small (inexistent).

    It looks a lot less unintuitive if you use fractions:

    1/3 = 0.3_

    0.3_ * 3 = 0.9_

    0.9_ = 3/3 = 1