Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit addb3b87 authored by DawnFall19's avatar DawnFall19
Browse files

Adding reflection publisher 1

parent 5d033e87
Branches main
No related tags found
No related merge requests found
...@@ -77,6 +77,11 @@ This is the place for you to write reflections: ...@@ -77,6 +77,11 @@ This is the place for you to write reflections:
### Mandatory (Publisher) Reflections ### Mandatory (Publisher) Reflections
#### Reflection Publisher-1 #### Reflection Publisher-1
1. Interface tetap diperlukan, agar Open-Closed Principle terjaga, dimana subscriber dapat terbuka pada ekstensi namun tertutup pada modifikasi.
2. Penggunaan `Vec` saja belum cukup karena `Vec` tidak menjamin keunikan, sehingga diperlukan `DashMap` karena menyediakan pencarian waktu konstan dan manajemen batasan unik.
3. Pola singleton dapat memastikan bahwa hanya ada satu instance dari sebuah entitas, namun tidak memastikan bahwa akses dapat dilakukan secara aman, sehingga penggunaan `DashMap` tetap diperlukan karena memang dirancang untuk keamanan thread.
#### Reflection Publisher-2 #### Reflection Publisher-2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment