GithubHelp home page GithubHelp logo

Very poor doc experience in iex about ex_aws HOT 3 CLOSED

ex-aws avatar ex-aws commented on August 26, 2024
Very poor doc experience in iex

from ex_aws.

Comments (3)

benwilson512 avatar benwilson512 commented on August 26, 2024

Let me offer an analogy. Presumably you're familiar with Ecto. Definitely not prototype software.

image

You misunderstand what ExAws.S3 is. It operates in a manner very similar to an Ecto Repo, in that it simply implements the callbacks defined in a behaviour module, in this case ExAws.S3.Client. The documentation and typespecs are associated with the callbacks, they are not and to my knowledge cannot be injected into every module that implements that behaviour via use ExAws.S3.Client.

I do see your point though, in that it would be nice to be able to point people to a good module for documentation in iex. If you do h ExAws.S3.Client you get the moduledoc but not the callback docs. Perhaps there's a way to access that via h/1.

from ex_aws.

benwilson512 avatar benwilson512 commented on August 26, 2024

From what I've gathered on IRC it is not possible at this time to get the docs for individual callbacks from h/1 in iex. This is definitely unfortunate, and you should consider making an issue for it there. However, this isn't anything to do with ExAws. I will add a note to the moduledoc of the S3, Dynamo and so on modules to make it clear that you should look at the docs in the .Client modules.

from ex_aws.

myronmarston avatar myronmarston commented on August 26, 2024

Presumably you're familiar with Ecto.

Barely. I'm very new to Elixir and have played with Ecto for a day or so but that's it. I don't remember having any particular problem getting docs for ecto in iex. For the specific example you showed, it at least names the arguments to the ecto function. For ExAws, the arguments are named in iex as arg0, arg1, etc, which gives no suggestion about their purpose. Is it possible to at least get the arguments named in the minimal bit displayed in iex?

Anyhow, being new to elixir, I confess I don't understand what the issue with behavior modules and callbacks is that prevents the docs from being usable in iex. Seeing the method signature with arg0, arg1, etc made me initially think that ExAws was just a prototype (or in some alpha status) and not something I should bother with trying yet. If it's going to remain like that (and it sounds like it is, due to elixir restrictions), I'd recommend adding a note to your README to mention that this is a known, unsolvable issue due to elixir restrictions and that folks should consult the hexdocs.pm docs instead. That'll help keep new users like me from getting frustrated and thinking this is just a prototype.

Thanks!

from ex_aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.