ssh-chat icon indicating copy to clipboard operation
ssh-chat copied to clipboard

[WIP] Refactoring towards v2.0

Open shazow opened this issue 9 years ago • 6 comments

Status: Don't use this branch. It's highly experimental and likely broken and might not get merged.

The goal is to clean up and reduce the API surface so that we can introduce many-to-one connections-to-members and persistence without changing too many things across too many layers.

shazow avatar Sep 01 '16 20:09 shazow

Some notes for myself so I don't forget everything and have to re-figure-everything-out from scratch again next time:

  • Multiplexing connections in the client struct is not the way to go: The room skips sending messages to itself, so the clients are not kept in-sync that way. It would be better to keep separate clients but perhaps share a UserConfig.
  • .. Or maybe it's fine if we do it at the terminal layer.

shazow avatar Apr 30 '17 19:04 shazow

should i be using this branch for dev? no concrete plans but starting to use ssh-chat more and might wanna hack on it

rileytg avatar Jun 04 '17 22:06 rileytg

@rileytg Hi! Good question. I would suggest working on master. It's not certain that the v2 refactor will get merged anytime soon—I'm experimenting with some big changes which might not pan out.

If you're looking for things to hack on, I suggest checking the Tiny tag which should be just a few lines of changes and a great place to start. For bigger work, Help Wanted is a good one.

shazow avatar Jun 05 '17 17:06 shazow

How’s this going?

zenware avatar Nov 07 '20 17:11 zenware

@zenware lol

shazow avatar Nov 07 '20 18:11 shazow

On a serious note, this branch was a lesson that large refactors are a bad idea as they get increasingly hard to merge and risk of burnout continues to increase with the divergence.

If I ever attempt this again, it will be lots of little breaking changes instead of one giant breaking change.

Someone should write another "semver considered harmful" post.

shazow avatar Nov 07 '20 18:11 shazow