Refactoring #21

Closed
opened 2020-09-16 14:59:10 +02: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 14:59:10 +02:00
delvh added the
client
M
labels 2020-09-16 14:59:10 +02:00
mpk was assigned by delvh 2020-09-16 14:59:10 +02:00
delvh self-assigned this 2020-09-16 14:59:10 +02:00
delvh started working 2020-09-16 15:05:32 +02:00
delvh added the due date 2020-10-01 2020-09-16 15:06:13 +02:00
delvh added a new dependency 2020-09-16 15:13:18 +02:00
delvh added a new dependency 2020-09-16 15:21:39 +02:00
kske removed a dependency 2020-09-16 15:23:10 +02:00
delvh was unassigned by kske 2020-09-22 14:41:09 +02:00
mpk was unassigned by kske 2020-09-22 14:41:09 +02:00
kske self-assigned this 2020-09-22 14:41:10 +02:00
delvh removed a dependency 2020-09-22 17:04:39 +02:00
kske added
L
and removed
M
labels 2020-09-26 18:13:54 +02:00
kske closed this issue 2020-09-27 12:06:38 +02:00
delvh stopped working 2020-12-20 14:45:07 +01:00
2280h 39min 35s
This repo is archived. You cannot comment on issues.
No description provided.