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

As a front-end developer, I cringed when I saw how much Telescope (or is it Meteor?) relies on global scope. To see what I mean, inspect the window object in their first example site http://crater.io/

  Object.keys(window).filter(x =>
    window[x] instanceof Function &&
    !/native code/.test(window[x].toString()))
120 user-defined global functions, and that is not counting all global variables... yikes!

(edit: if you're using Chrome, `Object.keys(window).length` gives you 260)




That's a fair point, and definitely something that needs to be fixed. We've been slowly refactoring the app into a better, more modular structure but there's still a lot to do.




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

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

Search: