|
|
|
|
|
by funcDropShadow
1495 days ago
|
|
> There’s only one active profile and one user and one catalog and one persistence layer. There’s only one DOM and one window. But --- hopefully --- there are more than one unit/component tests. ;-) But I agree, there are contexts in which global variables may make sense, e.g. sometimes in an embedded system, sometimes in a short throw away program. As usual, the community of software developers discusses guidelines without clarifying the context or the assumptions they are working with. Since there are almost no universal guidelines for programming those discussion go on forever. |
|