Hacker News new | past | comments | ask | show | jobs | submit login

This is likely an issue caused by code that is too monolithic in nature. Writing idiomatic node code involves making many small npm modules. Refactoring becomes very easy within the tiny code base of a module, and moving them around is a matter of require them somewhere else.



Not just via npm, but structuring your project via directory/file hierarchies that limit the amount of work in one file/module.

Avoiding the use of OO contexts and this helps a lot in terms of avoiding side effects, and improving testing and predictability as well.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: