GithubHelp home page GithubHelp logo

Finish InterfaceOverview macro about kumascript HOT 4 CLOSED

mdn avatar mdn commented on June 16, 2024
Finish InterfaceOverview macro

from kumascript.

Comments (4)

a2sheppy avatar a2sheppy commented on June 16, 2024 1

from kumascript.

jpmedley avatar jpmedley commented on June 16, 2024

I generally like the idea but I'm concerned about usability. Let's say I'm reading child.doStuff() and I see a link that just says getStuff(). When I click on it I'm now on a page titled parent.getStuff(). This is potentially disorienting, especially if I'm new to development. I'm also now browsing in the parent context when it's the child I'm interested in.

To say this another way, I think labeling has to be done thoughtfully and carefully for this to work.

from kumascript.

a2sheppy avatar a2sheppy commented on June 16, 2024

@jpmedley - Those are good points, although I point out that in this case we're talking solely about the macro that generates a list of links with brief summaries for all the items in an interface and not about general in-context links.

Still, this is probably a good argument for keeping the inherited stuff and the things from mixins listed separately. Then you could have a list like:


Attributes

BarInterface provides the following attributes. In addition, it inherits attributes from the FooInterface interface and implements the Bingo and Bongo mixins.

barattrib1
     Summary of the first attribute implemented on BarInterface.
...
barattribN
     Summary of the last attribute implemented on BarInterface.

Inherited from FooInterface

fooattrib1
     Summary of the first attribute implemented on FooInterface.
...
fooattribN
     Summary of the last attribute implemented on FooInterface.

Implemented from the Bingo mixin

bingoattr1
     Summary of the attribute implemented from the Bingo mixin.

Implemented from the Bongo mixin

bongoattr1
     Summary of the attribute implemented from the Bongo mixin.


Of course, all the code terms in there are links to the appropriate section or page.

That way, all the information is available, hopefully without confusing users when links to go other interfaces or to mixins.

from kumascript.

ExE-Boss avatar ExE-Boss commented on June 16, 2024

Also, this macro currently leaks unclosed <dl> tags, as can be seen here.

from kumascript.

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.