There is nothing fun about trawling through minified code, even after formatting! You did a great job pulling out the interesting bits. It's fascinating to note that so much of the code is UI and the bits that do the calculations are just a few lines.
Yes, getting started was massively confusing.
I was amazed how simple the logic was as well. I think the logic for applying highlighting word by word is going to be the most difficult thing to replicate. Also managing the logic so that it only rescans the paragraph that's changed.
I bet, I can only imagine that getting something like this to perform well is the real task at hand here. I've enjoyed using Hemmingway in the past and it's great to see the engineering that goes into it.
Thanks for sharing again!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There is nothing fun about trawling through minified code, even after formatting! You did a great job pulling out the interesting bits. It's fascinating to note that so much of the code is UI and the bits that do the calculations are just a few lines.
Yes, getting started was massively confusing.
I was amazed how simple the logic was as well. I think the logic for applying highlighting word by word is going to be the most difficult thing to replicate. Also managing the logic so that it only rescans the paragraph that's changed.
I bet, I can only imagine that getting something like this to perform well is the real task at hand here. I've enjoyed using Hemmingway in the past and it's great to see the engineering that goes into it.
Thanks for sharing again!