-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: explicit method defs for HTTP verbs #1168
Comments
Hi @dduugg, rather than explicitly defining the methods, I'd explore a documentation-friendly solution. Does that work nicely with the points you mentioned above? |
Hi @iMacTia, thanks for the reply. I don't think the problem is solvable with documentation. Could I trouble you to elaborate on the resistance to explicit definitions? I think that would better frame the discussion. For instance, a documentation approach is likely just as verbose (counting various |
There are mainly 2 points that put me on the fence with this change.
But instead of focusing on my resistance to this change, I'd rather discuss about what sort of advantages we're trying to introduce here. I completely understand the issue you're describing and I actually think we should try to solve it if possible! |
Hi @iMacTia, thanks for your reply. We've switched to a different library with better API discoverability and tooling support, but I'll share my thoughts in case you find them useful.
Just trying to provide some honest (and hopefully useful) feedback here. I still appreciate the time and effort on this contribution to OSS. |
Hey, thanks for all your hard work on Faraday! I know this is an old issue, but I tend to agree that discoverability is a bit of an issue. I am working on some middleware and I added this section to my README. My library is geared toward someone who might not have used Faraday before, so it's incumbent on me to explain things. I'll say (somewhat hesitantly) that it wasn't easy to puzzle things out. |
@gurgeous I agree documentation is definitely a front where we could be doing a better job (although we started tackling this by launching the Faraday Website), but I don't see how the suggestion in this issue is going to solve your specific point. Maybe I'm missing the point because I'm simply used to work in a different way, but if I don't know how to use a library I don't rely on autocomplete and guessing to know what to do. Hence why I think an improved documentation (visual or in the code) is the way to solve this. |
Not in my case. My expectation was to be able to do Thanks again for hearing us out. |
I love the Faraday Website! Maybe I can submit a PR with a few suggestions? Happy to help out. I think that sort of effort always pays off for newcomers. Let me know if you would be interested. In terms of |
@gurgeous We are interested in documentation Pull Requests, find the Thanks for caring about Faraday users! |
@gurgeous absolutely! We always welcome help on improving the documentation or the website, as things that are obvious for us maintainers may not be as obvious for users. Plus we really struggle with time and that often comes at a cost for the documentation. Actually, documentation would be in a much worse state if it wasn't for @olleolleolle continued efforts 😄! On the What I was not very fond of, was the introduction of explicit methods like the following:
But if we can fix |
No worries about time constraints. Never feel bad for being an open source maintainer! We appreciate your efforts regardless. I've been there too... I'll start a discussion re: docs to make sure we are on the same page. |
@iMacTia How would a user know to look into Thanks, as always, for hearing me out. |
It seems the top-level HTTP verb methods (e.g.
Faraday.get
) are handled viamissing_method
proxying to thedefault_connection
ivar. In addition to being a tad inefficient (admittedly a minor concern compared to typical network request latency), it causes issues with various tools:pry
,solargraph
, etc.Would you be amenable to replacing this implementation with explicit method definitions?
The text was updated successfully, but these errors were encountered: