3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Macro.camelize/1をご存知でしょうか?

example

iex> Macro.camelize("foo_bar")
"FooBar"

If uppercase characters are present, they are not modified in any way as a mechanism to preserve acronyms:
(大文字が存在する場合は、頭字語1を保持するため、変更をしない)

iex> Macro.camelize("API.V1")
"API.V1"
iex> Macro.camelize("API_SPEC")
"API_SPEC"

私がこれを知ったきっかけはですね。
docomo_text_to_speechというHexを公開しておりまして、こちらをKian Meng Ang2 さんという方がリファクタリングをしてくださいました。
アウトプットするとインプットを得られるという例なのかもしれません。
(例: LTすると知らない方から話しかけてもらえて、その方から新しい知識をもらえる)

Macro.camelize/1を使っている箇所
:point_down::point_down_tone1::point_down_tone2::point_down_tone3::point_down_tone4::point_down_tone5:

https://github.com/TORIFUKUKaiou/docomo_text_to_speech/pull/6/files#diff-76b1051c1b786a646a3c6e50e8dc2e71611e801484d7e6d4a80a753272094eacR112

Wrapping Up :christmas_tree::santa::santa_tone1::santa_tone2::santa_tone3::santa_tone4::santa_tone5::christmas_tree:

  1. https://ja.wikipedia.org/wiki/頭字語

  2. NervesJP/nerves-devcontainer へのプルリクエスト → Fix typos and markdowns #8。みなさんのところにもプルリク届くかもしれません :rocket::rocket::rocket:

3
0
0

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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?