Tide - Tumblr Posts
I tide-ed! The tide! It rise-ed! I tried tide! (ooo that’s a tongue twister!)
So, first impressions were very bad because the docs on cargo.io told me to install a version TWO WHOLE VERSIONS behind the actual correct one which just gives bad juju about the whole entire project. Y’know, if you can’t update something as simple as that, who’s to say any of the other docs are up to date?
And, very basic things like wiring up a database using shared state (across requests) seemed very poorly explained or totally undocumented when I dug around in the tide docs/repo (which in retrospect isn’t actually on the tide people but sssh I didn’t know that when I was getting this bad impression).
See, the tide docs did cover state, but because Diesel has connection pooling (which requires shared ownership), rust really didn’t like to put Diesel’s connection pool into tide’s state. This is the sort of compatibility problems that you hit when you use an unopinionated project like tide, but usually the devs try and smooth it over with good docs and maybe some special compatibility packages to fill the gaps.
It took me a while of digging through random github repos to figure out that actually this was Diesel’s fault, not tides! Diesel just didn’t really document their connection pooling features at all (the creates.io page for that module is nearly empty) and in my confusion I ended up using the wrong struct by accident.
That was the problem that I thought was being caused by tides state! Man, for a community as fast moving as rust and as assertive about how clean code and good docs are important, some major projects are really lacking :/
SO anyways, all that’s sorted now and on the whole tide looks pretty nice! It really reminds me of my early days with Sinatra in ruby, and I think it’ll do, at least until something more mature like Rocket gets websocket support.
Anyways, tl;dr the project is back on the rails 😎 (but not ruby on rails)
Pixel Defenders
Please enjoy!
Spoilers tag is mostly for Doug
My shirts were dirty as fuck until I started using Tide!
"We reached the beach in the late afternoon. The tide was high and the surf was heavy. I dived in and rode a couple of waves, but they had reached that stage of power in which you feel the whole strength of the ocean in them."
John Knowles, "A Separate Peace"
Creative Junk Yard
i love the beach so much, if there’s one thing i’m certain of in my life is that wherever and whoever i end up living up, it HAS to be by the beach. beach beach beach