Comments (8)
+1
from riak-js.
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.
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.
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.
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.
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.
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.
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)
- Can't get pooling to work HOT 7
- How to perform "range with terms" queries on 2i
- Bug running on node 0.10.x HOT 4
- db.save not saving custom headers
- riakjs.com is confusing
- New low-level streaming protobuf Riak client
- Link Two Keys in a bucket - Loosing the values for the keys
- Riak Secondary Indexes
- Saving meta with an arobase in a 2i key throws an error
- Support for counters?
- Support for Riak 2.0 ? HOT 1
- Riak 2i for protobuf
- Riak 2.0? HOT 14
- Fails to install under 0.11 due to dependency failure (wtf8)
- riak-js.org Site temporarily disabled HOT 4
- 1.0.0 dropped support for getClient(), which is still used in docs HOT 1
- Basic connection fails with node v0.10.35 & riak-js 1.0.3 HOT 2
- No method getClient HOT 2
- Cannot call method 'toString' of undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riak-js.