Skip to content

“So let's say I'm designing a function that does stuff with…” — The Bike Shed at 22:41

“So let's say I'm designing a function that does stuff with users. If I'm relying on a global variable current user, then it's tricky to try to call this function for any other user than the current user. Whereas if I pass a user in as an argument, I can run this on any arbitrary user and get the output that I want.…”

0:00 37:39