So you are making a front end using channels like mobile native app or hybrid app or a web app to let user consume and use data provided by APIs.
You don’t want to break trust of API provider or the user and also don’t want the competitors or third parties to leverage the trust established on you.
In that case, you will be required to safeguard the secrets and data which are shared by API and end user.
The suggested architecture may look like the pic above.
Here are some best practices you should follow while building as per…
In case you are logging FE Errors using Console.logs, and want to avoid them being seen in Production to end users in their browser console, you would be looking an elegant solution to achieve this.
Here are my findings to do better Error Handling and also log custom Events that are of business/functional importance which will help both Devs and Business to track and improve the app, Proactively.
Rent something you can’t buy. Experience it before you can’t anymore due to factors like age, lack of purchase power or unfavourable future that nobody can predict ( think pandemic! ).
Nobody owns anything forever anyways.
In my view, life is like a line made of small dots called moments. I would better fill them with experiences and small but meaningful achievements rather than working forever to achieve my dreams and keep on saving money for the day that may never arrive.
This way you can win each day while getting first hand experience of things you dream to own…
Come to the verge of doing The thing you like the most and just don't do it. This will work as a Reference Point in later life when you are tempted to do something unproductive. If you could give up that, you can easily give up this.
eg. If you like ice cream very much, take it but don't eat it...melt it with your hard stare infact ;)
Next time when you have urge to eat something unhealthy, recall the ice cream reference point which was much higher a challenge and #justdontdoit :)
Over period of time you will build enough reference points to avoid most distractions and temptations and can focus on things that matter most to you
1. Increase Resistance to things you don’t want to do more:
e.g. too much social media, news or videos? install AppDetox or Moment
2. Decrease Resistance to things you want to do more:
e.g. gym is closed or takes more than 5 mins to reach? Setup gym at home - its one time expense. Start small, with Yoga mat and each month get a new tool for different body part. In few months, you will have 24*7 gym at same or lesser cost of annual gym fee.