摘要:
Wikipedia 里对 AOP 是这么介绍的: An aspect can alter the behavior of the base code by applying advice (additional behavior) at various join points (points in 阅读全文
摘要:
React (a.k.a. ReactJS or React.js) is a JavaScript library for creating user interfaces, open sourced to the world by Facebook and Instagram team in 2 阅读全文
摘要:
写在最前 文章标题谈到了面向协议编程(下文简称 POP),是因为前几天阅读了一篇讲 Swift 中 POP 的文章。本文会以此为出发点,聊聊相关的概念,比如接口、mixin、组合模式、多继承等,同时也会借助各种语言中的例子来阐述我的思想。 那些老生常谈的概念,相信每位读者都耳熟能详了,我当然不会无聊 阅读全文
摘要:
在继承、组合外添加了新的功能添加(组合)方式 Protocols can have default implementations for requirements specified in a protocol extension, allowing “mixin” or “trait” like 阅读全文