Copy
Note: You are receiving this because you have signed up for Nordschool's weekly newsletter. Every Monday, we send out our "Better Code Monday" with 3 frontend coding tips from experienced developers.

Better Code Monday 20/01/20

Good day! 👋

Here are this week's three coding tips:

Tip #1 - Get rid of old packages! 🧹


npkill is a neat tool that can help you unused npm packages. Here is their official description

"This tool allows you to list any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space. Yay!"
How it works! ☝🏽

Tip #2 - Reusable Types ✅


Typescript's Generics are awesome! They allow you to create dynamic reusable interfaces.
Generics have many use-cases, here is a small example ☝🏽

Tip #3 - Start with the high-level story 


When writing code, try to start with the high-level abstracted ideas first.
Example 🍕

This code tells you immediately that it is making pizzas. 
The code had a bug? Maybe something to do with not preparing the pizza's dough? 😅

The point is...

Write your code in a way that it always starts with the highest level of abstraction. Afterwards, you can get into the details.

Share your tips


Have a tip that you would like to share with our community? Tweet it to @nordschool and we will include it in one of the future newsletter issues! 👌🏽
If you know someone who might find this useful, sharing is appreciated! 👍🏼

That is it folks, wish you a good week & until next time! 👋

Ahmed

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