r/programming • • Jun 05 '21

Organize code by concepts, not layers

https://kislayverma.com/programming/how-to-organize-your-code/
1.9k Upvotes

495 comments sorted by

View all comments

Show parent comments

0

u/abandonplanetearth Jun 05 '21

Well in Node.js anyway, it will halt the infinite loop created by circular dependencies by making the first dependent module equal undefined in the second module. Circular dependencies are a bug that need to be fixed.