#Problem: Require
1 messages · Page 1 of 1 (latest)
make a middleman then
module A requires Module C and Module B requires Module C, now Module A and B dont talk directly to each other 
Is that really the most scalable and effective way to do it?
when would u need two modules to require each other? sounds like u might have to rethink ur code structure slightly
If you just need to pass data between two scripts just use events
Specific cases
Say some data is contained in module A, then module B wants to get data from module A
but module A also require module B
then u make module C which contains the data
This apply to functions as well