also i hope the curl joke is correct i don’t use it that much

also i hope there are itysl fans here

    • marighost@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      14 hours ago

      The few times I do use curl, all I can think of is this sketch. Glad there are some TR fans here too 😁

    • De Lancre@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      8 hours ago

      Now you have syntax highlighting and JSON parsing. Total install size: ~10MB. Total startup time: instant. Total RAM usage: negligible. Total feelings of superiority: immeasurable.

      As someone who often does curl API requests and also come up to idea of putting them in jq — I felt superior just by reading this, thank you

    • azimir@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      12 hours ago

      I feel bad that I read that page in Chrome. I’m a failure of a techie.

      Tomorrow I must atone by teaching more students terminal commands. Maybe using web API calls with cURL. Or get and some eviloverlord.com quotes?

      • krashmo@lemmy.world
        link
        fedilink
        arrow-up
        48
        ·
        1 day ago

        I really like that the link at the bottom of the page says “check out more stuff you should be using” but that URL takes you to a page where the curl article is the only link.

        “more coming soon. Or not. I don’t owe you shit”

        A majestic site indeed. Bravo sir.

    • Hadriscus@jlai.lu
      link
      fedilink
      arrow-up
      5
      ·
      18 hours ago

      the hostility is hilarious 😂

      especially since I had no idea what any of it means 😂 and yet it manages to sound so obvious

      • luciferofastora@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        12 minutes ago

        The low-tech version of it is that there is a certain technical way of asking computers for stuff, usually across the Internet. To do that as a human, for instance to build a system that can ask or answer these questions, there are a few different tools.

        One is Postman, which is a fancy, graphical tool that essentially loads a full browser for interacting with parts of the question, sending it and displaying the answer. Of course, it’s a commercial product, so some nice features are locked behind paywalls. The full browser also requires more memory and more time to load.

        Another is cURL (alias curl), which is a command line tool, meaning you just enter the various parts of the question as text. It’s a little less convenient for more complex questions to remember how to specify the question’s parts and adjust them, because instead of a nice table where you enter them, you have to type it in text, but you can use various other features of the command line to make it easier for yourself. In some cases such tools may have advantages over the graphical ones, allowing you to do things the other can’t do (or at least not easily).

        The whole page is a rant about people using the heavier and commercial graphical tool instead of the lighter and freely available command line tool. It’s a tongue-in-cheek continuation of an old argument in some software developer circles, where you will have people who prefer to use certain graphical tools and others that not just prefer command line tools (or generally text-based code), but also feel like everyone should just use them instead. For some, that’s just friendly banter. For others, it’s a deeply ideological conviction.

        Personally, I’d suggest that people use whatever works for them and their team. For example, I have little choice but to use a mostly graphical tool because I work together with people who don’t have the time to learn the text-based options. They might be a great tool for me, but if my work is unusable to others, that makes it harder to work together (and accordingly means that I’d be stuck doing everything myself, which I frankly don’t have the time for).

    • funkless_eck@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      15 hours ago

      the sketch is about reselling hair serum to bald men, he controls them because he threatens to withhold the serum unless he can dictate their haircuts.

      “You plant the seeds, you get to look at the trees!”

  • synae[he/him]@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    68
    ·
    1 day ago

    whenever someone at work says they have trouble with a web service or api I’m like “Idk I can curl it just fine, what’s your request look like” and you would not believe how many developers get confused by this question. It’s so goddamn frustrating

    • Cousin Mose@lemmy.hogru.ch
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      I get the same confusion when I prove someone wrong using a universal curl example. The same guy that parses JSON by hand (rather than use a library) can’t remember how to fucking use curl.

      • luciferofastora@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        4 minutes ago

        The same guy that parses JSON by hand (rather than use a library)

        Of course I know him. He’s me.

        Or a past version of me anyway that was too dumb for its own good and also tried to do datetime stuff and several other complex things. Daft moron, that guy. Glad I don’t have to work with such idiots any-

        Looks at coworkers

        Glad I can now look down on such-

        Looks at own work

        You know what, never mind.

  • pelya@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    1 day ago

    Recursively dumping all data from the server was always a wget thing, it will create a nice directory structure for you and will also convert links in webpages to point to your local file system.

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    7
    ·
    20 hours ago

    aria2c -c -x 10 -k 5M rocks. Faster and more persistent than Firefox’ built-in downloader, while still working on most servers.