-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possible refactoring ideas? #63
Comments
Thanks for your ideas! At first, I'm no professional JS programmer, I haven't dug into sophisticated template engines or something else yet. My programming style is 90's JS, and I am only slowly getting used to new concepts like using callback functions and objects everywhere.
But I have to admit I have no clue how to write or encapsulate JS functions into libraries or classes according to today's standards. Simply put all functions in a .js file, pack them into a object or even build a npm package? If you have suggestions how to do this or pointing me to a tutorial how to create reusable libs nowadays I would be thankful! |
Cool :) For a template engine would you consider Jekyll or DocPad? I know Jekyll pretty well. Not used DocPad other than to try installing the http://transformap.co/ site but can see its pretty flexible and of course already used in TransforMap! Given the strong JS bias on this project it might make more sense? If DocPad was used, 2 would be handled as it has lots of plugins for processing CSS and JS, plus places for vendor scripts, etc. Perhaps doing 1 and 2 would be a good first step then could refactor the JS code in more detail? Happy to explore some ideas on this. |
I've been looking a bit at the demo site code and would appreciate your feedback on a few thoughts:
I'd be interested in exploring some of this if that would be helpful. And if there are reasons why these ideas are not worth taking further, thats totally fine!
The text was updated successfully, but these errors were encountered: