Working examples for upcoming version
Working examples for upcoming version
Since Allan has asked for suggestions to improve the examples in his upcoming release I thought I would kick it off in a new thread.
First of all, the examples are a lot of "busy" work to get going. You have to create a database for whatever flavour of Server, and if you do not use MySQL then you might have some interpretation to do. My suggestion is to use Sqlite for all examples. You can create a very small and simple downloadable and usable database for the examples and the user can very simply run the code and play. Once they get it going the way they like this then is the template for their own chosen database.
I think it is imperative to have a fully working solution with no chance that a user can miss a required step or introduce an error in the creation process. A ground zero, guaranteed to work on any system would sure help with the learning process.
First of all, the examples are a lot of "busy" work to get going. You have to create a database for whatever flavour of Server, and if you do not use MySQL then you might have some interpretation to do. My suggestion is to use Sqlite for all examples. You can create a very small and simple downloadable and usable database for the examples and the user can very simply run the code and play. Once they get it going the way they like this then is the template for their own chosen database.
I think it is imperative to have a fully working solution with no chance that a user can miss a required step or introduce an error in the creation process. A ground zero, guaranteed to work on any system would sure help with the learning process.
This discussion has been closed.
Replies
The problem with using SQLite is that not all server environments are setup for it. It will also likely need paths configured, and if someone has never used SQLite before, it can have a small learning curve to get used to the idea that a single file is a database and needs to be configured as such.
I think this applies to all server-side environments - its not trivial (sadly) to provide a framework which will work for everyone. In fact the only 'out of the box' example which will run immediately, is a localStorage one, of which there is an example: http://editor.datatables.net/release/DataTables/extras/Editor/examples/localstorage.html .
The approach I've taken at the moment is to try and keep the installation instructions generic, since there are just so many options available.
Allan
No one can expect example libraries in every popular platform. Even just within .NET there are many popular ways to talk to databases: EF, DBMS-specific queries, and nHibernate.