tag:blogger.com,1999:blog-9008563869490582540.post6110308591662421426..comments2023-12-16T00:19:47.311-08:00Comments on Runtime Era: Getting JavaScript Closures (The Module Pattern)Unknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9008563869490582540.post-17706563761306064312013-03-06T16:33:54.547-08:002013-03-06T16:33:54.547-08:00This was really helpful. Thanks for the clear code...This was really helpful. Thanks for the clear code examples.donglefritzhttps://www.blogger.com/profile/04668552986238578600noreply@blogger.comtag:blogger.com,1999:blog-9008563869490582540.post-55440673113658879292013-03-06T07:52:53.412-08:002013-03-06T07:52:53.412-08:00I agree, a library would be of better use. I simpl...I agree, a library would be of better use. I simply wanted to show how closures work. Feel free to give a different closure example for us to reference and I may include it in the post.Fredhttps://www.blogger.com/profile/12953897621882468934noreply@blogger.comtag:blogger.com,1999:blog-9008563869490582540.post-57129471670028001202013-03-06T03:26:49.864-08:002013-03-06T03:26:49.864-08:00regular modules? There's no such thing in java...regular modules? There's no such thing in javascript, at least not until ES6. So don't be so opinionated. For example I like require.js more than commonJS, so don't go preaching your way as the only one.Capajhttps://www.blogger.com/profile/15289998897939779768noreply@blogger.comtag:blogger.com,1999:blog-9008563869490582540.post-65590531914999213232013-03-06T02:04:32.245-08:002013-03-06T02:04:32.245-08:00no, stop, use browserify and make regular modules....no, stop, use browserify and make regular modules. You don't have to resort to syntax tricks (which don't help better organization in the long run) to achieve what you want. Just let files be modules.Anonymousnoreply@blogger.com