- configuration file. It's unclear now if the format of the
configuration
file will stay in json. It make it really difficult to edit, so
format will be probably changed to some erlang config format (my
preference) or ini (let me know what you prefer);
--
You received this message because you are subscribed to the Google Groups "CouchApp" group.
To post to this group, send email to couc...@googlegroups.com.
To unsubscribe from this group, send email to couchapp+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/couchapp?hl=en.
didn't know alwaysdata was doing that. Do you know how they do that?
> Secondly, should I wait to write a new CouchApp until the Erlang-based
> CouchApp is ready? (This kind of goes hand-in-hand with a migration
> path.)
use the python version for now
- benoît
I assumed there would me no problem, bacause couchapp (the tool) does
not interfere with the .js, .html, .css files that make up a CouchApp
(your application), and the layout of the files in the filesystem
pretty much follows the organization of the components within CouchDB.
It would be like switching from svn to git.
Have I missed something, Benoit?
BTW, congrats and thanks for the Erlang version of couchapp, Benoit. I
am a big fan of couchapp
--
Luciano Ramalho
supervisor de desenvolvimento || software development lead
BIREME/OPAS/OMS || BIREME/PAHO/WHO
Firstly, without couchapp (the tool) I probably wouldn't have gotten
into CouchDB as much as I seem to have - including going to couchcamp
-woot! So thank-you Benoît and J Chris for the work that has & is
going into this. Having a native erlang couchapp tool will undoubtedly
allow us to do more cool stuff in future, and I agree its one less
thing people need to install. It will be a Good Thing :-)
CouchApps and CouchDB is an awesome way to introduce people to json,
jquery, ajax and web apps, with a very low barrier to entry, and to
extend through to clustering and real-world issues around CAP theorem,
bandwidth and latency constraints again without needing the complexity
of (say) Oracle RAC or MySQL clustering, or tackling Erlang to
illustrate the points. It's an absolutely awesome way to bring web
application programming to students.
So I still think there's space for a simple multiplatform executable
couchapp tool to allow people to start learning CouchDB, and building
and sharing P2P Couch Apps, possibly without even a local CouchDB.
Imagine schools, universities just having couchapp.exe installed, and
providing students a hosted CouchDB for their project. The current
couchapp tool in python, with the packaging Benoît has added for
windows and mac, does provide most of the core functionality people
need already. If it had direct support for ddocs of a different name
it would probably be perfect "as is". Docs for evently and $.couch are
improving all the time - it's coming together nicely.
Long story short, my gut feel is that having erlang + all its glorious
syntax is an additional hurdle that beginners shouldn't need until
later on - futon for admin, basic javascript and a simple push/pull
tool is a *great* starting place. Is there interest in the community
maintaining the python-based couchapp to support an easy on-ramp to
CouchDB?
Cheers
Dave
Chris
Typed on glass.
I'm confused it's a little different from the couchapp tool. That was
my idea at couchcamp but since i didn't see real any support in...
On the other hand couchapp can be seen as a library and a tool, the
library would manage the transformations from fs to json, and the tool
could be used to deploy from anywhere and not only to send design docs
(it's already used to send any docs) . Is this what you mean?
- benoît.
I'm not sure to follow :) I don't want to force people to learn
erlang. couchapp in Erlang won't change anything for users and since
the config format will be kept in JSON it will be the same thing but
improved. My point here is to ease the usage of Couchapp so people can
extend it not only in Python but using any languages via hooks.
Why Erlang?
First, because, I really like the tool you could design with Erlang.
The code is a lot more simple than the python one, and pattern
matching help a lot in this case.
Second the Erlang version version like the Python one could be
extended easily (plugins will exists) and we could imagine people to
design their own command/extension tool. As an example , adding
compass to current Couchapp is a just a matter of 10-20 lines of
codes, adding compression is also easy (see the compress hook) ,
autopush is a Couchapp extension too, and you can even write your own
layer on top:
- Eclipse extension
- Coffeeapp https://github.com/joshbohde/coffeeapp
This will be the same in the Erlang version. And even better you will
have the possibility to write it in the language you want, not only in
python.
Third, maybe we could imagine to distribute Couchapp with CouchDB and
some elements of Couchapp could be used to manage the system described
by jchris.
About the Python version, I'm speaking about it in another thread.
Did I answer to your questions ?
- benoit
On Thu, Apr 7, 2011 at 5:12 AM, Dave Cottlehuber <da...@muse.net.nz> wrote:
> Long story short, my gut feel is that having erlang + all its glorious
> syntax is an additional hurdle that beginners shouldn't need until
> later on - futon for admin, basic javascript and a simple push/pull
> tool is a *great* starting place. Is there interest in the community
> maintaining the python-based couchapp to support an easy on-ramp to
> CouchDB?
>
On Sat, Apr 9, 2011 at 3:38 PM, Dave Cottlehuber <da...@muse.net.nz> wrote:
> On 10 April 2011 01:17, Benoit Chesneau <bche...@gmail.com> wrote:
>>
>> On Thu, Apr 7, 2011 at 5:12 AM, Dave Cottlehuber <da...@muse.net.nz> wrote:
>> > Long story short, my gut feel is that having erlang + all its glorious
>> > syntax is an additional hurdle that beginners shouldn't need until
>> > later on - futon for admin, basic javascript and a simple push/pull
>> > tool is a *great* starting place. Is there interest in the community
>> > maintaining the python-based couchapp to support an easy on-ramp to
>> > CouchDB?
>> >
>>
>
> Salut Benoît!
> Sorry I wasn't clear here; I was thinking mainly of 2 things:
> - the config file. I agree its not a big issue to learn erlang syntax for
> the file however.
this issue is now fixed :)
> - more was, today you can start with CouchDB using a hosted couch, and just
> have couchapp.exe on your mac/pc/whatever. so it's really quick to get
> going. If you need to install erlang/couchdb as well we make it more
> difficult to start.
That's indeed a good point.
>but what jchris posted, saying we can get couchdb to
> "watch" a folder from the browser sounds much better.
from the browser isn't really possible since the browser don't have
direct access to the filesystem (or at least shouldn't be), probably
possible by an extension though. I think the is idea is to have a
couchdb installed and with a switch in the config tell him to watch a
folder as a design doc.
- benoît