40 ms·
It looks like react-cursor is 1300 loc [1], mobservable is 1900 [2]. How is that "vastly less code"? 1 - https://github.com/dustingetz/react-cursor/blob/maste
by curveship 11y ago
It looks like react-cursor is 1300 loc [1], mobservable is 1900 [2]. How is that "vastly less code"?
1 - https://github.com/dustingetz/react-cursor/blob/master/dist/react-cursor.js https://github.com/dustingetz/react-cursor/blob/master/dist/...
2 - https://github.com/mweststrate/mobservable/blob/master/dist/mobservable.js https://github.com/mweststrate/mobservable/blob/master/dist/...
- deleted 11y ago[deleted]
- dustingetz 11y agoThe essential idea of a cursor can be implemented in about 10 lines, and because I actually looked through the source code of mobservable, I understand what they are essentially doing and how it requires a couple hundred lines. Since we're talking ideas here and not implementations, measuring artifacts is not helpful.