Code Reading: Calculate WBNB per Token
Given a token, how do calculate its value against WBNB?
Someone already solved this for us, but let us try to understand what the code is actually doing.
Given a token, how do calculate its value against WBNB?
Someone already solved this for us, but let us try to understand what the code is actually doing.
There will be a time when your Rails development environment started to become very slow due to multiple reasons, but mostly because your codebase is very big and the monolith architecture is just too sweet for you to pass on.
As you probably know, the charting library is not accessible publicly. You need to request access from them. So, I can’t really give a complete repo as an example. I did however open a PR at https://github.com/tradingview/charting-library-examples/pull/197, but I’m not sure if it’s going to be accepted.
Why would we even want to do this? Just imagine if you have data that are infrequently accessed. Keeping it in your RDS might costs you more than it should. Besides, having big table is gonna cause you a bigger headache with your database maintenance (indexing, auto vacuum, etc).
I was asked about this from my latest job application. Didn’t realize it’s going to be this long so I thought I should share it publicly, easier for me to show it to the next interviewer. The exact question was: