Why you should know JavaScript

before rewriting your application in Rust?

 Luca Del Puppo 

Luca Del Puppo

  • Senior Software Developer
  • JavaScript enthusiast
  • TypeScript lover
  • “Youtuber”
  • “Writer”

Love sport: running, hiking

Love animals

Why this talk?_

💰

Do you really want to re-write years of code with Rust?

💰

Talk we the business

💰

💰

💰

💰

💰

💰

Be clear_

I don't want to say that rewriting your applications or pieces of your applications in Rust is wrong!

Is it the proper benefit for your Business?

In 95% of the cases

The answer is NO!

In 95% of the cases

Check your JavaScript code; it is enough to improve your performance and save money for your business

In 95% of the cases

Your 💩 code blocks your main Thread

Before get started_

What we will learn today

  • Some JavaScript syntaxes are slower than others
  • Some JavaScript syntaxes are slower than others based on specific cases
  • Some JavaScript syntaxes are slower than others based on the Node version
  • How to not kill the main thread
  • How to not waste time

What you MUST keep in mind when you work with performance in JS_

  • Doing nothing is faster than doing something
  • If you can offload the work to someone else, offload the work to someone else
  • If you can do it later, do it later
  • If you don’t have the yes answer on one of the first options, you have to do whatever you have to do as fast as possible

Let's jump into

the code_

Conclusions_

  • don’t kill your main thread
  • push the job outside if you can
  • check what happens during the execution
  • if you need performance, the bin is the right place for the Clean Code book
  • Programs don’t run on mathematical abstractions; they run on hardware

About this presentation_

About code_

Luca Del Puppo

@puppo92

Luca Del Puppo

Puppo_92

@puppo

We are hiring

Thank you!_

Why you should know JavaScript before rewriting your application in Rust?

By Luca Del Puppo

Why you should know JavaScript before rewriting your application in Rust?

  • 204