Excelent Video! I was lost and I understood the observer pattern in practice here ... Thank you very much
@alexjoedt64222 жыл бұрын
Thank you :)
@r4ndsen2 жыл бұрын
would be much better to only store a pointer to your subscribers
@panpit0 Жыл бұрын
for performance pov, yes for beginner comprehension, no
@MaixPeriyon Жыл бұрын
Why did you not use go channels for this
@panpit0 Жыл бұрын
What do you have in mind?
@unamed61362 жыл бұрын
how handle errors in this design pattern? like if the broadcast return an error?
@web3tel2 жыл бұрын
hello, thread safety? what if subscriber delete subscription from inside react? How to avoid sub id duplication?
@panpit02 жыл бұрын
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?