Mastodon gripes, Ruby
It's annoying to me that mastodon isn't more like Synapse + Element. Looking through the code (and unless I'm missing something obvious), the mastodon front-end is super duper integrated with the code for the webserver. It's more annoying than I first realized to separate the two.
Also I'm no Ruby on Rails expert by any means (actually hardly know it at all), but having a call to Rails in the Javascript that works the front-end seems.......... weird. Is that standard for a Ruby on Rails webapp?
Mastodon gripes, Ruby
I miss the good old days of 'here's my frontend, it's html and Javascript' and 'here's my backend, it exposes this api that you can whack any front end on' and 'here's my database, the backend connects to it through these very well documented and clear functions'.
Not 'here's this whole fucking tangled mess where who the fuck knows what's happening'. That's what Ruby seems like to me?
re: Mastodon gripes, Ruby
@compufox @dumpsterqueer it's formdata which is kinda weird.. could definitely still be scripted/automated/implemented elsewhere though but I don't think any of this is documented anywhere..
(lol realised just in time i should probably censor my authenticity_token :P )
re: Mastodon gripes, Ruby
@f0x @compufox yeah I had a bash (eyyy) at scripting it a while ago using a token fished from the cookie I had stored after login. But that just scripts against the frontend then, not against the backend's API