ChanServ changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things Sandstorm and Cap'n Proto. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev | Channel logs available at https://libera.irclog.whitequark.org/sandstorm
catern has quit [Remote host closed the connection]
XgF has quit [*.net *.split]
XgF has joined #sandstorm
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm
kentonv has quit [Ping timeout: 260 seconds]
kentonv has joined #sandstorm
<ocdtrekkie> kentonv: Do you have an opinion on https://github.com/sandstorm-io/sandstorm-app-market/pull/143
<kentonv> yeah I was just commenting on that
<ocdtrekkie> Awesome, think that's everything we had for you then.
<kentonv> commented. apps.sandstorm.io today is served as a totally static site with no server and no mongo. :)
<kentonv> no meteor server I mean
<ocdtrekkie> Is there any separate source for that anywhere?
<kentonv> I don't quite remember how I went about collecting the static assets
<kentonv> but I imagine Meteor spits them out somewhere and I just picked them up
<ocdtrekkie> Because as much as I don't see any need to bring the dynamic features back I would someday like to probably fix/add a thing or two.
<ocdtrekkie> I suppose it is not wildly important at this time though.
<ocdtrekkie> There's a couple features I wish we had documented like a minimal code snippet to do. Like the ability to share grains from another grain and notifications.
<isd> I don't know if I've ever done anything with notifications
<isd> The former is I think just making a powerbox request/offer for a UiView, though I agree it would be nice to just have an example.
<ocdtrekkie> I feel like notifications should be like... postMessage API level simple. But considering nobody's played with it in years I can't imagine it is.
<isd> I think there's a capnp API.
<ocdtrekkie> But yeah, there's stuff I can imagine doing with both those APIs but they both feel hard enough to get to I don't know if/when I will. In part because I don't have a good way to do capnp crud from PHP.
<ocdtrekkie> Do you have a preferred way of setting up web apps in Go? I still feel a bit intimidated by the amount of "write your own server" it feels like Go web apps come with.
<isd> I usually just start with the standard Go http server hello world:... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/9d113d644dc9100b2f2ffb0d98afa9832f57d737>)
<isd> I think coming from PHP it can seem a little intimidating that you're "writing your own server," but really it's just that the server is a library instead of a separate daemon like nginx...
<isd> Using HandleFunc and the like isn't really any more complicating (much less actually) that configuring routes in nginx.
<isd> Of course you have more flexibility this way. But you can also just do `HandleFunc("/foo", ...); HandleFunc("/bar", ...)` with a callback for each route...
<isd> When what's available in net/http starts to feel limited, I tend to pull in stuff from https://www.gorillatoolkit.org/
<isd> The mux package in particular is useful when you start to have non-trival routing needs.
<isd> I think there exist more extensive frameworks in the vein of django, rails etc. but I've never been fond of that sort of thing.
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #sandstorm