These are chat archives for ractivejs/ractive

25th
May 2018
Chris Reeves
@evs-chris
May 25 2018 01:23
there's something to be said for a DB with a restful interface
Norbert Haberl
@nhaberl
May 25 2018 05:38
Asp.net because of C# and Umbraco cms
Sql server because since 2016 it's really Nice
Nginx / kestrel because it's the best from both worlds
Chris Reeves
@evs-chris
May 25 2018 05:43
Interesting! That's the first .net I've seen mixed with ractive.
I'm going to be starting a computationally expensive service with .net core soon. Sometimes I forget how nice static types can be with c#, having used it and scala a lot in the past, but I've also been enjoying some measure of that with typescript of late.
Cerem Cem ASLAN
@ceremcem
May 25 2018 06:48

there's something to be said for a DB with a restful interface

what is that?

Cerem Cem ASLAN
@ceremcem
May 25 2018 08:52
@evs-chris is there something we can do without a special support by Pug: pugjs/pug#3017
Arnaud Dagnelies
@dagnelies
May 25 2018 11:52
java stack here for the back end (because all our other stuff is mostly java too), and ractive on the front end, passing through a JSP layer to offer localization.
kouts
@kouts
May 25 2018 12:50
SAP Webdynpro HTML Islands and PHP in other applications
Seems everyone here is using a different setup altogether so we cover all angles :smile:
Joseph
@fskreuz
May 25 2018 12:58
Yep, it's nice to see people using it with different tech, and that Ractive isn't a library that is locked to a specific way of doing things. :grin:
Chris Reeves
@evs-chris
May 25 2018 13:57
@ceremcem regarding the restful interface on the db, it's terribly convenient for webapps. The impedance mismatch on more traditional databases is certainly noticeable.
Chris Reeves
@evs-chris
May 25 2018 14:07
for the pug thing, it's a little weird, but you can get there with
doctype html
a('{{#if foo}}on-click="bar"{{/if}}')
I tried looking at a special attribute to contain extra attributes, but ractive currently errors if you try to define an attribute in an attribute
Norbert Haberl
@nhaberl
May 25 2018 14:28
@evs-chris you gonna like asp.net core, I bet
Chris Reeves
@evs-chris
May 25 2018 14:31
the poc was certainly more pleasant than I was expecting. It's good to see ms stepping up their game 😁
Norbert Haberl
@nhaberl
May 25 2018 14:32
Yeah, now it is what it had always should been :)
Joseph
@fskreuz
May 25 2018 16:34
Anyone have thoughts on Firebase/Parse?
Both sort of falls under the "databases behind APIs" category
Chris Reeves
@evs-chris
May 25 2018 16:39
I've tried to get into firebase, but for some reason it just hasn't felt right. I think I might be allergic to hype, and most of the firebase info out there comes with a right healthy dose of it.
I also really like having full control of my data 😁
Cerem Cem ASLAN
@ceremcem
May 25 2018 18:47

for the pug thing, it's a little weird, but you can get there with

doctype html
a('{{#if foo}}on-click="bar"{{/if}}')

currently this approach doesn't work when event declaration contains a quote

Cerem Cem ASLAN
@ceremcem
May 25 2018 19:03

@ceremcem regarding the restful interface on the db, it's terribly convenient for webapps. The impedance mismatch on more traditional databases is certainly noticeable.

I'm not sure that I get you correctly. I think there are 2 good things with a Rest API: you can easily connect to the database within any device (I mean microcontrollers here) and security is handled by the reverse proxy (via SSL), which makes the DB app simpler (do one thing and do it well). but in the end, I'm using a server application between my webapps and DB that handles permissions and partial transfers.

@fskreuz Firebase claims that it handles realtime events. I don't know how Firebase does that, but I think if Firebase can do that, then either it's not a database anymore (it's a full framework), or it's not performant by design.
Joseph
@fskreuz
May 25 2018 19:09
I'd like to think of it as Mongo behind Sockets. :grin:
Cerem Cem ASLAN
@ceremcem
May 25 2018 19:11
I'm using CouchDB behind Sockets and I can assure you that pushing server side changes to the clients is not a simple task
pushing anything to any client is a piece of cake. performing permission checks? well, welcome to hell.
Joseph
@fskreuz
May 25 2018 19:26
:smile:
That's exactly what I've been wondering up until now. Having a "synced data store" is a great idea, and things like chat rooms, multiplayer games, etc. come into mind.
But then when things like auth, permissions, etc. come in, everything suddenly becomes muddy.
Cerem Cem ASLAN
@ceremcem
May 25 2018 19:34
I'm currently building realtime web based ERP solution for a company. there are actors in the system, like clients, databases and some custom built physical devices. it can be thought as a chat room + issue tracker
Chris Reeves
@evs-chris
May 25 2018 19:37
@ceremcem can you use backticks to skirt the quote issue? the parser will convert them to plain old strings for you when the template runs through
again, a little weird, but it should be workable-ish
looks like pug doesn't choke on them, at least
doctype html
a('{{#if foo}}on-click="[`bar`, baz, `bat`]"{{/if}}')
bonus, you can do interpolation with ${...}

I'm not sure that I get you correctly.

you got it exactly... it's easy to manage the connections, whereas with a relational db you're subject to whatever the state of the driver is

everything can speak http these days
Cerem Cem ASLAN
@ceremcem
May 25 2018 19:49
@evs-chris backtick trick works!