惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
O
OpenAI News
AI
AI
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
T
Threat Research - Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
Cyberwarzone
Cyberwarzone
博客园 - 【当耐特】
TaoSecurity Blog
TaoSecurity Blog
The Cloudflare Blog
V
Visual Studio Blog
Forbes - Security
Forbes - Security
Apple Machine Learning Research
Apple Machine Learning Research
Spread Privacy
Spread Privacy
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
K
Kaspersky official blog
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
The Last Watchdog
The Last Watchdog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
Security Latest
Security Latest
量子位
W
WeLiveSecurity
V
V2EX
L
Lohrmann on Cybersecurity
S
Security @ Cisco Blogs
小众软件
小众软件
The Hacker News
The Hacker News
阮一峰的网络日志
阮一峰的网络日志
H
Hacker News: Front Page
博客园 - 聂微东
T
Troy Hunt's Blog
S
Schneier on Security
有赞技术团队
有赞技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
Webroot Blog
Webroot Blog
P
Privacy International News Feed
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Recent Commits to design-principles:main

Event names should use the present tense (#592) Disambiguate when to add global event handlers (#612) · w3ctag/design-principles@41fee41 Handle non-fully-active documents (#597) chore: fix bikeshed warning about multiple definitions of the <a> ele… · w3ctag/design-principles@6ec7e11 Guidance on extensibility patterns: main spec revision vs registries … Un-escape ampersands in a URL to avoid a bikeshed bug. · w3ctag/design-principles@031a3de Trim trailing whitespace. Rewrite the "removing features" section, incorporating "Support Exist… · w3ctag/design-principles@62fc770 Replace asking for users for consent with designing for user intent (… Clarify when details should go on events vs targets (#585) · w3ctag/design-principles@79c2b78 Add principles for task sources (#590) · w3ctag/design-principles@444a329 Update ethical-web-principles links and bibrefs (#601) · w3ctag/design-principles@63b43c9 Clean up link-defaults. · w3ctag/design-principles@993e58e Remove trailing whitespace (#593) · w3ctag/design-principles@98f4a02 Ignore index.html at the root. (#586) Fix example in Keep attributes in sync (#591) · w3ctag/design-principles@afb192e Remove notion of asking for consent to reveal AT use (#589) · w3ctag/design-principles@c35b9cd Reference HTTP WG style guide (#587) · w3ctag/design-principles@81e3ff2 Add 'Choose the Appropriate WebIDL Construct for Data and Behavior' (…
Avoid abbreviations generally (#600) · w3ctag/design-principles@9fc15ba
marcoscacere · 2025-10-21 · via Recent Commits to design-principles:main
Original file line numberDiff line numberDiff line change

@@ -2199,6 +2199,7 @@ is a request, rather than a guarantee.

21992199

<h3 id="string-constants">Use strings for constants and enums</h3>

22002200
22012201

Use strings as the values for constants or sets of enumerated values.

2202+

See [[#naming-is-hard]] when choosing strings.

22022203
22032204

Strings make it easier for developers to inspect values

22042205

and read code that uses those values.

@@ -3825,7 +3826,7 @@ Names take meaning from:

38253826

API naming *must* be done in easily readable US English.

38263827

Keep in mind that most web developers aren't native English speakers.

38273828

Whenever possible, names should be chosen that use common vocabulary

3828-

a majority of English speakers are likely to understand when first encountering the name.

3829+

a majority of English speakers are likely to understand when first encountering the name.

38293830
38303831

<div class="example">

38313832

@@ -3836,6 +3837,9 @@ than `cardinality`.

38363837

</div>

38373838
38383839

Value readability over brevity.

3840+

Avoid abbreviations,

3841+

except in cases where an abbreviation is extremely common and easy to understand.

3842+

For example `UIEvent`, where "`UI`" stands for user interface.

38393843

Keep in mind, however, that

38403844

the shorter name is often the clearer one.

38413845

For instance,