LoginSignup
0
0

More than 5 years have passed since last update.

naming > Link > Complement names must be used for complement operations > query/answer, ping/pong, ack/nackを教えていただきました

Last updated at Posted at 2017-02-22

変数名の対称性について。

Readableコードに記載があったと思ったら、Code Completeの方だった。
http://www.fml.org/software/FNF/ja/function.name.reverse.html

関連して以下を見つけた。
http://geosoft.no/development/cppstyle.html

`27. Complement names must be used for complement operations [1].
get/set, add/remove, create/destroy, start/stop, insert/delete,
increment/decrement, old/new, begin/end, first/last, up/down, min/max,
next/previous, old/new, open/close, show/hide, suspend/resume, etc.

探していたのは、「問い合わせ」と「応答」。
案としては(動詞として)
request/reply
inquire/reply
またはreplyをrespondとするなど。

http://community.rti.com/rti-doc/500/ndds/doc/html/api_cpp/group__RequestReplyExampleModule.html
http://www.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.ref.adm.doc/q087830_.htm
http://www.mqseries.net/phpBB/viewtopic.php?t=3179&sid=f997aca557aff2a3f46b59d9c54ce7af
https://github.com/cnyangqi/itg/blob/3e27a1cf11a6b0753479f7e47b8395852a9757e1/WebContent/res/native/app_inquire_zh_CN.res

教えていただいた事項

(追記 2017/03/22)

@tenmyo さんのコメントにて他の用法も教えていただきました。

情報感謝です。

0
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0