No internet connection
  1. Home
  2. Development

Cleaner Code Todo List

By KajMagnus @KajMagnus2018-12-02 13:51:13.522Z2018-12-02 14:08:31.227Z

Post comments here, about how to improve the Talkyard source code. Then I or someone will look into doing those things.

Example: A React.js component makes you confused, by mixing presentation things and application logic. Or there's a Scala class with a weird name, that you had to spend 10 minutes trying to understand what it does. Or, you cannot find at all, the source code that must exist somewhere that does this-or-that. Where is it? Or ... whatever you happen to stumble upon that slows you down.

  • 1 replies
  1. KajMagnus @KajMagnus2019-02-07 19:05:11.003Z

    Refactoring the editor. It's so large and logic is split "all over the place" because old React <= 16.7, with classes, enforces this. I'd like to start using React 16.8 hooks instead and grouping the code by what it does, instead of life cycle functions.

    Hopefully logic can then be reused between the simple editor, used in the chat, and the full size editor (used everywhere else).

    This will also be a good / necessary preparation, before introducing ProseMirror, some time later.