fsajkdnjk
Joined 6 years ago
Joined 6 years ago
what I've learnt throughout many years of coding is that purest mantra one should follow is YAGNI. devs think like devs and strive for perfect code. but that goes directly against the business. the majority of the entire world is being run on really bad code. but that bad code works. and that is what is important.
in a way, you should treat things like blackboxes with strict interfaces. no one should care how the box works, as long as its interface works like it is supposed to.
PS: the dangers of DRY are introduction of deep dependencies that might, and probably will, bite you in the ass along the way. DRY should be used only for libraries, not for business logic - ever.
then, when you are parsing the events(hydrating or replaying) you just check the schema version in the envelope and handle the changes/payload accordingly.
it's actually very trivial once you put it all together.
facebook is the same but due to its nature it does it only via its social sharing widgets that people put on their websites and the embedded comments and things like that.
google's cdn is the most dangerous of these things.
you can get your subscriptions via https://www.youtube.com/subscription_manager