• porous_grey_matter@lemmy.ml
    link
    fedilink
    arrow-up
    68
    ·
    1 day ago

    Not sure every software engineer needs to know this. If they’d said web developer I suppose this would really be expected knowledge, but then you’d probably want to shoot them anyway.

    • Funkt4st1c@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 hours ago

      A lot of info going through the network is either using or converted to either json or xml. If the software being developed is entirely local, then sure

    • SparroHawc@piefed.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      Web developer, or business developer. A lot of inter-system communications these days is in JSON, whether there is any JavaScript involved or not.

      • Jakeroxs@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        15 hours ago

        Do people really conflate json and javascript normally though? Java and javacript I get but no one actually says the full json acronym and it basically has an identity of its own.

    • Waterpumpee@lemmus.org
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 day ago

      honestly, this is used for debugging. Why not just pass the object as value to the console.log()

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        Stringify is used to serialize an object. This is useful if you are going to store the object or transfer the object contents to some other system or component, possibly over a network using a network protocol.

        For debugging, you should use a function like console.log, which depending on the client might even offer an interactive UI to explore the object with structurally aware context. Not just print a giant string, which you get from stringify.

      • TrickDacy@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        Not only used for debugging and also if you log a complex object, the way it gets displayed in the console is not always easy/possible to fully inspect. It will get… truncated for lack of a better word