dsriseah / ursys

an opinionated javascript library for prototyping realtime web apps
1 stars 2 forks source link

Comment Module: Stage 1 Code Reorganization #21

Closed dsriseah closed 1 week ago

dsriseah commented 1 week ago

[!NOTE] This is a reorganization only PR. There are no new features

This PR is the first pass at porting the NetCreate Comment Manager so it can be reused in other projects that are being updated this year. It is being committed now to add the new addons jsplay and webplay to the base system, as well as fixing a bug in the URSYS Core FILE module.

SIMPLE TESTING

See Additional Changes below for a description of these commands

CODE REVIEW RELATED CHANGES

A code review of the ac-comment, dc-comment, and comment-mgr modules from NetCreate was conducted to determine the best way to port the code, but it is not as modular as hoped and not easy to follow. In preparation of porting the system into URSYS, the following changes were made to make it easier to study in a functional+operational sense:

The code review helped identify general approaches to apply in Stage 2. They are being discussed in Discussion #20 "Refactoring Comment Manager", identifying the kind of support modules to write.

ADDITIONAL CHANGES

BACKGROUND

After evaluating the current code, there is still a lot of system-level architectural work to be done to make the comment manager easily portable using URSYS conventions. The major drawbacks of the current implementation are:

These are critical concerns for modularity so a deeper rewrite is needed. Many of the ideal patterns do not yet exist in prior code, so this is an opportunity to introduce clean implementation as was done with URSYS Messaging support.