(reading time 15 min)
Behavior Delegation – OLOO (objects-linked-to-other-objects) pattern.
Some time ago I wrote this tweet:
I’d summarize it like: Thinking JS has classes is like believing the engine of your car has real horses in it. I hope I got it right 🤓
Reading the You Don’t Know JS (YDKJS) book series leaves something inside you, especially when you have been in the front-end dev world for so many years.
It is a mix of amusement, inspiration, and sense of chaos about what web dev is, and what it has been for Javascript development in this specific case so far.
So sometimes you want to throw some message in the air, to externalize such feeling.
I personally found what I tweeted, quite significant so I decided to share it in other places, included Linkedin.
There a guy, front-end dev like me, showed his appreciation for my post and suggested to read a post he wrote on the topic.
I read it very carefully, this subject passionates me and it was a quite interesting post.
But at the end, the way the issue was tackled gave me this feeling, it was saying something like “ it would be interesting in theory, but do it this, instead, because everybody does it this way/this is the real trend”. Continue reading