3 ms·
I have an example where context works well for me. I have built an app[0], the app allow user to submit links, either using our web ui or via a bot. When usin
by kureikain 9y ago
I have an example where context works well for me.
I have built an app[0], the app allow user to submit links, either using our web ui or via a bot.
When using web ui, they have to login, hence we associate the links with that user. The bot is different, everyone submit via the post share the same `Bot` account.
In other words, the process of inserting a link from web ui or via bot is a bit different. Without context, I would use different module or some branch code to distinct between them. I think context solves that nicely for me.
---
[0] https://one.betterdev.link https://one.betterdev.link which is an extra version of https://betterdev.link/ https://betterdev.link/