Sambigeara / fuzzynote

Terminal-based, hyper-fast, CRDT-backed, collaborative note-taking tool
GNU Affero General Public License v3.0
368 stars 8 forks source link

Client concern separation #6

Closed Sambigeara closed 4 years ago

Sambigeara commented 4 years ago

Separate the client logic to handle distinct parts on the loop of each input event, as follows:

  1. Mutate the underlying full linked list data
  2. Set the new vertical position
  3. Refresh the current item
  4. Set the new horizontal position

This allowed me to clean up a lot of the service logic, and decouple both services.