Refactor comparison function.#47
Conversation
|
Awesome, was just about to look into this myself! The diff for me is really important, its pretty much impossible to figure out mistakes without it. |
|
Yeah, this looks great! The diffs are going to be really useful. |
bef1281 to
ab7b36e
Compare
ab7b36e to
110d5cc
Compare
|
OK, this is ready to be merged. I updated it so the comparison is agains the solution in ./solutions instead of copying it again, added a couple errors checks, and of course updated the rest of the problems. Lemme know if something looks bad :) |
|
This is awesome! Trying it out right now. |
|
What do you think about changing the order slightly? I found myself automatically looking at the line that starts with a So instead of this: It would be this: |
|
Yeah, the problem there is all that stuff gets automatically spat out when you pass false to the callback, and i'm just console.log'ing the stuff at the start. Will take a look in a bit. |
ea1e3be to
4f94db9
Compare
|
OK! I've refactored a bunch more stuff, every problem index.js is now generic and the same, and there is only 1 troubleshooting.md file now which stuff gets injected into. I also removed the blank readme.md's from the problem folders. It's a little bit hacky, but it works for what we need, and makes future improvement quite easy. (i can squash these commits if you want, before you merge) |
|
Niiiiice. This is great. I'll go ahead and merge it. Adding you as a collaborator, too, if that's alright with you. |
Refactor comparison function.
|
on npm as v1.10.0 |
|
Awesome! |
Do not merge this PR yet, it is not finishedJust going to try and gauge ideas etc again.
This moves the solution of each (only introduction exercise atm) into it's own file, this also moves the comparison of solution & attempt into it's own file.
There is also a diff that is provided (like learnyounode) when the solution is incorrect (the format of the output could definitely use with some work).
Is this something that we want to do?