Discover
Communities
Decks
Login
Discover
Communities
Decks
Buy perks
Login
Signup
3
hiquanta
每天进步一点点
Available
Used
Resource Credits
274 Followers
53 Following
July 14, 2017
RSS feed
Posts
Blog
Posts
Comments
Communities
Wallet
Mute
hiquanta
steemit
7y
函数式编程思想
最近一直在学习函数式编程,函数式编程和面向对象编程都是编程范式的一种。函数式编程解决了一些面向对象解决起来很困难问题,比如并发状态的共享处理,其实函数式不用考虑状态....为了理解什么是函数式编程,我特意买了基本书,也查了一些资料,在这里跟大家分享一下 books 《java8函数式编程》 《函数式编程思想》 《JavaScript函数式编程》
$ 0.000
2
5
hiquanta
steemit
7y
steemit账户注册,亲测可用
感谢 @lemooljiang 提供的教程,新号终于注册成功,不能发图实在是太不方便了,而且有些时候一图顶千言,能少写大量的文字,最终还是决定用新号来玩了。但这个号还是会继续分享些自己认为不错的技术文章(仅仅是分享原文的连接作为参考) 参考教程 @lemooljiang 传送门>-< 点我
$ 0.000
2
hiquanta
steemit
7y
RxJava参考文章
RxJava中backpressure(背压)的概念其实类似与生产者消费模型,backpressure其实解决了生产者生成数据过快带来的问题,细心的人会发现,RxJava2.0中对好多常用的操作符都默认做了backpressure处理,网上的资料也很多,,本人也没这么多时间再次写一遍,所以分享下连接,供将来不时之需,可以省去大量百度,查文档的时间。 虽然有些还是停留在1.0,但是思想是一样的,一通百通。
$ 0.000
1
hiquanta
steemit
7y
设计模式之---装饰模式
java的io流体系的设计就是用的装饰模式,知道这一点再看io流体系会又豁然开朗的感觉! 装饰模式(Decorator Pattern) 定义 Attach additional responsibilities to an object dy-namically keeping the same interface. Decorators provide a flex-ible alternative
$ 0.000
1
hiquanta
steemit
7y
设计模式之---适配器模式
适配器模式是android开发中最常用的模式之一,我们在开发显示列表时经常会用到 定义 适配器模式(Adapter Pattern) Convert the interface of a class into another interface clientsexpect. Adapter lets classes work together that couldn't other-wise because
$ 0.211
1
hiquanta
steemit
7y
设计模式之---组合模式
组合模式 定义 Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objectsand compositions of objects uniformly.
$ 0.179
4
hiquanta
steemit
7y
Android连接OBDII读取vin
VIN 是英文Vehicle Identification Number(车辆识别码)的缩写。因为SAE标准规定:VIN码由17位字符组成,所以俗称十七位码。它包含了车辆的生产厂家、年代、车型、车身型式及代码、发动机代> 码及组装地点等信息。正确解读VIN码,对于我们正确地识别车型,以致进行正确地诊断和维修都是十分重要的。 OBDII OBDII(the Second On—Board
$ 0.355
5
4
hiquanta
steemit
7y
初识 Arduino
$ 14.829
9
3
hiquanta
steemit
7y
设计模式之---原型模式
原型模式(Prototype Pattern) 定义 Specify the kinds of objects to create using a prototypicalinstance, and create new objects by copying this prototype. 用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象。 类图:
$ 0.229
8
2
hiquanta
steemit
7y
android系统源码镜像的使用方法
把整个android源码镜像同步下来了,但是问题来了怎么试用这个镜像呢? 准备: ubuntu16.04 200g的空间(我记得android5.1时代,整个源码库大概150g左右) 步骤如下: 1.建立android源码镜像 这一步就不介绍了,自行百度(建议使用国内清华的镜像服务器,天朝防火墙,你懂的!) 2.同步完成后,运行 git daemon --verbose --export-all
$ 0.362
5
hiquanta
steemit
7y
设计模式之---命令模式
命令模式(Command Pattern) 定义 Encapsulate arequest as an object, thereby letting you parameterize clientswith different requests, queue or log requests, and support un-doable operations.
$ 0.198
3
hiquanta
steemit
7y
设计模式之---建造者模式
建造者模式(Builder Pattern) 定义 Separate the construction of a complex object from its repre-sentation so that the same construction process can create differ-ent representations.
$ 0.194
3
hiquanta
steemit
7y
设计模式之---观察者模式
观察者模式 定义 Define a one-to-many dependency between objects so thatwhen one object changes state, all its dependents are notifiedand updated automatically. 定义对象间一种一对多的依赖关系,使得每当一个对象改变状态,则所有依赖于它的对象都会得到通知并被自动更新。
$ 0.190
3
1
hiquanta
steemit
7y
设计模式之---策略模式
策略模式(Strategy Pattern) 定义: Define a family of algorithms, encapsulate each one, andmake them interchangeable. 定义一组算法,将每个算法都封装起来,并且使它们之间可以互换。 类图:暂时忽略,百度都有。(等我能上传图了,我会补上) 从类图可以看出其主要包含三个功能类 Context 上下文类
$ 0.000
1
hiquanta
steemit
7y
RxAndroid2.x源码分析
RxAndroid其实就是对Android 的handler, looper及Message的封装,使替变为基于观察者模式的调用。理解其源码并不困难,关键在于要先弄清Andriod中handler,looper及Message的关系,才能理清RxAndroid2.x的源码。这三者的关系网上的资料一大堆,我就不重复了。 由于Android
$ 0.052
2
2
hiquanta
steemit
7y
设计模式之---模版方法模式
模版方法模式 定义 Define the skeleton of an algorithm in an operation, defer-ring some steps to subclasses. Template Method lets subclassesredefine certain steps of an algorithm without changing the al-gorithm's
$ 0.000
1
hiquanta
steemit
7y
设计模式之---单例模式和多线程
单例模式是23个设计模式中比较简单,也是最常用的模式之一,虽然简单,但在多线程并发访问时如果不注意一些使用细节,会引发意想不到的bug。 单例模式 定义:保证一个类只有一个实例,并且自行实例化并向整个系统提供这个实例。 类图:待完成 优点: 减少内存开支 减少性能开销 避免对资源的多重占用 提供和共享全局访问量 缺点: 扩展性差 测试不方便 单例模式和单一职责莫设计原则向冲突 单例的两种使用形式 饿汉模式
$ 0.000
3
3
hiquanta
steemit
7y
Kotlin初体验
开发工具: IntelliJIDEA 第一步:打开idea IDE 选中 kotlin 点击next选项 第二步:输入项目的名称及路径后,点击finish按钮 3.创建第一个Kotlin类,名字嘛,随便取吧: 可以发现,Kotlin类的后缀名为*.kt 4.编写第一个程序HelloWorld吧 点击右键运行就会看到输出结果: 如此的简洁,java的所有方法都要依赖于class ,kotlin更符合函数式编程的习惯
$ 0.000
2
1
hiquanta
steemit
7y
RxJava2.0 操作符实例代码
对前几篇文章的补充,代码已提交github 链接请点击 有什么问题欢迎留言,有时间我也会补充一些东西
$ 0.000
1
hiquanta
steemit
7y
RxJava2.0操作符之--异常操作符
操作符系类终于可以结束了,当然,仅仅知道这些操作符的功能用法还不够,就像是你只知道英语单词的含义,遇到长短句,就不知道是什么意思一样,下周,将总结RxJava的一些常见的应用场景 onErrorReturn 让Observable遇到错误时发射一个特殊的项并且正常终止 Observable.create(new ObservableOnSubscribe() { public void
$ 0.050
1
Follow, be first to know
Nothing found in posts.
Center