Backbone and Underscore have annotated source code: http://backbonejs.org/docs/backbone.html http://underscorejs.org/docs/underscore.html
Ask HN: Can you suggest some good JavaScript projects to read and learn?
11–20 of 49 posts
Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#12Reflux and it's associated tools for some concise, well written ES6/7 patterns ( https://github.com/gaearon/redux ) Gaearon is actually a hell of a JS developer ( https://github.com/gaearon ).
Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#13Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#14Backbone and Underscore have annotated source code: http://backbonejs.org/docs/backbone.html http://underscorejs.org/docs/underscore.html
I also liked the "Let's Make a Framework" posts at DailyJS. DailyJS in general was a great blog that is now closed, but the archives are still up.
Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#15Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#16Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#17I've read a lot about how JS can make programmer productive, I've also read a lot how code can be succinct and all that jazz because of JS, but I have _never seen_ a well-architected, well-documented, well-automated-tested non-todomvc SPA codebase.
This isn't a sarcasm or criticism but a serious and legitimate "ASK" because I'm working on a large-scale SPA project that's hard to write automation test other than Selenium.
I'm looking for something that can taught me:
1. Unit-testing (with some level of mocking)
2. Integration-testing (testing various components without hitting the UI but all the way up to the sending request, kind of like driving the front-end code without the UI).
3. Best practices/patterns for architecting large-scale SPA (hint: generic EventBus tend to be abused).
Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#18Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#19I'm also interested to see a mid-size scale SPA project that has excellent unit-testing and integration-testing. I've read a lot about how JS can make programmer productive, I've also read a lot how code can be succinct and all that jazz because of JS, but I have _never seen_ a well-architected, well-documented, well-automated-tested non-todomvc SPA codebase. This isn't a sarcasm or criticism but a serious and legiti…
I would really love to see a well written SPA with testing, but I fear its almost reaching unicorn status. Most projects suffer from deadlines so they'll just never be written the way they should be and instead, the flow is now: patch it and move on.
Re: Ask HN: Can you suggest some good JavaScript projects to read and learn?
#20This generator uses Angular best practices, has Jasmine and Karma built in for solid unit and integration (called e2e tests in Angular) testing. The built-in generators even build pages, controllers, and add the unit test files along with the new routes. In addition, authentication via Passport.js is in the box. In my opinion it's an easy to extend, robust solution for building a non-trivial SPA. Even has hooks for easy deployment to Heroku.
That being said, I have been trying to learn React lately and have yet to find a similar thing for a React-based stack.