in reply to Re: Re (tilly) 2: Use globals or pass around everything under the sun?
in thread Use globals or pass around everything under the sun?

I don't think that tilly is advocating that anyone design for exported configuration variables, and I'm not, either.

However, in the case that you're attempting to follow the rules and take spaghetti code and refactor it, yet keep the code in production up and running ... using a common module(s) that contains your configuration stuff is a very good step. It clarifies stuff and allows you to proceed forward in removing the globals with as much knowledge as you could have.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Re: Re (tilly) 2: Use globals or pass around everything under the sun?