Y
Hacker News
new
|
ask
|
show
|
jobs
by
laurent123456
3280 days ago
Passing arguments to a function instead of using global state is generally a good idea, but that's a very poor example. Having to pass constants to a function would increase the cognitive load rather than reduce it.