Stop working so hard

Tim Mouskhelichvili
Tim Mouskhelichvili
2 minutes to read

Hello, my dear friends! I hope you and your families are doing well.

Sorry that I didn't send any updates last week.

I was busy with the web application project I've been working on for the past two months. Hopefully, I can finish it soon and take the summer more slowly.

Indeed, we sometimes forget (or do not want, I am guilty of this myself) to take breaks from working.

The North American culture we live in encourages us to work all the time. Working all the time is seen as something great and noble. We even brag about how much we work all the time.

But working this way has negative consequences.

It can negatively affect our health and our relationships. It can even cause burnout or depression! Lastly, it can cause performance issues in our work.

That's why this summer (if you have been grinding), take some time off.

Stop working so hard and enjoy life.

It will be beneficial for you in the long run.

You will recuperate and work even better after the time off!

Tip of the week

Did you know that TypeScript supports conditional types?

Indeed, you can use the ternary operator when working with types. Conditional types are particularly useful when working with generics.

Here is an example:

typescript conditional types.

In this example, NameOrId returns two different interfaces based on the type you passed as the argument.

If you pass a number, it returns IdLabel.

If you pass a string, it returns NameLabel.

Cool right?

Thank you for reading.

See you next week!

Tim M.

Comments (0)
Reply to:
Page content
  1. Tip of the week