Live data from Hacker News

Just Use Curl

justuse.org

71–80 of 154 posts

Re: Just Use Curl

#71

Earlier quoted context omitted.

I use both. It's quite convenient to have all the collections available and just send the request with a couple of clicks.

For repeated commands, my projects have a Make/Just file that has cURL commands I wanna validate. Sometimes I even load JSON from a tests/fixtures/*.json file, that also can be reused for other non-E2E tests. Not sure how some developers could be so allergic to the terminal, don't you already spend a lot of time there?

> Not sure how some developers could be so allergic to the terminal, don't you already spend a lot of time there?

Who says I'm allergic to the terminal? I already stated that I use curl.

I could also ask why are some developers so allergic to any kind of UI. And they're very vocal about it. Just use whatever you want.

Re: Just Use Curl

#72

[flagged]

To a degree, I understand when people do it when speaking. It can easily be a bad habit, it can slip, it can be your age and the influences around you. When it comes to doing it in a written blog post that you hope other people will read? Boggles the the mind.

This might just be a cultural thing.

Using swearing for emphasis is a non-event where I am. You'll find it equally in documentation as in conversation. There is no taboo around it. It isn't considered to be some "bad habit".

We're two decades removed from "Where the bloody hell are you?" [0] You won't find many people reacting to swearing over here as if it's unprofessional. It's just another emphatic.

[0] https://en.wikipedia.org/wiki/So_where_the_bloody_hell_are_y...

Re: Just Use Curl

#73

I might get lit on fire for this, but I don't find manpages very easy to use. If want to quickly remember an option or argument order, I am met with a wall of text. Does anyone have tips for how to make it more useful? Maybe I could grep better for options? For example in the link, the author lists out common curl commands like making a POST request or adding a header. If you tried to look through the manpage for thi…

> Does anyone have tips for how to make it more useful? Maybe I could grep better for options? For example in the link, the author lists out common curl commands like making a POST request or adding a header. If you tried to look through the manpage for this, this would take a long time.

You can search a man page by pressing the '/' key, typing in what you want, and pressing 'enter'. 'n' jumps to the next instance of your search string 'N' jumps to the previous instance.

Re: Just Use Curl

#74
post #37

I use httpie (not httpie actually, https://github.com/ducaale/xh but it has the exact same ux). For the life of me, I can't remember curl flags for some reason. Even fucking -X POST... Sending JSON is pain too. For quick and easy http requests, httpie has been fantastic.

xh is mandatory Rust rewrite of httpie :)

Re: Just Use Curl

#75
post #52
post #14

> The UI/UX is perfect While I like curl, this is highly subjective, some people just prefer a GUI that can guide you and/or be visually explored. This whole piece also reads like someone is quite angry at people preferring a different workflow than them. Some aspects, like shell history, are also not the magic bullet they propose here as it doesn't, e. G., cover the actual responses. Curl's ability to do almost ever…

Not to mention saving headers, tokens, doing multiple requests using the results from the previous, etc. This guy would say "just use bash" and ignore the average user experience.

You can do all that in a shell script though

Re: Just Use Curl

#77
post #15

After decades it should have been obvious by now that the vast majority of users prefer GUIs.

Yeah, hence why no one uses terminals for doing work with git, codex, claude-code, neovim and curl, everyone and their mother are using desktop GUIs for those things, clearly.

The ‘vast majority’ using GUIs as mentioned by the parent doesn’t preclude individuals using CLIs.

Re: Just Use Curl

#79
post #14

> The UI/UX is perfect While I like curl, this is highly subjective, some people just prefer a GUI that can guide you and/or be visually explored. This whole piece also reads like someone is quite angry at people preferring a different workflow than them. Some aspects, like shell history, are also not the magic bullet they propose here as it doesn't, e. G., cover the actual responses. Curl's ability to do almost ever…

Just fyi: the writing style is a meme. I think it's following the "just use html"[0] format (though, that may be its own riff on the meme). Not to detract from you point; just to say that the author is probably not as angry as this could make them seem. [0] https://justfuckingusehtml.com/

Thanks! I didn't know this gem, definitely saving it.
Post reply on HN