• vfsh@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    28 days ago

    I did this to myself last week on a new project. Spent an hour trying to track down at what point in my code the data from the database got converted to [Object object]. Finally decided to check the db itself and realized that the [Object object] was coming from inside the house the whole time and the error in my code was when the entry was being written smh

    • Lightfire228@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      27 days ago

      Sanity checks

      Always, always check if your assumptions are true

      • am i even running the function?
      • is this value what i think it is?
      • what is responsible for loading this data, and does it work as expected?
      • am i pointed at the right database?
      • is my configuration set and loaded in correctly?
  • Excrubulent@slrpnk.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    27 days ago

    What the fuck is that stock image? They really said “contemplating suicide but make it corporate”.

      • Classy@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        27 days ago

        I asked an AI to calculate a side of a triangle today. The hypotenuse was 24 and both opposite sides were equal, with two small angles of 10° and a wide one of 160°. The answer should have been something a little over 12… And it very confidently said 25. That makes zero sense. Fucking AI really is stupid isn’t it.