Copy
Note: You are receiving this because you have signed up for Nordschool's newsletter. It has 3 tips to help you become a better developer.

Better Code Monday 13/04/20

Good day/evening! 👋

I hope you are healthy and doing well!

Here are this week's three coding tips:

Tip #1 - The cost of optimization 🏋🏽‍♀️


How not to overuse React's optimisation tools.

"Performance optimizations ALWAYS come with a cost but do NOT always come with a benefit. Let's talk about the costs and benefits of useMemo and useCallback. - Kent C. Dodds "

While the post is about React, it offers good principles to guide you when trying to optimise your code.

👉🏽 Find the blog post here.

Tip #2 - Show an example 


Adding a .env file is a common technique to decouple configurations from your code.

When you add a .env file to your project, make sure you add a .env.example file as well. Would make other developers' life easier! 👌🏽

Here is an example from laravel.

Tip #3 - Grey all the way ☑️


Often things in real life are grey instead of being black or white, right or wrong. Grey thinking can help you become a better thinker and a better programmer. It helps to see things through the grey lense when discussing technical solutions.

There is rarely a solution without 2nd order consequences. No proposal is 100% amazing or absolute trash. Often it is something in the middle! 😁
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. 👌
Twitter
Website
Copyright © 2020 Nordschool, All rights reserved.


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list.

Email Marketing Powered by Mailchimp