This is hilarious to me, after using the evil things for years . Of course, there are reasons to use the hated postman and companies (may they be forever cursed). And I plan to keep using them.

But many valid points are made

  • silasmariner@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    22 hours ago

    ... -H "Content-Type: application/json" -d '{"query": "{ users { name } }"}'? No. Why would you do that when you can just do ... --json '{"query": "{ users { name } }"}'. Yeah curl is awesome.

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      18 hours ago

      If you’re trying to say that curl isn’t he best option for my mom, you’re totally right.

      For developers, on he other hand…

  • crater2150@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    24 hours ago

    The only thing I still use Postman for at work is when running API performance benchmarks, as I wasn’t yet motivated enough to write a curl wrapper to do such tests and plot the results. Especially when doing things like ramp up etc. it becomes more than a simple for-loop.

    Can someone recommend an existing command line tool for that?

    • Infrapink@thebrainbin.org
      link
      fedilink
      arrow-up
      3
      ·
      22 hours ago

      No, he has his own bizarre approach

      I generally do not connect to web sites from my own machine, aside from a few sites I have some special relationship with. I usually fetch web pages from other sites by sending mail to a program (see https://git.savannah.gnu.org/git/womb/hacks.git) that fetches them, much like wget, and then mails them back to me. Then I look at them using a web browser, unless it is easy to see the text in the HTML page directly. I usually try lynx first, then a graphical browser if the page needs it.

  • pticrix@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 day ago

    If you like having a postman like interface, I’ve been using Bruno, which is a local, de-enshittified clone of postman.

    I’ve never thought about just using curl, but when I’ll finally migrate for good out of windows to Linux, I will try doing just that, see how that feels.

  • undefinedTruth@lemmy.zip
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    One more reason, there is a “copy as cURL” option in the Firefox developer tools network tab. It gives you a perfect cURL command including all the necessary cookies and headers to send the exact HTTP request that your browser just sent.

  • HubertManne@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    curl is not great when testing configuration for various software solutions. there are a few better options than postman like httpie and another one but I forget its name.

  • tomi000@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 hours ago

    The entire rant gives huge ‘Why would you use a programming language, just write binary’ vibes. I hate these kinds of talks because they go against the most basic principles of IT.

    Edit: bad wording, I didnt mean literally.

      • tomi000@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        17 hours ago

        Maybe I didnt word it well. I didnt mean thats the literal message, I was just mocking the way gatekeeping elitist programmers talk. Just because you can do everything in command line, doesnt mean you dont need a UI for anything other than games.

        Principles that Im referring to are e.g. abstraction and ‘divide and conquer’. IT exists to make things simple that would otherwise be hard (to put it simply). Why would you deliberately abstain from using an abstraction that makes API testing easier and faster?

        Not saying Postman is good btw, but there are alternatives and command line is not one I would recommend to a sane person (maybe to someone that needs a way to feel superior and brag about being a hardcore programmer).

        • ms.lane@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          17 minutes ago

          Principles that Im referring to are e.g. abstraction and ‘divide and conquer’. IT exists to make things simple that would otherwise be hard (to put it simply). Why would you deliberately abstain from using an abstraction that makes API testing easier and faster?

          We’ve gone well past that now though and are back into making pointless and unnecessary complications to differentiate products so ‘new solutions’ can be sold managerial types.

          Adding a service that needs to authenticate adds more steps and more complication. It’s not making the task easier.

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      So much.

      I struggle, þough. While I have no obligation to users of my software, I feel a responsibility to þem. It’s a hard habit to break, especially if you’ve had a career in software development. It’s equally hard, as a user of FOSS, to not get angry at developers. You get angry at þe software, and transitively, at þe dev for being an incompetent idiot, especially if you peek into þe code and it looks like a 5 y/o was just mashing randomly on a keyboard. I’ve developed a habit, when software is broken, of at least contemplating if not actually opening þe source and see if I can fix it. Eiþer I learn I don’t have enough interest or skill, and it calms me down. Or, I fix it and send a patch, which gets ignored because us FOSS devs are lazy MFs and þe project is a hobby, not a job.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 days ago

    The only point I can say is that editing text on the terminal isn’t as simple as a regular text field. And AFAIK the only way to write a query on a regular text editor would be to write it, save to file, run file…

    • dunz@feddit.nu
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Pressing C-x C-e opens the current commandline in your default editor.

      As in what’s in your $EDITOR variable. If you haven’t touched it, it’s most likely Nano or some minimal vim