Coder Social home page Coder Social logo

Comments (8)

asheshambasta avatar asheshambasta commented on August 12, 2024

+1

from riak-js.

janearc avatar janearc commented on August 12, 2024

The examples are not even really helpful from the standpoint of "I just want to do X simple task." It would be much better to have a markdown document here, on github, to look at that was higher-readability (the color scheme is difficult to read) and documented it like an API instead of advertising copy. Further, if riak-js.org goes offline for whichever, the docs, such as they are, are gone.

from riak-js.

Neamar avatar Neamar commented on August 12, 2024

You're right.

Maybe we should move the current readme to a changelog (or use github releases) and give some examples on the readme, that's more common on github.

Any thoughts from previous maintainers on this point?

from riak-js.

gigonaut avatar gigonaut commented on August 12, 2024

yeah, I agree making the readme a bit more github friendly is a really good idea. Does not absolve us from doing something better with the pages branch that houses the current docs along with the domains that point to them.

from riak-js.

janearc avatar janearc commented on August 12, 2024

The standard convention is a README.md file in the project root that documents each of the calls in the api. If you read the npm documentation, it goes further to suggest an example directory with obvious purposes.

I am not sure why this was not done to begin with. I'd offer to write it myself, but the library has proved difficult for me to understand at all; I just wrote my own instead.

from riak-js.

gigonaut avatar gigonaut commented on August 12, 2024

All valid points, solid documentation is a good and important thing as is logical and consistent organization of that documentation across libraries in the space. Hopefully we will be able to get this one resolved when the riak 2 stuff goes out.

from riak-js.

rm-rf-etc avatar rm-rf-etc commented on August 12, 2024

I agree with the above points. I'm currently conflicted about which riak client–riak-js or nodiak–I am better off using and supporting. While this project has a good amount of activity in the issues section and a long list of people who have made small contributions, the docs and lower readability of the code itself, along with nodiak being listed / linked on the basho website (and riak-js not), has given me reason to consider nodiak more so than riak-js. I've found it easy to add support to nodiak for fetching objects using riak 2.0 bucket-types.

The main issue that I take with riak-js.org is that the examples don't cover the basics first. Document creation needs to come before metas, protobuffs, load balancing, etc. As a first-time NoSQL user, I want to create a user object, and then create a few more associated objects, do some kind of relational lookup (search), and make some updates. Instead, the order on riak-js.org is:
• create a client
• do something with a protocol buffer (I don't even know what these are yet)
• load balancing and connection pooling (I don't have a load to balance yet)
• fetch a document
• meta objects
• ...
It seems there isn't a section on creating documents. The first mention of a PUT appears to be in the section "Callbacks".

The history log in the readme is nice but would be better as a separate doc, with a 'hello world' example in the readme.

from riak-js.

janearc avatar janearc commented on August 12, 2024

Please note that "being listed on the basho website" only requires submitting a PR and doesn't imply any endorsement or suitability.

from riak-js.

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.