Yonatan Kra

Yonatan Kra

Family, Code, Run

  • Blog
  • Planned Talks
  • About Me
  • Free Tech Blogging eBook!

Tag: javascript

Home / javascript (Page 2)

Custom JSON.stringify to Classes with the toJSON method

September 21, 2021September 21, 2021 Yonatan Kra1 Comment on Custom JSON.stringify to Classes with the toJSON method

The toJSON method allows you to tell JSON.stringify how to print out your Class. This can be pretty useful…

Why Stringify Objects?

The answer for that is as usual – there are many reasons. The most obvious one is …

Read More

Deep dive into an interview question: Array Nesting

September 2, 2021December 9, 2021 Yonatan KraLeave a Comment on Deep dive into an interview question: Array Nesting

The Array Nesting interview question might seem complex at first and very simple after you solve it. But sometimes, a deeper dive into it can expose some more performance optimizations that can be interesting. After this article, you’ll be able …

Read More

How to write a simple collision detector in HTML5 canvas and JavaScript?

August 12, 2021August 16, 2021 Yonatan KraLeave a Comment on How to write a simple collision detector in HTML5 canvas and JavaScript?

Collision detection is the basics of entities interaction on canvas. Imagine you have a Player Character (PC) that’s walking through a maze and you’d like to know if this PC bumps into a wall or can keep on going. One …

Read More
A woman looking at Jest on Canvas picture

How to test HTML5 canvas with jest?

August 4, 2021December 12, 2021 Yonatan KraLeave a Comment on How to test HTML5 canvas with jest?

In this short article you will learn what you need to install in order to prepare a test environment for canvas operations with jest. After finishing the article, you will be ready for some canvas testing action!

In the past …

Read More
A maze made on an HTML5 canvas

How to generate a maze using JavaScript and HTML5 canvas and a Cellular Automaton algorithm?

July 31, 2021August 10, 2021 Yonatan Kra2 Comments on How to generate a maze using JavaScript and HTML5 canvas and a Cellular Automaton algorithm?

Generating a random map on a canvas is fun. In this article you will learn how to generate a random map or maze on an HTML5 canvas. We will use a model called Cellular Automaton.

While there are many ways …

Read More

This is how I helped YouTube improve performance with a simple JavaScript trick

November 17, 2020August 10, 2021 Yonatan KraLeave a Comment on This is how I helped YouTube improve performance with a simple JavaScript trick

Google’s Material Web Components had a performance issue and I thought I could help. The results: 90% performance improvement in big lists removal. Here’s how I did it, and how you can duplicate it in your application.

“Look Ma! My
…
Read More

How does the JavaScript event loop work and how to help it run your code faster?

November 9, 2020August 10, 2021 Yonatan KraLeave a Comment on How does the JavaScript event loop work and how to help it run your code faster?
The event loop and your code talk from WarsawJS

On august 2020 I spoke at WarsawJS, explaining about the event loop and how it works. I hope you will enjoy this talk.

If you prefer to read – here’s …

Read More

GraphQL Alternative: GraphQL vs. AskQL

October 24, 2020August 10, 2021 Yonatan KraLeave a Comment on GraphQL Alternative: GraphQL vs. AskQL

How does AskQL differ from GraphQL?

Efi Shtain’s question was repeated in various forums

After writing about AskQL and how to use AskQL with nodejs, the obvious question that repeat itself was: How does it differ from GraphQL?

In …

Read More

Form Association and Web Components – Today

September 8, 2020August 10, 2021 Yonatan KraLeave a Comment on Form Association and Web Components – Today

Recently I’ve joined a team that’s creating a UI library using web components. This is great – but it has its challenges. One of these challenges is form association behind Shadow DOM.

When we create a form, we expect the …

Read More

Handling Different Kafka Message Versions

June 30, 2020August 10, 2021 Yonatan KraLeave a Comment on Handling Different Kafka Message Versions

I was in a job interview a while ago and one of the problems raised there was handling different message versions in the same topic.

The problem was described as follows:

You have a producer of version 1.0. It sends …

Read More

Posts navigation

Previous 1 2 3 Next

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • From Zero to Hero with Github Actions (video)
  • Live Session: 3 Tips for More Meaningful Tests
  • Live Coding an Open Source Feature
  • How to Use Github Actions Self-Hosted Runners?
  • How to Build a Vivid Birthday Quiz in 20 minutes?

Categories

  • Algorithms
  • Architecture
  • AskQL
  • Blogging
  • canvas
  • chrome extensions
  • CodeTalks 2019
  • Coding
  • Conferences
  • ConfrontJS
  • ConfrontJS 2019
  • Cypress
  • debugging
  • Design Patterns
  • devops
  • docker
  • Gaming
  • Github
  • github actions
  • GraphQL
  • Interview Questions
  • Javascript
  • javascript engine
  • Javascript Israel
  • jest
  • Memory
  • Meta Programming
  • Musings
  • nodejs
  • NPM
  • nx
  • Open Source
  • Performance
  • Playwright
  • Skills
  • Testing
  • typescript
  • Uncategorized
  • vivid
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.