Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a few thoughts about DRY #17

Open
kutsin opened this issue Jun 22, 2019 · 1 comment
Open

Just a few thoughts about DRY #17

kutsin opened this issue Jun 22, 2019 · 1 comment

Comments

@kutsin
Copy link

kutsin commented Jun 22, 2019

Hi guys. I like what you are doing, and often watch your repos.

Ive been thinking about converting models and writing additional similar lines of codes in every class\struct. I was looking for a solution quite a bit, and I kinda found it but it has some disadvantage. May be it is fixable, but I have no idea at this moment.

Did you try using custom Swift.Encoder/Decoder for this purposes? I think they could help us. May be if you are get interested in, I attached a link for my try just in case.

Thank you for your attention.

https://github.com/kutsin/ManagedObjectCodable

@rnkyr
Copy link
Contributor

rnkyr commented Jun 24, 2019

hello @kutsin,

the idea looks great! I'm actually willing to try it since it'll allow us to get rid of boilerplate code

but the library is used for our internal projects only, so I'm not sure when we can try to implement your approach

nevertheless, thank you for the link. I'll try to keep the thread updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants