3 ms·
Then it becomes a function: kNaverUrl('index.html') Multiple functions: kNaverWwwUrl('index.html') kNaverApiUrl('resource') Then it get's refactored:
by zepolen 10y ago
Then it becomes a function:
kNaverUrl('index.html')
Multiple functions:
kNaverWwwUrl('index.html')
kNaverApiUrl('resource')
Then it get's refactored:
urlGenerator('www.naver.com')('index.html')
urlGenerator('api.naver.com')('resource')
Refactored even more:
urlFor('naver_www', 'index.html')
urlFor('naver_api', 'resource')
Even more!
urlGeneratorFactoryFactory(.......