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

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - Levins Dai

我知道你不知道我知道你不知道我知道你不知道 Pixel doubling, why's it there? Why does current running process always be mapped to slot 0? 金刚的爱 - Levins Dai - 博客园 What's the difference between GetThreadPriority and CeGetThreadPriority? How to send class 0 message on Windows Mobile 5.0? 新年音乐会 再说GSM SMS文字短信编码与长度 Windows Mobile 文字短信的长度 - Levins Dai 国家地理选美中国 木兰秋猎 - Levins Dai - 博客园 30 years anniversary of Microsoft Back from off site meeting 摄影是什么? Talking about Talking about 谈论谈论好男人 两个星期,两条旧闻 On Board Day 3G和Windows XP 是卖书还是送书?
关于Naming的故事
Levins Dai · 2005-07-25 · via 博客园 - Levins Dai

程序员在写程序的时候,常常被教育要为变量起一个有意义的名字。我所在的公司,因为搬到新的楼层,也面临着为新的会议室起名字的问题。

基本上,我们有4个大的Group,分布在楼层的东南西北四个区块,8个会议室也对称分布在这之间。如何对这些会议室命名?如果采用以往的惯例,随意命名(比如公司最早的四个会议室曾以中国古代四大发明为名),那就有个问题:从名字无法知道会议室的具体位置,这在一段时间内还是会带来不少的麻烦,常常见到一群人捧着笔记本,到处找会议室的壮观场面。但如果以会议室的方位进行编号,比如NE01,SE02之类又显得太无趣。怎么解决呢?

有人想出了一个聪明的办法,按照会议室所在区块的位置,以四个Group曾经Ship过的产品的code name来命名,这样一来,会议室的名字显得生动有趣,而且,一说起某个code name,马上就知道是哪个组的项目,因而也就不会像无头苍蝇一样找不到会议室的方位了。

真是个了不起的主意!