Meme transcription:

Panel 1: Bilbo Baggins ponders, “After all… why should I care about the difference between int and String?

Panel 2: Bilbo Baggins is revealed to be an API developer. He continues, “JSON is always String, anyways…”

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

    Yep. Much like we don’t treat phone numbers like a number. The rule of thumb is that if you don’t do any arithmetic with it, it is not a “number” but numeric.

    • lad@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 months ago

      Well, we don’t, but every electonic tables software out in the wild on the other hand…

      /j

      Yes, I know that you can force it to become text by prepending ' to the phone, choose an appropriate format for the cells, etc, etc

      The point is that this often requires meddling after the phone gets displayed as something like 3e10