this post was submitted on 01 Jul 2023
1659 points (98.4% liked)

Sync for Lemmy

15088 readers
1 users here now

👀


Welcome to Sync for Lemmy!

Download 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: @[email protected]


founded 1 year ago
MODERATORS
 

Morning all, Just a quick update to say I'm making good progress with the development and we just hit 24k email signups!

Lj

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

Exciting! Are you starting from scratch or are you able to copy portions from the old code over?

[–] [email protected] 2 points 1 year ago (2 children)

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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] [email protected] -1 points 1 year ago (1 children)

It would be in lemmy's best interests to make their APIs as close to reddit ones as possible.

[–] [email protected] 4 points 1 year ago

It's a little late for that, Lemmy's API is mostly in place and already being used.

[–] [email protected] 0 points 1 year ago (2 children)

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.

[–] [email protected] 5 points 1 year ago

Famous last words calling something trivial in engineering. But if there’s anyone that can it’s our man ❤️

[–] [email protected] 2 points 1 year ago

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.