[Golang] Observer

  Рет қаралды 3,593

Panpito

Panpito

Күн бұрын

Пікірлер: 9
@euprogramadordesoftware
@euprogramadordesoftware 2 жыл бұрын
Excelent Video! I was lost and I understood the observer pattern in practice here ... Thank you very much
@alexjoedt6422
@alexjoedt6422 2 жыл бұрын
Thank you :)
@r4ndsen
@r4ndsen 2 жыл бұрын
would be much better to only store a pointer to your subscribers
@panpit0
@panpit0 Жыл бұрын
for performance pov, yes for beginner comprehension, no
@MaixPeriyon
@MaixPeriyon Жыл бұрын
Why did you not use go channels for this
@panpit0
@panpit0 Жыл бұрын
What do you have in mind?
@unamed6136
@unamed6136 2 жыл бұрын
how handle errors in this design pattern? like if the broadcast return an error?
@web3tel
@web3tel 2 жыл бұрын
hello, thread safety? what if subscriber delete subscription from inside react? How to avoid sub id duplication?
@panpit0
@panpit0 2 жыл бұрын
hello, simplicity first, complexify later? why would a subscriber delete its subscription inside the method react()? you'd write tests for that to avoid it I guess? Would the sub id duplication complexify the purpose of explaining the observer pattern?
[Golang] Chain of responsibility
10:46
Panpito
Рет қаралды 601
[Golang] Adapter
18:25
Panpito
Рет қаралды 2,3 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 6 МЛН
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,3 МЛН
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 42 МЛН
Go Design Patterns - Generator Pattern and Observer Pattern - Part Two
14:37
Master Golang with Interfaces
21:54
Kantan Coding
Рет қаралды 14 М.
Go 1.22 - Fixes For Loops | Prime News
7:41
ThePrimeTime
Рет қаралды 70 М.
[Golang] Memento
32:02
Panpito
Рет қаралды 820
OOP in Pure C
2:00:13
Tsoding Daily
Рет қаралды 77 М.
Шаблон проектирования Наблюдатель / Observer
9:42
Евгений Волосатов
Рет қаралды 8 М.
How to Program in Unity: Observer Pattern Explained
15:57
iHeartGameDev
Рет қаралды 114 М.
[Golang] Dependency injection with Fx
33:10
Panpito
Рет қаралды 8 М.
The Power Of Golang's Decorator Pattern
14:09
Anthony GG
Рет қаралды 47 М.
Improve Go Concurrency Performance With This Pattern
34:16
Kantan Coding
Рет қаралды 13 М.