Replies: 5 comments 3 replies
-
The decaffeinate commands should be But since this is not an instruction for users it doesn't need to include all these informations. Also maybe rename Step to pull request to make clear that they are separate pull requests |
Beta Was this translation helpful? Give feedback.
-
Hi @GuilleW, thanks for taking the initiative here. Regarding "Pull Request 1 : Decaffeination (with no manual change)"We don't have to manually calculate hashes, Git hashes pretty much every file it knows about. You can checkout the decaf branch and re-run the If people don't mind, I'd like to do this step myself, uploading the result to its own branch so as not to block the Although if people are impatient to get CoffeeScript gone right away on See the This is my suggested base for the rest of manual decaffeination changes. Regarding "Pull Request 2 : Remove the wrapping code in function"As long as this approach passes automated CI testing, then it should be okay. I think it may be important for the main Regarding "Pull Request 3 : Refactor following guidelines"I am a little nervous this will devolve into minor code style disagreements, where the code does effectively the same thing but we dispute how best to re-write it. So I hope we can avoid intractable bikeshedding. But... in theory yes, this is the main point, so if people still feel up for trying this, then let's try it. Patience please, everyone, and let's make sure we are realistic about time/effort required when starting something or when asking for changes during review. cc @pulsar-edit/core for your thoughts. |
Beta Was this translation helpful? Give feedback.
-
I do agree that starting off with a machine translated source is best. From there, aiming PR's at the branch that's decaffed sounds great to me. And it's at that point we can go through and fix any errors or issues that may arise. But otherwise personally I'd say just to keep it all one PR when making adjustments. Not everything has to be in the same PR, but with the small team of reviewers we do have that feels most realistic |
Beta Was this translation helpful? Give feedback.
-
With these suggestions, I've tried to implement the form we are talking about here over on If this looks good to everyone, I could continue to do the whole repo, and see what we think. But at least to me, this seems a lot more manageable with the fantastic suggestions from everyone in this thread. |
Beta Was this translation helpful? Give feedback.
-
While reading confused-Techie's pull request I remembered another disadvantage of the normal coffeescript transpiler: |
Beta Was this translation helpful? Give feedback.
-
Problem: review is hard/long after someone decaffeinate.
After reading this PR (pulsar-edit/ppm#15 (comment)) and talk on Discord (somewhere, sorry too lazy to search for it 😝 ), here's my suggestion to go forward and make review faster and easier (and I know you want it 😉 ). It follow guidelines.
Waiting your approval @DeeDeeG, @confused-Techie, folks ?
Pull Request 1 : Decaffeination (with no manual change)
Decaffeination with official (and bundled) Coffee program:
Create a Hash of decaffeinate files
Pull Request
Just PR all decaffeinate files of a folder (like
src
orspec
). and add you hash in comment.Reviewer
You just need to run same command and check if you get same hash. So you don't waste your time checking each files.
If you trust the command, you trust the result (and PR). Review will just takes few seconds!
Merge
Pull Request 2 : Remove the wrapping code in function
I'll write a bash/NodeJS or [whatever you're ok] script to remove this:
// Generated by CoffeeScript 1.12.7 (function() { {...} }).call(this);
and all extra space (indent) in the wrapper.
Pull Request
Reviewer
You just need to check if 2 first lines were removed and two last lines (+ 2 space indent in the wrapper). Review will just takes few seconds!
Merge
Pull Request 3 : Refactor following guidelines
At this point, refactor should not change lots of lines, we can PR files by 5, 10 or all ? Always keep in mind the time to review should not take more than 1-2 minutes.
Todo
Beta Was this translation helpful? Give feedback.
All reactions