GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inconsistent documentation: hostname vs host · Issue #20892 · nodejs/node

Inconsistent documentation: hostname vs host #20892

New issue
Copy link
New issue
Copy link
Closed
Closed
Inconsistent documentation: hostname vs host#20892
Copy link
Labels
docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

Description

@apapirovski
apapirovski
opened on May 22, 2018
Issue body actions

The Node.js documentation is currently rather freeform when it comes to distinguishing between hostname and host. There are arguments and properties named host that refer to hostname and their description makes as much clear. There are also arguments and properties that refer to host in both the name and the description, despite actually intending to represent the hostname.

This can without any doubt create confusion for end users but also for contributors. For a recent example see: #20875 or #20493

I think it would be nice if we could slowly update the the documentation and code to be more clear about this. While we cannot change property names on options objects, argument names can certainly be changed and documentation can be updated.

Some example entries:

https://nodejs.org/dist/latest-v10.x/docs/api/tls.html#tls_tls_checkserveridentity_host_cert
https://nodejs.org/dist/latest-v10.x/docs/api/tls.html#tls_tls_connect_port_host_options_callback
https://nodejs.org/dist/latest-v10.x/docs/api/tls.html#tls_tls_connect_options_callback
https://nodejs.org/dist/latest-v10.x/docs/api/net.html#net_server_listen_options_callback

Reacted by Steven, Benjamin Gruenbaum, Sakthipriyan Vairamani and Yuta Hiroto

Activity

Next
  1. apapirovski
    added
    help wantedIssues that need assistance from volunteers or PRs that need help to proceed.
    docIssues and PRs related to Node.js documentation.
    good first issueIssues that are suitable for first-time contributors.
    on May 22, 2018
  2. apapirovski
    changed the title [-]Inconsistent documentation:[/-] [+]Inconsistent documentation: hostname vs host[/+] on May 22, 2018
  3. apapirovski commented on May 22, 2018

    @apapirovski
    apapirovski
    on May 22, 2018
    ContributorAuthor
    More actions

    @nodejs/documentation @nodejs/http @nodejs/http2

  4. mcollina commented on May 22, 2018

    @mcollina
    mcollina
    on May 22, 2018
    SponsorMember
    More actions

    Definitely 👍 . I think this would be a good source of tasks for a code&learn.

    Reacted by Anatoli Papirovski and Manuel Spigolon
  5. styfle commented on May 22, 2018

    @styfle
    styfle
    on May 22, 2018
    SponsorMember
    More actions

    I agree, this is a source of confusion for myself.

    This ASCII Chart does a good job of explaining the difference.

    I even found a Chrome Bug after reading through the Node.js docs regarding hostname assignment.

    All that to say, I agree with this change 👍

  6. davisokoth commented on May 22, 2018

    @davisokoth
    davisokoth
    on May 22, 2018
    Contributor
    More actions

    Interested in picking this up...

    Reacted by Steven and Benjamin Gruenbaum
  7. apapirovski commented on May 23, 2018

    @apapirovski
    apapirovski
    on May 23, 2018
    ContributorAuthor
    More actions

    @davisokoth let me know if you need any guidance. There are a few links in the OP to documentation mistakes but it would be nice to also update some of the variable names in our code. Feel free to also open a PR just with one of those documentation changes — we don't have to change everything all at once.

  8. benjipelletier commented on May 23, 2018

    @benjipelletier
    benjipelletier
    on May 23, 2018
    More actions

    Also interested in contributing to this

  9. apapirovski
    added a commit that references this issue on Jun 1, 2018

    doc: fix inconsistent documentation (host vs hostname)

    38c938a
  10. lliepert commented on Jun 2, 2018

    @lliepert
    lliepert
    on Jun 2, 2018
    Contributor
    More actions

    Also interested in contributing to this if help is still needed

  11. UlisesGascon commented on Jun 3, 2018

    @UlisesGascon
    UlisesGascon
    on Jun 3, 2018
    Member
    More actions

    I am also interested in contributing...

  12. 11 remaining items

  13. apapirovski commented on Jun 20, 2018

    @apapirovski
    apapirovski
    on Jun 20, 2018
    ContributorAuthor
    More actions

    @thatshailesh @sagirk @graezzon There's definitely more to be done. Some of the links in the OP haven't been updated and there are likely more instances of this in the codebase. Just look for any irregularities of hostname vs host usage, in particular cases where the term is used interchangeably to refer to the same thing.

    Reacted by Sagir Khan
  14. sagirk commented on Jun 20, 2018

    @sagirk
    sagirk
    on Jun 20, 2018
    Contributor
    More actions

    @apapirovski I ran a project-wide search and found a few instances of this issue in

    • doc/api/tls.md and the corresponding lib/tls.js
    • doc/api/net.md and the corresponding lib/net.js (taken; I'm working on this)
    • doc/api/dns.md and the corresponding lib/dns.js
    Reacted by Steven
  15. sagirk commented on Jun 20, 2018

    @sagirk
    sagirk
    on Jun 20, 2018
    Contributor
    More actions

    @benjipelletier @lliepert @UlisesGascon @thatshailesh @graezzon Take a look at one of the files listed above and claim it in this thread so we know who is working on what.

    Reacted by Ulises Gascón
  16. UlisesGascon commented on Jun 20, 2018

    @UlisesGascon
    UlisesGascon
    on Jun 20, 2018
    Member
    More actions

    Thanks @sagirk! I am working now in doc/api/dns.md and lib/dns.js. I can take tls too after that if nobody else does ;-)

    Reacted by Sagir Khan
  17. thatshailesh commented on Jun 21, 2018

    @thatshailesh
    thatshailesh
    on Jun 21, 2018
    Contributor
    More actions

    Hi All
    I will be taking doc/api/tls.md and lib/tls.js
    Thanks @sagirk

    Reacted by Sagir Khan
  18. thatshailesh
    added a commit that references this issue on Jun 21, 2018

    tls: fix inconsistent (hostname vs host)

    e7dc777
  19. yokanand commented on Jul 14, 2018

    @yokanand
    yokanand
    on Jul 14, 2018
    More actions

    Hi guys, I'm late to join. I'm interested to contribute as well. Can I get started. Are there any open tasks to pick up?

    Reacted by Ammar
  20. shakeelmohamed
    added a commit that references this issue on Oct 12, 2018

    Fix additional inconsistencies (hostname vs host) in DNS. nodejs#20892

    8c1e1d0
  21. Trott
    added a commit that references this issue on Oct 21, 2018

    dns: fix inconsistent (hostname vs host)

    beb0f03
  22. Trott
    closed this as completedin beb0f03on Oct 21, 2018
  23. jasnell
    added a commit that references this issue on Oct 21, 2018

    dns: fix inconsistent (hostname vs host)

    dd75624
  24. MylesBorins
    added a commit that references this issue on Nov 26, 2018

    dns: fix inconsistent (hostname vs host)

    b2252ea
  25. rvagg
    added a commit that references this issue on Nov 28, 2018

    dns: fix inconsistent (hostname vs host)

    69582a3
  26. MylesBorins
    added a commit that references this issue on Nov 29, 2018

    dns: fix inconsistent (hostname vs host)

    f928d99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.