Yonatan Kra

Yonatan Kra

Family, Code, Run

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

Tag: algorithms

Home / algorithms

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 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 KraLeave a Comment 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

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • How to create a workspace generator as a library in Nx workspace?
  • How we employed the new ECMAScript Module Support in typescript
  • 6 Lessons Learned from Using Playwright for UI Tests
  • How to use webpack and HTML Webpack Plugin to generate HTML pages for multiple entries in 2 steps?
  • A good case for Eval in JavaScript

Categories

  • Algorithms
  • Architecture
  • AskQL
  • Blogging
  • canvas
  • CodeTalks 2019
  • Coding
  • Conferences
  • ConfrontJS 2019
  • debugging
  • Design Patterns
  • devops
  • 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
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.