Refactoring #21

Closed
opened 2020-09-16 12:59:10 +00:00 by delvh · 0 comments
Owner

In @kske 's opinion, many UI classes fulfill purposes that are more than just displaying the UI (especially ChatScene). As this class has way too many lines in his opinion (~750), it should be shortened.

So, how can we achieve clean code?

  1. UI classes should only contain UI related code -> event methods should NOT contain the logic of changing something in the LocalDB.
  2. Some parts of the voice recording process used in ChatScene can be outsourced to a separate component, i.e. the AudioRecorder.
  3. (LocalDB could store internally an ObservableList, whose underlying list is serialized. When this list changes, ChatScene might automatically be updated)
In @kske 's opinion, many UI classes fulfill purposes that are more than just displaying the UI (especially `ChatScene`). As this class has way too many lines in his opinion (~750), it should be shortened. So, how can we achieve **clean code**? 1. UI classes should only contain UI related code -> event methods should **NOT** contain the logic of changing something in the `LocalDB`. 2. Some parts of the voice recording process used in ChatScene can be outsourced to a separate component, i.e. the `AudioRecorder`. 3. (LocalDB could store internally an `ObservableList`, whose underlying list is serialized. When this list changes, `ChatScene` might automatically be updated)
delvh added this to the v0.2-beta milestone 2020-09-16 12:59:10 +00:00
delvh added the clientM labels 2020-09-16 12:59:10 +00:00
mpk was assigned by delvh 2020-09-16 12:59:10 +00:00
delvh self-assigned this 2020-09-16 12:59:10 +00:00
delvh started working 2020-09-16 13:05:32 +00:00
delvh added the due date 2020-10-01 2020-09-16 13:06:13 +00:00
delvh added a new dependency 2020-09-16 13:13:18 +00:00
delvh added a new dependency 2020-09-16 13:21:39 +00:00
kske removed a dependency 2020-09-16 13:23:10 +00:00
delvh was unassigned by kske 2020-09-22 12:41:09 +00:00
mpk was unassigned by kske 2020-09-22 12:41:09 +00:00
kske self-assigned this 2020-09-22 12:41:10 +00:00
delvh removed a dependency 2020-09-22 15:04:39 +00:00
kske added L and removed M labels 2020-09-26 16:13:54 +00:00
kske closed this issue 2020-09-27 10:06:38 +00:00
delvh worked for 2280h 39min 35s 2020-12-20 13:45:07 +00:00
This repo is archived. You cannot comment on issues.