Coder Social home page Coder Social logo

convertmodel's People

Contributors

jfl913 avatar

Watchers

 avatar  avatar  avatar

convertmodel's Issues

这样的接口设计感觉怪怪的

虽然现在只是model-》viewModel,但原理其实和JSON-》Model很像。

+ (void)convertSourceModel:(NSObject *)sourceModel
           toTargetModel:(NSObject *)targetModel;

将convert逻辑抽离到一个工具类里,这样避免了MantleJSONModel必须继承于对应基类的束缚,思路或许和YYModel以及MJExtension会更像一点。YYModel和M�JExtension都是category的方式做抽离的,个人感觉这种方式也更友好,不会像上面这种接口这样很奇怪。
我觉得做model mapping的瓶颈在于性能和容错,所以长路漫漫,已watch,期待频繁更新。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.