3 ms·
It seems to be buggy? There were 9 JavaScript errors in the process of typing, "How do I compare thee to a summer's day?" (I know that's not the original text o
by fruchtose 14y ago
It seems to be buggy? There were 9 JavaScript errors in the process of typing, "How do I compare thee to a summer's day?" (I know that's not the original text of the sonnet.)
- trevorah 14y agoYeah, only listing the top 10 chars to write next results in a few misses. Its also bit of a pain to test a recursive function that uses random numbers.
- fruchtose 14y agoI can understand that, but in a web app like yours which is meant to be very responsive, I think you would be better served by handling misses rather than letting errors throw away the stack (so to speak) every time a miss happens.
- trevorah 14y agoVery true. I've just updated it now to handle misses. Its a bit of a ugly hack, but it stops the errors for now. You can check it out here - https://github.com/trevorah/backseat-writer/commit/b749d315483a00a66d4dbeb1d7f6d9022982b67d https://github.com/trevorah/backseat-writer/commit/b749d3154...