You are viewing a plain text version of this content. The canonical link for it is here.
Posted to couchapp@couchdb.apache.org by Benjamin Young <by...@bigbluehat.com> on 2015/11/13 15:17:49 UTC
Simple Things
Hi all!
My head is full (after over half a decade) of doing CouchApp stuff, and I've got so much I want to share I keep putting it off until I've "got it all sorted." :-P But no more!! ;)
Here's one (of a countless host) of ideas / things / possible-actions for this little group of CouchApp-ers to consider hacking on, improving, etc, etc, etc.
CouchApp development is (still) like hiking with rocks in your shoes. The hike is still great! The vistas fabulous. The destination worth the trip. However! It's still more painful than it should be. :( Which, consequently, is why people don't often make it very far from the base camp...
One situation is hacking together a simple CouchApp from a browser-not something so advanced as what ddoc.me provides-but more like "copy/paste JS into some JSON for a show or update."
JSON (as you're all too well aware) doesn't support line breaks. Consequently, one of the major pain points when working with JS in JSON is escaping it to line breaks. Futon didn't do this. Fauxton still doesn't do this. Neither of them have editors for "updates" or "shows" or anything else CouchApp related. Ddoc.me (as mentioned) is fab for an "all in" environment, but I literally just want a copy/paste JS to "\n" escaped, JSON friendly field. :-P That's it. ;)
For instance. Here's a small Webhook supporting CouchApp I wrote 2 years ago (my how time flies...): http://github.com/bigbluehat/weblatch
Today, I wanted to install it into a Cloudant database. It's so tiny (smaller than this email...) that I didn't want to `git clone`, `couchapp push . http://...`<http://...%60> the thing. I just wanted to copy/paste the update function into the JSON editor...but of course, it doesn't do "\n" escaping, and waiting on that to be supported is...not worth the wait.
So...some options:
- A small bl.ocks.org style service that takes GitHub and/or Gist URLs and turns them into CouchApp ready .json files-if they have a _id and/or .couchaprc maybe
- A simple text field to paste JS into that outputs it as a "\n" escaped string (this one's easiest)
There are many more ideas beyond this (GitHub services, etc), but for now, I just want to paste some JS somewhere and get some JSON friendly text string on the other side. ;)
k. I'm done for now. I hope to make more time to catch up on the other threads, post more random thoughts from my fevered brain, and finally, finally, finally get CouchApps on their feet...sans rocks. ;)
Hug the family for me,
Benjamin
--
http://bigbluehat.com/
Re: Simple Things
Posted by Johs Ensby <jo...@b2w.com>.
Benjamin,
I really like your approach:)
Taking the small everyday things and putting them properly on Github.
It could become a great collection for starters.
Johs
> On 15. nov. 2015, at 04.42, Benjamin Young <by...@bigbluehat.com> wrote:
>
> Agreed, johs!
>
> Personally, I'm beginning to work hard at taking these rocks out of my own shoes and tossing code up as I have it (or finding the old bits of junk I've done and pushing them online). I'll be sending in a couple of those shortly, in fact. :)
>
> -----Original Message-----
> From: Johs Ensby [mailto:johs@b2w.com]
> Sent: Friday, November 13, 2015 11:56 AM
> To: couchapp@couchdb.apache.org
> Subject: Re: Simple Things
>
> Benjamin,
> I too think that what is missing is to reveil more of the simplicity of Couch with some super simple tools.
> The problem my be that what is needed is too simple for developers to bother put in online.
> Make a list, and I think this thread migth surprise you:) Let's celebrate simplicity
>
> johs
>
>
>> On 13. nov. 2015, at 15.29, Benjamin Young <by...@bigbluehat.com> wrote:
>>
>> JSON (as you're all too well aware) doesn't support line breaks.
>> Consequently, one of the major pain points when working with JS in
>> JSON is escaping it to line breaks. Futon didn't do this. Fauxton
>> still doesn't do this. Neither of them have editors for "updates" or
>> "shows" or anything else CouchApp related. Ddoc.me <http://ddoc.me/>
>> (as mentioned) is fab for an "all in" environment, but I literally
>> just want a copy/paste JS to "\n" escaped, JSON friendly field. :-P
>> That's it. ;)
>
RE: Simple Things
Posted by Benjamin Young <by...@bigbluehat.com>.
Agreed, johs!
Personally, I'm beginning to work hard at taking these rocks out of my own shoes and tossing code up as I have it (or finding the old bits of junk I've done and pushing them online). I'll be sending in a couple of those shortly, in fact. :)
-----Original Message-----
From: Johs Ensby [mailto:johs@b2w.com]
Sent: Friday, November 13, 2015 11:56 AM
To: couchapp@couchdb.apache.org
Subject: Re: Simple Things
Benjamin,
I too think that what is missing is to reveil more of the simplicity of Couch with some super simple tools.
The problem my be that what is needed is too simple for developers to bother put in online.
Make a list, and I think this thread migth surprise you:) Let's celebrate simplicity
johs
> On 13. nov. 2015, at 15.29, Benjamin Young <by...@bigbluehat.com> wrote:
>
> JSON (as you're all too well aware) doesn't support line breaks.
> Consequently, one of the major pain points when working with JS in
> JSON is escaping it to line breaks. Futon didn't do this. Fauxton
> still doesn't do this. Neither of them have editors for "updates" or
> "shows" or anything else CouchApp related. Ddoc.me <http://ddoc.me/>
> (as mentioned) is fab for an "all in" environment, but I literally
> just want a copy/paste JS to "\n" escaped, JSON friendly field. :-P
> That's it. ;)
Re: Simple Things
Posted by Johs Ensby <jo...@b2w.com>.
Benjamin,
I too think that what is missing is to reveil more of the simplicity of Couch with some super simple tools.
The problem my be that what is needed is too simple for developers to bother put in online.
Make a list, and I think this thread migth surprise you:)
Let's celebrate simplicity
johs
> On 13. nov. 2015, at 15.29, Benjamin Young <by...@bigbluehat.com> wrote:
>
> JSON (as you're all too well aware) doesn't support line breaks. Consequently, one of the major pain points when working with JS in JSON is escaping it to line breaks. Futon didn't do this. Fauxton still doesn't do this. Neither of them have editors for "updates" or "shows" or anything else CouchApp related. Ddoc.me <http://ddoc.me/> (as mentioned) is fab for an "all in" environment, but I literally just want a copy/paste JS to "\n" escaped, JSON friendly field. :-P That's it. ;)
RE: Simple Things
Posted by Benjamin Young <by...@bigbluehat.com>.
Well...OK...here's one piece of the puzzle.
http://bernhardhaeussner.de/odd/json-escape/
The bl.ocks.org type thing would still be handy. ;) And perhaps making something like this and promoting it to (potential) CouchApp devs would also be wise.
Thanks for reading. ^_^
-----Original Message-----
From: Benjamin Young [mailto:byoung@bigbluehat.com]
Sent: Friday, November 13, 2015 9:18 AM
To: couchapp@couchdb.apache.org
Subject: Simple Things
Hi all!
My head is full (after over half a decade) of doing CouchApp stuff, and I've got so much I want to share I keep putting it off until I've "got it all sorted." :-P But no more!! ;)
Here's one (of a countless host) of ideas / things / possible-actions for this little group of CouchApp-ers to consider hacking on, improving, etc, etc, etc.
CouchApp development is (still) like hiking with rocks in your shoes. The hike is still great! The vistas fabulous. The destination worth the trip. However! It's still more painful than it should be. :( Which, consequently, is why people don't often make it very far from the base camp...
One situation is hacking together a simple CouchApp from a browser-not something so advanced as what ddoc.me provides-but more like "copy/paste JS into some JSON for a show or update."
JSON (as you're all too well aware) doesn't support line breaks. Consequently, one of the major pain points when working with JS in JSON is escaping it to line breaks. Futon didn't do this. Fauxton still doesn't do this. Neither of them have editors for "updates" or "shows" or anything else CouchApp related. Ddoc.me (as mentioned) is fab for an "all in" environment, but I literally just want a copy/paste JS to "\n" escaped, JSON friendly field. :-P That's it. ;)
For instance. Here's a small Webhook supporting CouchApp I wrote 2 years ago (my how time flies...): http://github.com/bigbluehat/weblatch
Today, I wanted to install it into a Cloudant database. It's so tiny (smaller than this email...) that I didn't want to `git clone`, `couchapp push . http://...`<http://...%60> the thing. I just wanted to copy/paste the update function into the JSON editor...but of course, it doesn't do "\n" escaping, and waiting on that to be supported is...not worth the wait.
So...some options:
- A small bl.ocks.org style service that takes GitHub and/or Gist URLs and turns them into CouchApp ready .json files-if they have a _id and/or .couchaprc maybe
- A simple text field to paste JS into that outputs it as a "\n" escaped string (this one's easiest)
There are many more ideas beyond this (GitHub services, etc), but for now, I just want to paste some JS somewhere and get some JSON friendly text string on the other side. ;)
k. I'm done for now. I hope to make more time to catch up on the other threads, post more random thoughts from my fevered brain, and finally, finally, finally get CouchApps on their feet...sans rocks. ;)
Hug the family for me,
Benjamin
--
http://bigbluehat.com/
RE: Simple Things
Posted by Benjamin Young <by...@bigbluehat.com>.
Yeah, costco was a great find years ago! It's one of those things we (or someone at least) should dust off and start maintaining again.
Thanks for the +1 on my evangelism work! It's a habit I haven't been able to shake. ;)
-----Original Message-----
From: Giovanni Lenzi [mailto:g.lenzi@smileupps.com]
Sent: Saturday, November 14, 2015 4:12 AM
To: couchapp@couchdb.apache.org
Subject: Re: Simple Things
Hi Benjamin,
thanks for this interesting idea for a collection of simple things!! This thread could eventually be the starting point to some ad-hoc webpage on the new couchapp.org website, or whatever it will be. Probably some of them may be even useful for future ddoc.me development.
To give more immediate comprehension of these simple things however, I think it would be great to have a simple:) one-line meaningful description for each of them. Some time ago I found this hidden gem on github, developed by harthur:
- https://github.com/harthur/costco: UI for bulk editing CouchDB docs:
update, insert and delete SQL statements equivalent to manipulate your entire CouchDB instance
--Giovanni
P.S. Benjamin, I saw your homepage. Congratulations and thanks for your so long and impressive couch-evangelist experience!
2015-11-13 15:17 GMT+01:00 Benjamin Young <by...@bigbluehat.com>:
> Hi all!
>
> My head is full (after over half a decade) of doing CouchApp stuff,
> and I've got so much I want to share I keep putting it off until I've
> "got it all sorted." :-P But no more!! ;)
>
> Here's one (of a countless host) of ideas / things / possible-actions
> for this little group of CouchApp-ers to consider hacking on,
> improving, etc, etc, etc.
>
> CouchApp development is (still) like hiking with rocks in your shoes.
> The hike is still great! The vistas fabulous. The destination worth the trip.
> However! It's still more painful than it should be. :( Which,
> consequently, is why people don't often make it very far from the base camp...
>
> One situation is hacking together a simple CouchApp from a browser-not
> something so advanced as what ddoc.me provides-but more like
> "copy/paste JS into some JSON for a show or update."
>
> JSON (as you're all too well aware) doesn't support line breaks.
> Consequently, one of the major pain points when working with JS in
> JSON is escaping it to line breaks. Futon didn't do this. Fauxton
> still doesn't do this. Neither of them have editors for "updates" or
> "shows" or anything else CouchApp related. Ddoc.me (as mentioned) is fab for an "all in"
> environment, but I literally just want a copy/paste JS to "\n"
> escaped, JSON friendly field. :-P That's it. ;)
>
> For instance. Here's a small Webhook supporting CouchApp I wrote 2
> years ago (my how time flies...):
> http://github.com/bigbluehat/weblatch
>
> Today, I wanted to install it into a Cloudant database. It's so tiny
> (smaller than this email...) that I didn't want to `git clone`,
> `couchapp push . http://...`<http://...%60> the thing. I just wanted
> to copy/paste the update function into the JSON editor...but of
> course, it doesn't do "\n" escaping, and waiting on that to be supported is...not worth the wait.
>
> So...some options:
>
> - A small bl.ocks.org style service that takes GitHub and/or
> Gist URLs and turns them into CouchApp ready .json files-if they have
> a _id and/or .couchaprc maybe
>
> - A simple text field to paste JS into that outputs it as a "\n"
> escaped string (this one's easiest)
>
> There are many more ideas beyond this (GitHub services, etc), but for
> now, I just want to paste some JS somewhere and get some JSON friendly
> text string on the other side. ;)
>
> k. I'm done for now. I hope to make more time to catch up on the other
> threads, post more random thoughts from my fevered brain, and finally,
> finally, finally get CouchApps on their feet...sans rocks. ;)
>
> Hug the family for me,
> Benjamin
> --
> http://bigbluehat.com/
>
Re: Simple Things
Posted by Giovanni Lenzi <g....@smileupps.com>.
Hi Benjamin,
thanks for this interesting idea for a collection of simple things!! This
thread could eventually be the starting point to some ad-hoc webpage on the
new couchapp.org website, or whatever it will be. Probably some of them may
be even useful for future ddoc.me development.
To give more immediate comprehension of these simple things however, I
think it would be great to have a simple:) one-line meaningful description
for each of them. Some time ago I found this hidden gem on github,
developed by harthur:
- https://github.com/harthur/costco: UI for bulk editing CouchDB docs:
update, insert and delete SQL statements equivalent to manipulate your
entire CouchDB instance
--Giovanni
P.S. Benjamin, I saw your homepage. Congratulations and thanks for your so
long and impressive couch-evangelist experience!
2015-11-13 15:17 GMT+01:00 Benjamin Young <by...@bigbluehat.com>:
> Hi all!
>
> My head is full (after over half a decade) of doing CouchApp stuff, and
> I've got so much I want to share I keep putting it off until I've "got it
> all sorted." :-P But no more!! ;)
>
> Here's one (of a countless host) of ideas / things / possible-actions for
> this little group of CouchApp-ers to consider hacking on, improving, etc,
> etc, etc.
>
> CouchApp development is (still) like hiking with rocks in your shoes. The
> hike is still great! The vistas fabulous. The destination worth the trip.
> However! It's still more painful than it should be. :( Which, consequently,
> is why people don't often make it very far from the base camp...
>
> One situation is hacking together a simple CouchApp from a browser-not
> something so advanced as what ddoc.me provides-but more like "copy/paste
> JS into some JSON for a show or update."
>
> JSON (as you're all too well aware) doesn't support line breaks.
> Consequently, one of the major pain points when working with JS in JSON is
> escaping it to line breaks. Futon didn't do this. Fauxton still doesn't do
> this. Neither of them have editors for "updates" or "shows" or anything
> else CouchApp related. Ddoc.me (as mentioned) is fab for an "all in"
> environment, but I literally just want a copy/paste JS to "\n" escaped,
> JSON friendly field. :-P That's it. ;)
>
> For instance. Here's a small Webhook supporting CouchApp I wrote 2 years
> ago (my how time flies...): http://github.com/bigbluehat/weblatch
>
> Today, I wanted to install it into a Cloudant database. It's so tiny
> (smaller than this email...) that I didn't want to `git clone`, `couchapp
> push . http://...`<http://...%60> the thing. I just wanted to copy/paste
> the update function into the JSON editor...but of course, it doesn't do
> "\n" escaping, and waiting on that to be supported is...not worth the wait.
>
> So...some options:
>
> - A small bl.ocks.org style service that takes GitHub and/or
> Gist URLs and turns them into CouchApp ready .json files-if they have a _id
> and/or .couchaprc maybe
>
> - A simple text field to paste JS into that outputs it as a "\n"
> escaped string (this one's easiest)
>
> There are many more ideas beyond this (GitHub services, etc), but for now,
> I just want to paste some JS somewhere and get some JSON friendly text
> string on the other side. ;)
>
> k. I'm done for now. I hope to make more time to catch up on the other
> threads, post more random thoughts from my fevered brain, and finally,
> finally, finally get CouchApps on their feet...sans rocks. ;)
>
> Hug the family for me,
> Benjamin
> --
> http://bigbluehat.com/
>