Better HN
topnewbestaskshowjobs
Log inSign up

hackflip

230 karma · joined Dec 7, 2016 (9y ago) · 91 submissions

Submissions

comment 9y ago · link · parent

> 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.

1234