HN user

shahinghasemi

51 karma

Interested in computer stuff!

Posts8
Comments14
View on HN

As you mentioned there are easy workaround for this issue on both application and infrastructure level: implementing rate limiters, monitoring/alerting systems for DB resource usages, putting quotas for tenants, etc. After all a postgreSQL instance in 16GB ram and 8core cpu can handle pretty much of the traffic for most SaaS products at their first stage.

Against Discipline 4 years ago

Without discipline you get to nowhere. At the start discipline is hard because we are a human which our brain wants to do the easiest task available to preserve energy. to prevent this situation we have to train our brain to obey us not otherwise. repeating this pattern lets your mind knows that you are the boss not itself.

The critical part here is *you have to separate yourself from your mind/brain*, in other words you are not your mind/emotions. You can control them or otherwise being over controlled by them.

Have not read the article yet but I guess it can be solved using incremental tests. First we write the tests for the core features of the API then while implementing it to pass the tests, we'll find that there arw some edge cases that we have not consider, so we write tests for them. In addition tests framework like jest provides good API around the coverages.

This is my learning strategy which originally posted on [1]:

I have created a learning framework for myself to learn literally anything. First of all It’s not going to be easy to get started learning something new because there are many holes in your mental model about the material and the aim of the learning is to fill those holes. We’re living in an information era. You can drawn yourself in surfing the web/docs/articles if you are some kind of perfectionism to convince yourself that you’re learning. But that’s the trap. You should spend about 30-40% of your time learning the material and 60-70% of your time applying it and then under the process you’ll find: “Oh I don’t know how or what is X” then you go to learn about X specifically. This works best. In other words as you will be applying what you have learned so far you start “learning on demand”. In other words filling the individual holes. This loop will force you to learn the topic.

[1] https://news.ycombinator.com/item?id=29116026

I have created a learning framework for myself to learn literally anything. First of all It’s not going to be easy to get started learning something new because there are many holes in your mental model about the material and the aim of the learning is to fill those holes. We’re living in an information era. You can drawn yourself in surfing the web/docs/articles if you are some kind of perfectionism to convince yourself that you’re learning. But that’s the trap. You should spend about 30-40% of your time learning the material and 60-70% of your time applying it and then under the process you’ll find: “Oh I don’t know how or what is X” then you go to learn about X specifically. This works best. In other words as you will be applying what you have learned so far you start “learning on demand”. In other words filling the individual holes. This loop will force you to learn the topic.

It's a Persian idiom and what does that mean is that you can't hide everything from others and they'll be informed in such way that you'll be surprised(don't know how!).