this post was submitted on 01 Jul 2023
1743 points (98.3% liked)
Sync for Lemmy
15165 readers
1 users here now
👀
Welcome to Sync for Lemmy!
Welcome to the official Sync for Lemmy community.
The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:
Community Rules
1- No advertising or spam.
All types of advertising and spam are restricted in this community.
Community Credits
Artwork and community banner by: @MargotRobbie@lemmy.world
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pretty sure a lot of the boiler plate code would be the same like upvote/downvote, etc.
Just that instead of telling reddit that user pressed upvote, now the app needs to tell lemmy.
Yeah, probably. Although I know with APIs it's not always as easy because one uses HATEOAS, the other's entities look entirely different and stuff like that. Just curious whether the data structure is roughly the same, I never looked at Lemmy's Code or the Reddit API
It would be in lemmy's best interests to make their APIs as close to reddit ones as possible.
It's a little late for that, Lemmy's API is mostly in place and already being used.
Exactly the UI and the model/backend are properly separated if it follows a design pattern like MVC. So it would be pretty trivial to replace the Reddit API calls with Lemmy API calls. Except for the things that don’t exactly translate one on one.
Famous last words calling something trivial in engineering. But if there’s anyone that can it’s our man ❤️
Man. You are way more optimistic about the promises of MVC than I am. Yes it can definitely make things easier for a transition like this but I would not call it trivial.