-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to leverage ES6 language features and a more modular object model #38
Conversation
@alyssaxuu I would recommend merging #37 first. Once that's done, the diff for this PR will more clearly show what's been refactored. I'm also making separate commits for each change so the refactor can be tracked in stages. I will continue to refactor the internals when I get some more time, so please feel free to merge this as a start. |
@alyssaxuu this can be merged as a refactor of the codebase. The goal here was to DRY up the code and use method names to better indicate what is going on. I'll have more refactoring as a result of the React (#39) version. Any feedback to get this merged? |
@joelvh - just an onlooker with some feedback 👀 . The demo code should remain at the root as it was before. The new dot files should be in a separate PR. The CSS files should have remained untouched (for this PR) Also having these dotfiles in a separate PR gives folks the opportunity to give feedback much more easily, just for these changes.
The introduction of the package.json and should be in a separate PR. Because we're introducing babel, I think it warrants a discussion on a few things with @alyssaxuu about her thoughts on:
Overall I like javascript code changes! There are just too many changes and moving parts in this single PR. My suggestions are:
|
Hi @cliffordfajardo thanks for the feedback!
Are you a maintainer if this project? |
@joelvh - thanks for the clarifications
Nope, just someone who recently started playing around with this awesome javascript library. I left comments with the intent of helping improve the chance of this type of commit making it through since there were a lot of changes |
Unfortunately, there's no interest in refactoring the code base to make it easier to understand and more modular. Maybe in the future. |
This refactor maintains the same public API, while updating the internals.
@alyssaxuu this is a subsequent update following #37