CSS 与 C 对比:30项指标

CSS 对比 C

CSS

CSS 是一种Declarative, Markup编程语言,首次出现于 1996 年,由 Håkon Wium Lie 设计。主要应用场景:Data Serialization, Configuration, Interchange。

C

C 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1972 年,由 Dennis Ritchie 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

30项指标

指标 CSS C
GitHub Stars 63649 61804
Stack Overflow Tags 871464 860669
TIOBE Rank 16 6
RedMonk Rank 15 11
PYPL Rank 2 8
Average Salary (USD) 141587 132367
Job Postings 42822 41524
Benchmarks Score 1.0 0.83
Learning Curve Hard Hard
Community Size Very Large Very Large
Documentation Quality 9 10
Ecosystem Maturity 10 10
Industry Adoption 10 10
Type System Complexity 10 8
Concurrency Support 10 9
Performance - Execution Speed 10 10
Performance - Memory Usage 9 9
Performance - Startup Time 8 10
Tooling Quality 10 8
Package Manager Quality 10 10
IDE Support 9 8
Debugging Experience 10 9
GitHub Stars Rank 8 13
Stack Overflow Tags Rank 5 6
Average Salary Rank 1 7
Job Postings Rank 8 11
Benchmarks Rank 5 24
Learning Curve Score 1 2
Community Size Score 10 9
AHP Score 8.48 8.28

AHP综合评分

  • CSS: 8.48 (#2)
  • C: 8.28 (#9)
CSS             | ######## 8.48
C               | ######## 8.28

何时选择CSS

Data Serialization, Configuration, Interchange. CSS 是一种Declarative, Markup编程语言,首次出现于 1996 年,由 Håkon Wium Lie 设计。主要应用场景:Data Serialization, Configuration, Interchange。

何时选择C

Systems Programming, Embedded, Performance-Critical Applications. C 是一种Procedural, Object-Oriented, Generic编程语言,首次出现于 1972 年,由 Dennis Ritchie 设计。主要应用场景:Systems Programming, Embedded, Performance-Critical Applications。

Hello World 示例

CSS:

body { content: 'Hello, World!'; }

C:

#include <stdio.h>
int main(){ printf("Hello, World!\n"); return 0; }

Other languages