Giter Site home page Giter Site logo

mvvmarch's Introduction

个人博客网址 My Blog

ps: www.canking.win

使用了hexo开源博客静态网页生产框架,搭建在Github上,用了自己的域名。用了maupassant博客样式。

工作三年多了,发现很多技术还是记录下来好,以后用到了,看下比较很快就能想起来,如果没有记录,之后用到只能是一知半解,像个半吊子,不能深入。

好记忆不如烂笔头,以后要针对技术细节记录到自己的博客中,完善自己的知识树。

当然博客还会记录下生活中的一些想法和经历,为以后的自己留一份宝贵记忆。

该项目相关主题有部分修改,添加了自己的部分页面控件,有兴趣的可以学习交流。

项目分支说明:

  • master 发布分支,保存生产后的代码,用来展示页面。
  • hexo 写作分支,用来保存原始数据。

mvvmarch's People

Contributors

cankingapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mvvmarch's Issues

关于框架中,关于网络请求和数据库读取数据合并成一个数据源的问题。

我觉得框架中,不方便,不灵活的地方:
1.发起一个网络请求,是否代码量有点大;如果一个控制器下,有多个请求,感觉代码量很大
2.缓存策略,感觉不太灵活,利用数据源,来决定缓存策略,有点。。。。:
result.addSource(dbSource, new Observer() {
@OverRide
public void onChanged(@nullable ResultType resultType) {
result.removeSource(dbSource);
if (shouldFetch(resultType)) {
fetchFromNetwork(dbSource);
} else {
result.addSource(dbSource, new Observer() {
@OverRide
public void onChanged(@nullable ResultType resultType) {
result.setValue(Resource.success(resultType));
}
});
}
}
});

Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide `room.schemaLocation` annotation processor argument OR set exportSchema to false.

defaultConfig {
applicationId "win.canking.mvvmarch"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

    //should add this
    javaCompileOptions {
        annotationProcessorOptions {
            arguments = ["room.schemaLocation":
                                 "$projectDir/schemas".toString()]
        }
    }
}

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.