-
Notifications
You must be signed in to change notification settings - Fork 126
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
Refactoring suggestion #33
Comments
Yes that would be super nice!
…On Jan 17, 2018 12:32 PM, "Alexander Kachkaev" ***@***.***> wrote:
Hi again @shd101wyy <https://github.com/shd101wyy>!
I'm currently playing with {cmd=true} and as a by-product of that would
like to offer some help with code refactoring. I could start with splitting
markdown-engine into a set of smaller files, which will make the code
much easier to read and decouple. For example, I could help with moving
export functions into a new folder called src/export rather than keeping
them all in one large class. Similarly, custom syntax rules like math,
emoji, critic markup etc. can go into individual files and thus become
easier to update or cover with tests. Ultimately, some functionality that
has been extracted into smaller and cleaner files can become node modules
on their own, which sometimes happens with other libraries.
Before I start refactoring bits of mume I'd like to ask if you're happy
with this suggestion in general. My guess is that the files are so large at
the moment because mume started small but then grew beyond its
expectations, but I might be wrong and the large files are your design
decision. In the latter case extracting smaller modules might not be
something you're looking forward to see.
Curious to know what you think and am happy to help if you consider
refactoring potentially useful! Mume is awesome!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB0gf8iBP9e8kIq4Mb5lw_f61bBtrFA1ks5tLjzSgaJpZM4Rhyet>
.
|
I would like to get involved in this project if possible/needed; would you be able to write a short guide for contributors (general code structure, short-term and long-term to-dos, etc) in the wiki? |
Great to hear that you'd like to get involved @sheljohn! If you're interested in writing a contribution guide, how about making it a part of the repo? What would be also awesome is to have a folder with some test markdowns that use different features of mume. When I'm changing something, It's quite hard to check if you haven't broken anything 😅 |
@kachkaev Markdown tests would be good, but I'm not sure where to start with regards to the contribution guide; any chance either of you could write a high-level version to get started? |
#40 should partially address refactoring. Here's what our further steps could be:
|
I might do so once #40 is sorted. Meanwhile, gathering a bunch of markdown files that cover the entire mume's functionality would be really awesome! If you're interested in helping with these, you can take a look at |
@kachkaev I just had a look at the folder, this looks great. Any recommendation on how to test for various header options / exports without creating tons of files? I will have a look at that this week-end either way :) |
Not sure if there is a way to have few fixture files when we want to test a lot of functionality. Well, we could try stuff everything mume can do into a couple of very long markdowns, but that would create a testing nightmare IMO. As long as the files are carefully organised into subfolders and meaningfully names, we should be good 👍 |
@shd101wyy would you be happy to go through task 1 in #33 (comment) this weekend? If not, I can help you with that. Really looking forward to have stricter tslint rules and to be able to apply prettier everywhere! 🕺 I'd do all that hair-combing a while ago, but I'm a bit confused about:
It'd be really good if you could take that task. Of course, if you have time and desire 😉 |
Sure I will give a try. Thank you :)
…On Thu, Mar 22, 2018, 6:19 AM Alexander Kachkaev ***@***.***> wrote:
@shd101wyy <https://github.com/shd101wyy> would you be happy to go
through task 1 in #33 (comment)
<#33 (comment)> this
weekend? If not, I can help you with that. Really looking forward to have
stricter tslint rules and to be able to apply prettier everywhere! 🕺
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB0gfz3xBY42796qlgl4OW5Fz6pEOUfGks5tg4iogaJpZM4Rhyet>
.
|
Yay! I can help you with setting up CI later on. Feel free to ping me tomorrow or this weekend if you have any issues! |
Hi again @shd101wyy!
I'm currently playing with
{cmd=true}
and as a by-product of that would like to offer some help with code refactoring. I could start with splittingmarkdown-engine
into a set of smaller files, which will make the code much easier to read and decouple. For example, I could help with moving export functions into a new folder calledsrc/export
rather than keeping them all in one large class. Similarly, custom syntax rules like math, emoji, critic markup etc. can go into individual files and thus become easier to update or cover with tests. Ultimately, some functionality that has been extracted into smaller and cleaner files can become node modules on their own, which sometimes happens with other libraries.Before I start refactoring bits of mume I'd like to ask if you're happy with this suggestion in general. My guess is that the files are so large at the moment because mume started small but then grew beyond its expectations, but I might be wrong and the large files are your design decision. In the latter case extracting smaller modules might not be something you're looking forward to see.
Curious to know what you think and am happy to help if you consider refactoring potentially useful! Mume is awesome!
The text was updated successfully, but these errors were encountered: