-
Notifications
You must be signed in to change notification settings - Fork 223
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
imager.js updated. #2
Conversation
Thanks once again, @stephenplusplus. @Integralist The implementation updates here LGTM, but would love a review from you if there's time. |
@addyosmani No problem. I had a quick scan yesterday and it seemed OK, but I'll review it properly later today and comment accordingly /@stephenplusplus |
Thanks @Integralist! @stephenplusplus once we've reviewed this, I think the next thing to properly tackle will be #1. If you're interested in helping with that, happy to collaborate on it further. |
@stephenplusplus @addyosmani just for future reference I've updated the README to include a section on those wanting to help contribute (I've kept it in line with other BBC open-source projects). The point of interest is "ensuring commits are as 'atomic' as possible). So my concern is that there is one commit in this pull request and yet it is changing lots of the code. For example, I would prefer to have a single atomic commits like so...
...etc. Apologies @stephenplusplus, I don't mean to disregard your good work but it would be much appreciated if you could ensure the commits are broken down as suggested above. I'm in the process of reviewing your code changes now so if you can hold fire on the above and I'll let you know once I'm done (in case there are any other changes). Thanks again Stephen for your time and help :-) |
Absolutely, Mark! I'm more than happy to comply with that format. |
|
||
var token = (++id).toString(); | ||
requestAnimationFrameShimishStuff: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I'm mistaken this line is defining a property requestAnimationFrameShimishStuff
on an object that doesn't exist? Also the property isn't referenced again so there is no point in wrapping the polyfill code inside it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just a label. More fun than a comment, but agree that it leads to unnecessary confusion. Will kick it out!
@stephenplusplus @addyosmani I've finished reviewing the code. I've made a few comments regarding the code style and formatting. But as per my original comment about making sure the pull request abides by the need for atomic commits it might be easier if we close this pull request and re-open a fresh one so the atomic nature of the requests can be implemented. @addyosmani I've noticed the code currently doesn't work (by that I mean things like the CSS aren't being generated and the images aren't being replaced), this is even before the changes implemented by this pull request. It maybe due to over engineering a general purpose solution (e.g. use of compass and a load of other tech solutions -> but I'll open that as a separate issue for you). |
Thanks for the extensive review, Mark! I've gone through and applied changes per your feedback. If you're not sick of this PR yet, feel free to look over and see if this is more what you had in mind. If I soured on method names again, I'm open to better suggestions. I've also removed the pub sub implementation, as it seemed like unnecessary overhead the more I reviewed what we're doing. If you have a differing opinion, it won't trouble me at all to place it back in. After your review of this, I will open more PRs to keep a sane git trail of these changes. Thanks! |
// regex: RegExp | ||
// } | ||
// | ||
// @param {opts} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change this to object next go around. Woops :)
@stephenplusplus once you've completed all changes then feel free to drop a final comment in this discussion area mentioning @addyosmani and myself to re-review :-) |
@Integralist & @addyosmani, it's ready to re-review now. 👍 |
How would you feel about us merging in @stephenplusplus's work (when we're content with the changes) and then identifying the specific steps we want to automate via tooling? From my end, I imagine this would be:
I had also been considering whether or not we should provide an option automate the step of using |
@addyosmani spot on with your comments :-) we'll work towards getting @stephenplusplus changes merged in (once we've re-reviewed) and then work towards minimalistic grunt set-up to get project at least releasable and then after promoting it we can work on greater configuration. Sounds like a good plan to me. Thanks :-) |
Great! @stephenplusplus do you think you'll get a chance to redo this set of changes as more atomic commits for changes? I'll clean up the tooling in the repo as soon as your changes are updated. I can't currently see anything I strongly disagree with in the current PR otherwise. |
I probably won't be able to get back on this until Monday. Summer weekends, On Saturday, August 10, 2013, Addy Osmani wrote:
|
SGTM. Have a good weekend! |
Look at all those commits ^ |
@addyosmani @stephenplusplus hey guys, I've merged in this change. As mentioned previously neither the original repo Addy pushed up nor these changes mean the example application is working so I'll take a quick look at trying to get a basic working version as per my original gist. |
Carried over from stephenplusplus/imager#1:
Hey guys,
I took a stab at elaborating on the prototype from https://gist.github.com/Integralist/6157139. I thought we could use a repository just for the imager library itself, and the other one would be the collaboration of the plug-in, the grunt task, etc. (I set this up as a bower component, but of course didn't and won't register anything)
Does this function as originally intended? I added in image caching (one of many parts that could use a review).
The script runs without dependencies currently. (the first few labels are things that can be modularized/outsourced/improved/scrapped depending on what browser support/dependencies is targeted) It does allow jQuery to take the wheel if it's present on the page. If I went off in a wrong direction, I have no problem scrapping this.
Hope this helps the overall mission!