News for hackers. Stuff that matters.
Re:Large-scale JavaScript: A monolithic service layer by aboodman on Saturday December 14, 2013 @03:59PM (#6907090)
edit: removed snark.

You should not be worrying about object size. Write libraries in a way that makes sense for your problem, then use Closure compiler to strip the unused code from each application.

Re:Large-scale JavaScript: A monolithic service layer by mrjoelkemp on Saturday December 14, 2013 @04:23PM (#6907161)
Cheers for mentioning the closure compiler; I'll look into it. I haven't noticed much literature on its use in current build systems; I guess r.js gets all the fame due to its easier api.
Re:Large-scale JavaScript: A monolithic service layer by aboodman on Sunday December 15, 2013 @12:04PM (#6909987)
Require.js doesn't remove unused code like the closure compiler does.

That feature is critical for building general purpose libraries because it allows you to organize on conceptual boundaries without worrying so much about code size.