Changkun's Blog

Science and art, life in between.


  • Home

  • Ideas

  • Archives

  • Tags

  • Bio

Swift API 设计指南

Published at: 2016-05-11   |   Reading: 6509 words ~13min

原文链接:https://swift.org/documentation/api-design-guidelines/

译者:Changkun Ou

2016-05-11 初稿

本文未经授权禁止转载

目录

  • 目录
  • 基本准则
  • 命名
    • 明确用法
    • 为使用舒适而努力
    • 合理使用术语
  • 约定
    • 一般约定
    • 形参
    • 实参标签
  • 特殊说明

译者注:

Argument 和 Parameter 两个词在很多文献中均翻译为参数,这是一个历史遗留问题。

但实际上 Argument 专用于 Actual Argument(实际参数,实参),Parameter 专用于 Formal Parameter(形式参数,形参)。

本译文在上下文没有歧义的情况下均翻译为参数,在其他情况下使用实参和形参来对 Argument 和 Parameter 加以区分。

进一步阅读:ISO/IEC 9899 - 在这份标准中,第 3 页的 actual parameter 和第 6 页的 formal argument 两种说法均被弃用。

Read More »

有趣的人类

Published at: 2016-04-15   |   Reading: 75 words ~1min
中国人对于这种坐下来玩玩手表、动动手指然后填两张表就拿钱的方式还是很不习惯的?居然还死活不肯收… 此外,德国人还是很欣然接受的,可能是小费拿惯
Read More »

所以其实论文并没有什么鬼用

Published at: 2016-04-15   |   Reading: 535 words ~2min
最近看到个题,说是,一个人患某个病的概率是 $1%$ ,现在有某个仪器可以检测患这种病的人,但是正确率只有 $99%$ 。问如果某人被检测出患这种病,那么他真正患
Read More »

所以其实论文并没有什么鬼用

Published at: 2016-04-14   |   Reading: 566 words ~2min
最近看到个题,说是,一个人患某个病的概率是1%,现在有某个仪器可以检测患这种病的人,但是正确率只有99%。问如果某人被检测出患这种病,那么他
Read More »

Githug 通关记录及指南

Published at: 2016-02-20   |   Reading: 6496 words ~13min

好吧,找到了一个和 git 有关的游戏: https://github.com/Gazler/githug

遂玩之… 挺有意思的..

安装

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
➜  ~/Downloads  sudo gem install githug
Password:
Fetching: mime-types-1.25.1.gem (100%)
Successfully installed mime-types-1.25.1
Fetching: diff-lcs-1.2.5.gem (100%)
Successfully installed diff-lcs-1.2.5
Fetching: grit-2.3.0.gem (100%)
Successfully installed grit-2.3.0
Fetching: thor-0.14.6.gem (100%)
Successfully installed thor-0.14.6
Fetching: githug-0.4.6.gem (100%)
Successfully installed githug-0.4.6
Parsing documentation for mime-types-1.25.1
Installing ri documentation for mime-types-1.25.1
Parsing documentation for diff-lcs-1.2.5
Installing ri documentation for diff-lcs-1.2.5
Parsing documentation for grit-2.3.0
Installing ri documentation for grit-2.3.0
Parsing documentation for thor-0.14.6
Installing ri documentation for thor-0.14.6
Parsing documentation for githug-0.4.6
Installing ri documentation for githug-0.4.6
5 gems installed
Read More »
13 14 15 16 17 18 19 20 21
Changkun Ou

Changkun Ou

Stop Talking. Just Coding.

276 Blogs
165 Tags
RSS
Homepage GitHub Email YouTube Twitter Zhihu
Friends
    Frimin ZZZero march1993 qcrao maiyang Xargin Muniao
© 2008 - 2024 Changkun Ou. All rights reserved. | PV/UV: /
0%