MTGZone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@lemmings.world to Programmer Humor@programming.dev · 2日前

Just use cURL

justuse.org

external-link
message-square
58
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
255
external-link

Just use cURL

justuse.org

cm0002@lemmings.world to Programmer Humor@programming.dev · 2日前
message-square
58
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • CodeBlooded@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    6時間前

    The few times I’ve used Postman, I found myself doing everything I needed in Python shortly afterwards. It’s not cURL, but it could easily be such; I prefer the self organized “text” interface of code.

  • Cyno@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    5時間前

    nah im good lol

    bruno seems decent

  • southernbrewer@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    20時間前

    IIRC postman has gRPC support, unlike httpie, but it’s also so awful. If you use the gRPC support, switch to Kreya instead

  • ⛓️‍💥@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    21
    ·
    2日前

    Command line escaping is an annoying son of a bitch and different rules apply depending if you’re using bash, cmd, powershell.

    • optional@sh.itjust.works
      link
      fedilink
      arrow-up
      18
      arrow-down
      12
      ·
      edit-2
      19時間前

      That’s why you shouldn’t use cmd or powershell. That and the fact that you’d have to install W*nd*ws in order to use them.

      Edit: Too bad that all the downvoters didn’t leave a comment. Now I’ll never know if it was M*cr*s*ft employees on their anual works outing, or if you’re mad because I dared to use the W-word :D

      • AlphaAutist@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        16時間前

        I hate windows/microsoft as much as anyone and i hate to say this but powershell isn’t that bad and can be installed on Linux and MacOS

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          3
          ·
          3時間前

          Thanks, I didn’t know that. And now I wish I could forget it again.

        • jenesaisquoi@feddit.org
          link
          fedilink
          English
          arrow-up
          5
          ·
          edit-2
          8時間前

          Yeah but why would you, they already have proper shells

      • BatmanAoD@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        19時間前

        String escaping sucks in bash and other posix-style shells too, though.

        • FuckBigTech347@lemmygrad.ml
          link
          fedilink
          arrow-up
          1
          ·
          2時間前

          I rather deal with that than any Micro$oft® Garbage®.

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          19時間前

          “Tru dat\!”

      • dariusj18@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        15時間前

        Command line escaping is not a solely cmd or powershell thing to deal with. But also,

        https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.5

        • optional@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          3時間前

          Thanks, I didn’t know that. And now I wish I could forget it again.

  • Azzu@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    10
    arrow-down
    5
    ·
    edit-2
    1日前

    This is such a weird article. Electron is not for making http requests, it’s for rendering web pages. Nothing within curl can render web pages. I’m not saying you should be using electron necessarily, but this is just so obviously wrong, what is the author thinking?

    And (almost) any programming language has a built-in primitive for making http requests (possibly even using libcurl internally), why would I switch to a command line call if I can just do the http call directly with that primitive?

    • MinFapper@startrek.website
      link
      fedilink
      English
      arrow-up
      21
      ·
      1日前

      I think it’s a jab at Postman, which is essentially curl with a GUI.

      • dubyakay@lemmy.ca
        link
        fedilink
        arrow-up
        9
        ·
        1日前

        Postman has Collection Runner tho, which is useful for people that like to dick around on a GUI and get their data harvested and used for AI training instead of writing their own script in Python.

  • Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    29
    arrow-down
    5
    ·
    edit-2
    2日前

    Generally not a big fan of this type of writing especially when it’s so wrong.

    I’m an old software dev who grew up with curl but I wouldn’t recommend it to anyone new. It’s extremely dated UX that takes a long time to figure all of the quirks out. You will fail thousand times over and is a http client CLI really worth days of your time learning?

    Libcurl itself is brilliant but there are much better front ends for it like hurl or alternatives like httpie - use those instead.

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      12時間前

      Yes it is worth it, because it is available everywhere, and will still be around in 15 years. Learn it once, use it “forever”, everywhere. It’s the same with learning to use sed, awk, etc. They’ve been around for 50 years and will most likely be for another 50.

      • Dr. Moose@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        12時間前

        It’s just a http client CLI not a programming language. It’s not that difficult to switch. In fact I use at least 5 different ones myself.

        • jenesaisquoi@feddit.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          11時間前

          All the more reason to learn and use curl

          • Dr. Moose@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            6時間前

            Yes after you learn all better clients first, sure.

            • jenesaisquoi@feddit.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              5時間前

              Which do you consider better?

    • ohlaph@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      13時間前

      Hurl looks similar to how intellij integrates their http requests feature.

    • ⛓️‍💥@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      ·
      2日前

      Wow the httpie site is terrible

      • RheumatoidArthritis@mander.xyz
        link
        fedilink
        arrow-up
        3
        ·
        2日前

        Hahahahaha you’re not wrong

        Screenshot_20251022-080824_Cromite

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2日前

      Same here, though last time I used a nice frontend was in 2010s, it stopped being developed like all these smaller projects finally end up, and I’m back to using curl. Perhaps it’s time to try again, httpie has been around for a while so maybe it’s here to stay

  • kambusha@sh.itjust.works
    link
    fedilink
    arrow-up
    55
    ·
    2日前

    More coming soon. Or not. I don’t owe you shit.

    • Bazoogle@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5時間前

      I saw that on the main page. That was the best line

  • RheumatoidArthritis@mander.xyz
    link
    fedilink
    arrow-up
    9
    ·
    2日前

    As a daily curl user, this made me interested in trying out postman.

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      12時間前

      It will upload your credentials to the cLoUd and ask you for payment to do basic things. Completely enshittified.

    • dariusj18@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      15時間前

      I was pretty bullish on insomnia until it enshitified

    • codemankey@programming.dev
      link
      fedilink
      English
      arrow-up
      12
      ·
      2日前

      There are less bloated alternatives I prefer. Like Bruno, which is easy/easier to version control.

      • myfavouritename@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        6時間前

        Thanks for mentioning Bruno! It looks awesome. I haven’t tried it out, but I’m going to give it a shot today.

      • RheumatoidArthritis@mander.xyz
        link
        fedilink
        arrow-up
        1
        ·
        1日前

        I just downloaded it, there’s even an appimage 😍

  • Ethanol@pawb.social
    link
    fedilink
    English
    arrow-up
    30
    ·
    2日前

    That was a fun read! I don’t even know what Postman is but I do like curl :P

    • Frezik@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      21
      ·
      2日前

      Be glad you don’t know what Postman is.

      The only reason I bother is because some PMs want to use it.

      • chocrates@piefed.world
        link
        fedilink
        English
        arrow-up
        10
        ·
        2日前

        Look at Bruno. Its open source, though I did get pay walled the other day and it pissed me off.

        • mmmac@lemmy.zip
          link
          fedilink
          arrow-up
          3
          ·
          2日前

          Check out yaak, also open source no paywall. Built on Tauri so not a dumb electron app

          • orygin@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            1日前

            Yaak has a commercial paywall if you use the pre-built binaries. You can easily build it yourself without licensing tho

        • FishFace@piefed.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          1日前

          I thought this article was complaining about something that no-one used, but here you are recommending alternatives… alternatives that are not curl

        • codemankey@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          2日前

          Still has an open source version tho: https://www.usebruno.com/pricing

  • flamingos-cant (hopepunk arc)@feddit.uk
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    2日前

    You can pry wget from my cold, dead hands.

    • sga@piefed.social
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      2
      ·
      2日前

      they are different things, wget and curl do not have many overlapping use cases other than downloading stuff over http

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2日前

    I’m very early stages on making my own TUI for http requests that’s shortcut based. Idea is to use Jetbrains format http files. Folders for projects, sidebar for requests etc.

    Supports environments and I’m hoping I can set up the main screen to use Vim.

    It’s born out of postman hate mostly. It’s just so bloated

  • chasteinsect@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    1日前

    It’s been awhile since I had to deal with web requests. Back then I used Postman (back when I still used Windows). Now I try to always get by using the simplest open source tools for the job so thanks for sharing, will try it out.

    I knew of curl but always thought of it as a tool to play around when doing simple requests, never knew people go so far with it.

  • Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    2日前

    This is beautiful. I’ma send this to my coworkers.

    • QuazarOmega@lemy.lol
      link
      fedilink
      arrow-up
      2
      ·
      2日前

      With none other than…

      • 𝚝𝚛𝚔@aussie.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        7時間前

        Outlook. In HTML format. With a giant signature that includes an embedded image.

        Also the image is a 2400px image that has been resized using width and height attributes.

        • QuazarOmega@lemy.lol
          link
          fedilink
          arrow-up
          1
          ·
          16分前

          Oh lord, don’t tell me it’s also laid out with tables, too? 😭

  • TJA!@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    2日前

    That’s great. I like a GUI. I also do not like whatever postman is. So I have to suffer until I find something that works for me

    • PortNull@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      7
      ·
      2日前

      Httpie desktop? Bruno https://www.usebruno.com/?

      • TJA!@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        2日前

        Bruno Looks interesting. I think the last time I read about it it was very new, I might need to give it another try. I hope it will not end up like postman or insomnia.

        The first thing I see when opening the httpie app website is a “we now have ai” pop-up. So probably not that one.

        • PortNull@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          2日前

          Ah has ai made it to httpie now too? Shame.

  • PortNull@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    2日前

    Somewhere in between is https://hurl.dev/index.html

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.54K users / day
  • 5.3K users / week
  • 8.96K users / month
  • 19.2K users / 6 months
  • 5 local subscribers
  • 27K subscribers
  • 1.85K Posts
  • 69.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org