Hacker News new | past | comments | ask | show | jobs | submit login

I must be missing something, because I don't see how a link farm doesn't have the exact same problem.

In the case of symlinked directories we have:

  - the binary lives in /usr/bin/python3
  - /bin is a symlink to /usr/bin
  - /bin/python3 therefore refers to /usr/bin/python3
We can use either /usr/bin/python3 or /bin/python3.

In the case of a link farm we have:

  - the binary lives in /usr/bin/python3
  - /bin/python3 is a symlink to /usr/bin/python3
Again we can use either /usr/bin/python3 or /bin/python3.

As far as I can see, both methods allow insufficiently careful developers to hardcode the wrong paths. What am I missing?




> - /bin/python3 is a symlink to /usr/bin/python3

You don't symlink everything in /usr/bin to /bin, just "all regular files that have traditionally been in /bin" (per the article).

python3 has not traditionally been in /bin, so /bin/python3 would not be linked.


Ah, yes, thanks, that clears up things.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: