• lime!@feddit.nu
    link
    fedilink
    arrow-up
    81
    ·
    1 day ago

    i’ve designed my own communication protocols that run directly on udp. i couldn’t tell you either.

    • MalReynolds@slrpnk.net
      link
      fedilink
      English
      arrow-up
      21
      ·
      1 day ago

      Ima guess it’s javascript-ese to turn a json object into a string, perhaps for serialization. But no clue, coding for decades but always hated js, I guess my way through with a linter and IDE when I absolutely, positively, cannot find an alternative, which seldom happens.

        • anomnom@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 day ago

          Before yaml, I used json with Ruby it was way nicer to read than xml config files ( but way before that I started using it with PHP and Actionscript)

          • DaleGribble88@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            14 hours ago

            Holy cow! I don’t think I’ve ever met another developer who actually admits to using action script back in the day. Greetings fellow old person!

            • anomnom@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              2
              ·
              10 hours ago

              Yup pre iPhone front end development was all over the place. I actually started with Macromedia flash when it was still just a few actions. I think 1998-99 was the first time I used it. AS3 was a neat language though, I still kinda miss it now and then.

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

            Yeah you don’t have to be using JavaScript to use json. Yes I know it’s part of the name, but it’s just an object notation which is the other part of the name, and this has become widely accepted for use in nearly all popular languages and frameworks.

            • lad@programming.dev
              link
              fedilink
              arrow-up
              4
              ·
              23 hours ago

              Are there any other languages that would also have Json.Stringify? I only read JS sometimes and never write those, so I may be wrong about that.

              JSON itself is fine, yeah

              • jaybone@lemmy.zip
                link
                fedilink
                English
                arrow-up
                2
                ·
                11 hours ago

                To add to other replies, I think there are some Java libraries that use this method name, or close to it. It’s so common that the term is well recognized on its own, regardless of the exact method names in whatever library or language.

              • DaleGribble88@programming.dev
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                14 hours ago

                Python has a popular library called “Flask” that uses stringify(). Although, python also has an implementation in its standard library called jason.dumps()

              • anomnom@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                2
                ·
                edit-2
                21 hours ago

                Not sure but with Ruby it was JSON.generate(ruby_array/hash/object).

                And it returned - JSON string of your argument.

    • lobut@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      22 hours ago

      I refuse to believe you couldn’t infer what this is, you’re way too smart and you could definitely just guess.

      • lime!@feddit.nu
        link
        fedilink
        arrow-up
        6
        ·
        19 hours ago

        turning a data structure into a string is usually called like “marshal” or “render” or “dump” or something, “stringify” doesn’t really imply anything except something about the json being turned into a string. for all i know it could be replacing all the values with toString’ed versions.

        • lobut@lemmy.ca
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          19 hours ago

          doesn’t really imply anything except something about the json being turned into a string

          yeah that’s basically it, I know you’re leaning into your existing knowledge (of likely C-based stuff) but your line of thinking is about right about how you’re inferring things … naming and stuff gets a bit “different” or less serious when you go into JS land sometimes.

          What’s funny is if this were a real job interview question and you answered in the way that you did … the way you answered it told me more about yourself and your qualifications than just getting it exactly right

          • lime!@feddit.nu
            link
            fedilink
            arrow-up
            4
            ·
            19 hours ago

            man if i have to hear about “hydration” one mare time…

            that’s exactly why i always prefer doing conversation-style interviews rather than quizzing people. knowledge is fine, but you only really get opinions by actually using tools.

            • lobut@lemmy.ca
              link
              fedilink
              arrow-up
              3
              ·
              19 hours ago

              I much prefer conversational style interviews. I also like having them tell me about shit and then getting into the weeds of what they’ve been through.

              I’ve been through so many stupid quizzing type interviews. I remember one where they wanted to ask about covariance and contravariance and I roughly stated I learned about it when writing my own compiler and it’s about types and how one can follow the typing direction of typing, for let’s say parameter/return values and the other can go the other way but I forget which is which typically. The guy was like, “guess which one is which?” I said, “why? it’d just be a guess, I thought I demonstrated that I’m at least familiar with the concepts”, he said, “I can’t mark down you got this question is right unless you get the right answer” … I said, “let’s skip it then”.

              Another one was where he asked me if I knew “WPF” which is a Microsoft framework to write desktop apps. I said, “it’s not on my CV, and I’ve only used it at home a few times but you can ask me questions if you’d like”, he then said with a smirk on his face, “if you want to answer the WPF portion, and you get it wrong then you look bad, but if you get it right then you look good, so what do you want to do?”, I said, “I think this is up to you as an interviewer – I’ve told you where I stand”

              There was a lot of that … like based on THEIR questions – I don’t know shit … but they’re not quizzing my experience at all.

              • lime!@feddit.nu
                link
                fedilink
                arrow-up
                3
                ·
                18 hours ago

                whoof.

                conversational style interviews can go wrong quickly though; i recently interviewed for a position where the conversation turned into the interviewer explaining how he’d connected everything in his rv to home assistant. i’m not really into home automation but the communication bit was at least interesting until he dropped that he’d let claude do everything and he didn’t actually care how it worked.

                • lobut@lemmy.ca
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  18 hours ago

                  he’d let claude do everything and he didn’t actually care how it worked.

                  😱

                  I hired someone that recently put up PRs and when I asked what they were for, he had no idea … he hasn’t ran or tested a single one … just vibing everything.

                  When I saw his Terraform PRs … I was like, “show me how you run this”. I shortly found out he never had Terraform installed and didn’t know how to switch AWS profile at all. He let’s AI do everything. Also, he kept sending me AI convos and I was like, “if you send me another one without reading it first and summarizing it for me, I’m going to lose my shit”. He said, “I wanted to send you the proof” … I said, “you sent me half a page of nonsense where you didn’t respect my time enough to read yourself first”

        • Buddahriffic@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          15 hours ago

          Another guess just based on the terms is it could be a method that throws your json object into a black hole and returns the version of the object that is stretched out to infinity.

          Though that’s just an optical illusion, in reality the object would be ripped apart by the gravity or extreme radiation, depending on whether it was a small or large black hole.

          Your guesses are more useful, but I can’t fathom what goes on in the mind of JavaScript devs.

    • ramble81@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      1 day ago

      I mean, that’s fine, right up till you have to communicate with something else. Given that 99% of APIs out there use JSON.

      • socsa@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        19 hours ago

        Lol, I work with far too many serial APIs which are just sending three hex bytes for a key and value pair.

        • ramble81@lemmy.zip
          link
          fedilink
          arrow-up
          7
          ·
          1 day ago

          Uh-huh, and where do you think most “something else that you would interact with” live from a computing standpoint. It’s not like you’re using X12 or HL7 everywhere.