Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.46 KB

annotation_is_unnecessary.md

File metadata and controls

46 lines (29 loc) · 1.46 KB

Annotation is an unnecessary technique

注解是不必要的技术

Copyright © 2018 Lin Pengcheng. All rights reserved.

版权所有 © 2018 林鹏程, 保留所有权利。

Annotation is equivalent to Clojure's metadata, which I don't usually use. I directly in the data, similar to the system table in the database. The practice of data flow, controlled by data. Run with data-driven and scheduling systems.

Classic pure function pipeline data flow example, communication industry mode, transmission data signal and control signal.

The difference between the two:

  1. "Put it in the code" vs. "Put it in the data", it's just a configuration.

  2. "Intrusion code" vs. "Intrusion data".

  3. "Interpreted by the compiler" vs. "Interpreted by the code".

I think metadata (annotation) manipulation (or viewing) is not convenient, So I don't like to use this technology.

注解(annotation)相当于Clojure的元数据,一般我都不用. 我直接在数据里表示, 类似数据库里的系统表. 数据流的做法,由数据控制一切. 用数据驱动和调度系统运行.

经典的纯函数管道数据流例子, 通信业的模式, 传输 数据信号(实际数据) 和 控制信号(注解或元数据).

两者的差别:

1.放在代码,还是放在数据里, 都只是一种配置.

2.侵入代码和侵入数据.

3.由编译器解释和由代码解释.

我嫌弃元数据或注解操纵或查看起来不够方便直接, 所以不喜欢使用这种技术.