Giter Club home page Giter Club logo

Comments (3)

niwinz avatar niwinz commented on June 9, 2024

I have not included it because the implementations of that can be very heterogeneous and I don't want condition the people. it is not enough cleat that is a hypothetical function for admin checking ?

from buddy-auth.

deadghost avatar deadghost commented on June 9, 2024

I generally don't like hypothetical functions in documentation because when I'm unsure what it is supposed to do, I immediately scroll back to try to find the definition. It's not necessarily bad, but I think it's certainly a documentation smell where we can suspect something could have been explained better.

The missing function in question is found in 6.2. Rules Handlers. I think the true issue is that I would like to know how to write a rule handler but there are gaps in the documentation showing how to do so.

As for implementations being heterogeneous, I'm not sure what the problem with that is. If the written examples work and are of good, idiomatic quality, who cares if they copy paste the code and adapt it to their purposes?

I don't think I have ever complained about something having too much documentation or too many examples.

from buddy-auth.

niwinz avatar niwinz commented on June 9, 2024

I have thought about this, and I understand your arguments, but define all hypothetical rule handlers used in examples is not assumible. The concrete example is the admin-user it can be defined in 100 different ways and some one will need a database access for check if a user is "admin". That is completely out of scope. Providing a simple dummy example definition is completely useless in my opinion.

The documentation comes with an example of the aspect of one rule handler, this can be extrapolated to all hypothetical examples. I have added in some parts the note that that in the the examples are hypothetically defined rule handlers.

In any case, thanks for your suggestion. I appreciate much that!

from buddy-auth.

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.