Better Code Tuesday 31/03/20
|
|
Good day/evening! 👋
I hope you are healthy and doing well!
Here are this week's three coding tips:
|
|
Tip #1 - Test like your user 🕵🏽♂️
The @testing-library libraries help you test UI components in a user-centric way.
1 of their guiding principles: The more your tests resemble the way your software is used, the more confidence they can give you.
Check out their packages for UI frameworks such as Vue, React & Angular.
|
|
Tip #2 - Monorepo ①
What?
Monorepo means having the code for projects in the same repository.
Why?
- Reuse your code easily
- Simplify your dependency management
- Refactor code with confidence
- Promote collaboration across your teams
Check out this curated list for more resources.
|
|
Tip #3 - Your next investment 💰
Now that we are at home with more time, here is a question to think about:
"What is the thing to learn, that would give you the highest return on your invested time?"
|
|
That is it folks, wish you a good week!
Stay safe & until next time! 👋
Ahmed
P.S: If you know someone who might find this useful, sharing is appreciated! 👍🏼
If you have been forwarded this email, you are welcome to subscribe here and you will receive next week's tips. 👌
|
|
|
|
|