Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Named modules, Diffing + legacy code #29

Open
montogeek opened this issue Oct 3, 2017 · 6 comments
Open

Named modules, Diffing + legacy code #29

montogeek opened this issue Oct 3, 2017 · 6 comments
Labels

Comments

@montogeek
Copy link

I just finished the first tutorial, amazing stuff! Been waiting for doing something like this but never found a good place to start, now I have it. Thanks for coming up with this academy!

I want to leave some feedback after finishing it:

  • webpack plugin for named modules on HMR, this would help apprentices to debug quickier
  • It would be great to see changes easier, this is called Diff Highlighting, after investigating a bit how it could be done, I found 2 ways:
  1. This project is using Ocular, that also uses PrismJS, this is an example that hooks on Prism to add CSS classes to lines that you want to diff: https://github.com/survivejs-sites/survivejs-es/blob/master/utils/highlight.js
  2. Ocular is using marked (good decision!), this is an example using Marked renderer.code hook: https://gist.github.com/choxi/6fa98f7b203bf2dfdcfa (source highlight as diff and language highlightjs/highlight.js#480)

I could contribute to some of those changes if you agree with them :)

@jckr
Copy link
Contributor

jckr commented Oct 4, 2017

Hi thanks for the feedback! @apercu I'll let you weigh in on the first half
On the 2nd half - we just gave this tutorial live and this part of the app (4) seems to have trouble. so I'm going to touch it up today and take your remarks into account. thanks!

@balthazar
Copy link
Contributor

Hey! Yeah definitely for the named modules, I'll add that thanks! About the diff highlighting though I'm a bit concerned we will have to show all the components at every stage to do a complete diffing of it and that might be a bit big, unless you had a better idea?

@montogeek
Copy link
Author

@apercu Yeah, it could take a lot of space, maybe just show 2 or 3 lines above and below the change? Check for example webpack docs pages: https://webpack.js.org/guides/code-splitting/

@nharrisanalyst
Copy link

Thanks for the tutorials and thanks for deck.gl it is great but in the basic chart we add the Spinner component it is giving me an error ReferenceError: Spinner is not defined.
I don't see where Spinner is imported when I delete the Spinner component the app compiles but with the Spinner component the app does not work and I get the error.

@montogeek
Copy link
Author

montogeek commented Oct 6, 2017

@nharrisanalyst Check parent folder contents, everything is there, just copy and paste it to your folder

@nharrisanalyst
Copy link

thanks

@balthazar balthazar changed the title Feedback Named modules, Diffing + legacy code Oct 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants