Code Monkey home page Code Monkey logo

Comments (8)

shun159 avatar shun159 commented on September 14, 2024

承知しました。取り急ぎ。

from pio.

shun159 avatar shun159 commented on September 14, 2024

@yasuhito

今、rake yard:list_undocで確認したものの
ドキュメンテーションを進めています。

初歩的なことで大変申し訳ありませんが、
ドキュメントの粒度について、

1:コメントのみコメント
2:戻り値・引数・パラメータなどコメント

と分けようかと考えています。

new, read, to_binary、各フィールドにアクセスする際のメソッドなどを重点的に詳細に追記しておき、
内部でのみ利用しているメソッドなどは、コメント(or何も記載しない)のみ追記するような感じですといかがでしょうか。

無作法でしたら申し訳ございませんが、
何卒ご教授のほどお願いしたく存じます。

from pio.

yasuhito avatar yasuhito commented on September 14, 2024

はい、その方針でよいと思います。
private なメソッドはコメントは原則なしで OK です。

from pio.

shun159 avatar shun159 commented on September 14, 2024

承知しました。
ありがとうございます。

from pio.

yasuhito avatar yasuhito commented on September 14, 2024

最低限のドキュメントについては rubocop でチェックしているので、とりあえず Travis が通っていれば OK としましょう。

from pio.

shun159 avatar shun159 commented on September 14, 2024

承知しました。対応遅くて済みません。

from pio.

yasuhito avatar yasuhito commented on September 14, 2024

f7fd7c7inch というドキュメンテーション支援の gem を入れておきました。

  • inch と打てばドキュメンテーションが必要そうなメソッドを列挙してくれます。
  • inch show メソッド名 とすれば、具体的に何が足りないか教えてくれます。
$ inch show "Pio::Dhcp::FieldUtil#relay_agent_ip_address"

# Pio::Dhcp::FieldUtil#relay_agent_ip_address
┃ -> /Users/yasuhito/play/pio/lib/pio/dhcp/field_util.rb:79
┃ ---------------------------------------------------------
┃ Grade: U - Undocumented
┃ ---------------------------------------------------------
┃ + Add a comment describing the method
┃ + Add a code example (optional)
┃ + Describe what 'relay_agent_ip_address' returns
┃ + Describe what 'relay_agent_ip_address' returns
┃ ---------------------------------------------------------

詳しくは inch のドキュメントを参照してみてください。

from pio.

shun159 avatar shun159 commented on September 14, 2024

ありがとうございます。
承知しました!

from pio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.