News for hackers. Stuff that matters.
Re:It Takes 6 Days to Change 1 Line of Code (2015) by hackflip on Wednesday December 07, 2016 @10:35AM (#13123244)
> As if Naver, Korea's #1 portal, will change its domain name at a whim

Maybe they won't change their domain name, but what if you end up needing to move from http to https? Or what if you want to crawl their staging server at staging.naver.com? Or if you wanted to bypass the DNS?

Avoiding the magic constant achieves more than just guarding against name changes. It also guards against typos, you reduce n potential failure points to 1.

There are no comments on this comment yet.