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 

Like ah yes okay this is the front-end code, no problem.... Wait.... What

Mastodon gripes, Ruby 

Can someone with some Ruby experience explain this to me?

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?

Mastodon gripes, Ruby 

Holy shit, is this why mastodon still doesn't have a proper REST api for handling admin stuff like defederating? Because that logic is actually in the frontend somehow? I will have to investigate this.

re: Mastodon gripes, Ruby 

@dumpsterqueer that wouldnt surprise me in the least.

it was probably all built as one intertwined mess and theyre having to pick it apart to expose the admin interface

Follow

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

Sign in to participate in the conversation
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.