GraphQL 与 CSS 对比:30项指标
GraphQL 对比 CSS
GraphQL
GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。
CSS
CSS 是一种Declarative, Markup编程语言,首次出现于 1996 年,由 Håkon Wium Lie 设计。主要应用场景:Data Serialization, Configuration, Interchange。
30项指标
| 指标 | GraphQL | CSS |
|---|---|---|
| GitHub Stars | 46230 | 63649 |
| Stack Overflow Tags | 583831 | 871464 |
| TIOBE Rank | 63 | 16 |
| RedMonk Rank | 57 | 15 |
| PYPL Rank | 64 | 2 |
| Average Salary (USD) | 104516 | 141587 |
| Job Postings | 31436 | 42822 |
| Benchmarks Score | 0.63 | 1.0 |
| Learning Curve | Medium | Hard |
| Community Size | Medium | Very Large |
| Documentation Quality | 7 | 9 |
| Ecosystem Maturity | 6 | 10 |
| Industry Adoption | 7 | 10 |
| Type System Complexity | 6 | 10 |
| Concurrency Support | 7 | 10 |
| Performance - Execution Speed | 7 | 10 |
| Performance - Memory Usage | 7 | 9 |
| Performance - Startup Time | 7 | 8 |
| Tooling Quality | 6 | 10 |
| Package Manager Quality | 6 | 10 |
| IDE Support | 5 | 9 |
| Debugging Experience | 7 | 10 |
| GitHub Stars Rank | 47 | 8 |
| Stack Overflow Tags Rank | 50 | 5 |
| Average Salary Rank | 47 | 1 |
| Job Postings Rank | 43 | 8 |
| Benchmarks Rank | 64 | 5 |
| Learning Curve Score | 5 | 1 |
| Community Size Score | 6 | 10 |
| AHP Score | 6.29 | 8.48 |
AHP综合评分
- GraphQL: 6.29 (#48)
- CSS: 8.48 (#2)
GraphQL | ###### 6.29
CSS | ######## 8.48
何时选择GraphQL
Interface Definition, RPC, Schema. GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。
何时选择CSS
Data Serialization, Configuration, Interchange. CSS 是一种Declarative, Markup编程语言,首次出现于 1996 年,由 Håkon Wium Lie 设计。主要应用场景:Data Serialization, Configuration, Interchange。
Hello World 示例
GraphQL:
{ hello }
CSS:
body { content: 'Hello, World!'; }