ES2020 is here!
The fresh new and improved specification of JavaScript 🚀

Let me take you through some of the cool new things that we get!
These are my 5 favorite new features
🔥 Dynamic import

With this new feature, we can import JavaScript modules dynamically, as we need it.

This pattern is also known as code-splitting, and with ES2020 we can do this natively instead of relying on tools like Webpack.
🔥 Optional Chaining

With this feature, we can now access deeply nested properties without having to null-check.

Notice how 'quxBaz' becomes undefined instead of throwing a reference error.
🔥 Nullish Coalescing

With Nullish Coalescing, we can now evaluate values that are 'nullish', not just 'falsy'.

Notice how the variable 'foo' is falsy, but not nullish (null or undefined).
In some cases, we want to use fallbacks only in the case of null or undefined.
🔥 globalThis

If you want to reuse the same code across different runtimes, you'll run into trouble with the global object.

globalThis will reference 'window' in browsers, 'global' in Node.js, and 'self' in Web Workers.

Now we don't have to manually detect the runtime anymore.
🔥 Promise.allSettled

With this new member of Promise, we can accept an array of Promises and only resolve when all of them are settled. Either resolved or rejected.

This enables us to run all promises without caring if they're resolved or rejected.
Would you like to hear more about how you can improve your JavaScript and Node.js skills?
Maybe learn how to use your skills to create your own business?

Follow me here on Twitter, and check out my YouTube channel 👇
youtube.com/SimonHoiberg

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Simon Høiberg

Simon Høiberg Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SimonHoiberg

12 Oct
8 great ways to create passive income from your coding skills!
These are good opportunities to start a side hustle since they require almost no initial investments.

Start hustling 🧵👇
1️⃣ Write articles on Medium

Teach others your wisdom through technical articles on Medium.
You can choose to put the most popular ones behind a paywall.

Good writers can generate up to $6000/month in passive income.
2️⃣ Create themes

CMS-Systems like WordPress, Joomla, and Drupal are still widely used.
Create themes and sell them on Envato Market.

Some top-sellers make a substantial amount of money on this 👇
themeforest.net
Read 9 tweets
5 Oct
How to create a Full Stack application using React and Amazon Web Services 🔥

This is a summary of the areas you will need to be familiar with and a collection of resources to get you started.

A thread 🧵👇
First of all - there are many different ways to compose a Tech Stack for a Full Stack application.

With that said, let's start.

Tech Stack:
🔹DynamoDB
🔹GraphQL
🔹AWS Lambda (serverless)
🔸React
🔸Static hosting in AWS S3

Tools:
🔵 AWS Amplify
🔵 Serverless
🔹DynamoDB (1/3)

A managed database provided by AWS.

It supports both key-value entries and documents.
That means that a field can contain a single value, such as a string or a number, but can also contain a document, i.e. a JSON-object.
Read 21 tweets
2 Oct
It's Hacktoberfest!
So let's all show some serious appreciation of the hard work of Open-Source projects 🤩

Here's what we're gonna do:

Post your Open-Source project below.
Go through the other projects posted and give them a ⭐ on GitHub.

Simply to show your appreciation!
Remember!
Open-Source projects are FREE.
Amazing developers have put in hours of hard work for the whole world to benefit from.

It's an awesome act of kindness ❤️
This kind of generosity deserves a star, even if you're not personally gonna use it, don't you think?
Start with this thread right here!
This is all amazing work done by amazing people 🤩

And for the rest of you!
Fire away below. Show us your best work 🔥

Read 4 tweets
1 Oct
Alriiiight, Hacktoberfest has started 🎉🎉

Are you all ready to make some contributions to Open-Source? 😍
For sure, I am!!

I've also made some issues ready on my own Open-Source projects 👇
They all have the label "hacktoberfest" under issues.

#hacktoberfest2020 Image
Contributing to Open-Source can be an important career move!
It will signal that you're great at collaborating - a skill that is even more important than being good at coding!

If any questions or problems arrises, my DM will be open.
Happy hacking!
On Twitter API Client

1️⃣ Add tweet_mode parameter
2️⃣ Store credentials per instance to allow multiple clients.

github.com/Silind/twitter…
Read 5 tweets
14 Sep
Tips on writing a good article 💡

Do you find it hard to get the format right?

Keep these in mind when you start writing 👇
Checklist, rules, and recommendations 🧵
(Repost)
Decide on:

☑️ Subject: What are you writing about?
☑️ Target: Who are you writing for?
☑️ Goal: What do you want to achieve?
☑️ Tone: How do you want to come across?
Checklist:

✅ Do you have a short and precise headline?
✅ Do you have an enticing introduction?
✅ Do you fulfill a promise in the conclusion?
✅ Do you have a "tweetable" wrap-up?
✅ Is your language colorful and interesting?
✅ Do you apply pathos/ethos/logos?
Read 6 tweets
4 Aug
Tips on writing a good article 💡

Do you find it hard to get the format right?

Keep these in mind when you start writing 👇
Checklist, rules, and recommendations 🧵
Decide on:

☑️ Subject: What are you writing about?
☑️ Target: Who are you writing for?
☑️ Goal: What do you want to achieve?
☑️ Tone: How do you want to come across?
Checklist:

✅ Do you have a short and precise headline?
✅ Do you have an enticing introduction?
✅ Do you fulfill a promise in the conclusion?
✅ Do you have a "tweetable" wrap-up?
✅ Is your language colorful and interesting?
✅ Do you apply pathos/ethos/logos?
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!