‹ BackHN Continuity

Thread

Don't couple your Go code to GitHub

325 points · 177 comments · birdculture

  1. thih9 · · focus · HN ↗
    > In my opinion, every commerical software development team using Go should be using custom domains for namespacing their internal libraries and packages.

    I’d remove “go” from the above, i.e. I think same applies to other stacks.

    Even using GitHub domain links in code comments gets problematic long term. Ie when a migration happens and those links start pointing nowhere.

    1. handoflixue · · focus · HN ↗
      I'm confused by the article, and this comment, treating these URLs as difficult to replace.

      Why can't you just search-and-replace? Presumably all of them refer to "GitHub.com" and not much else code will, so I'd think this was an exceptionally easy case.

      Even easier for comments, since them being obsolete for a few hours during a migration doesn't exactly break anything.

      1. mbreese · · focus · HN ↗
        What about anyone else using your code? You can find and replace your own code, but do you have access to all of the code relying on your go library? Is it all yours? Customers? Other developers?

        Even in the case where it’s an internal only Lu array, it can be complicated to refactor a library name.

        1. handoflixue · · focus · HN ↗
          Thank you for the concise explanation! :)

          I did not realize it ran that deep - I'm used to distributing EXE files, not anything that would need to know internal dependencies like that.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.