Yonatan Kra

Yonatan Kra

Family, Code, Run

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

Tag: javascript

Home / javascript
Improve Your Tests Like a Ninja

3 Simple Habits to Improve Your Tests

February 12, 2023February 12, 2023 Yonatan KraLeave a Comment on 3 Simple Habits to Improve Your Tests

How can tests be your best documentation? What small changes can improve the contract between your code and its consumers? Learn how to improve your tests from a real-world example.

Yes, we write them to ensure fewer things break before …

Read More
Chrome Extensions Available in Chrome Webstore

How to Create a Chrome Extension?

August 21, 2022August 21, 2022 Yonatan KraLeave a Comment on How to Create a Chrome Extension?

Did you know you can improve your (and your colleagues’) life by developing chrome extensions? Keren Kenzi showed how to do it in Fullstack Exchange 2022

In Fullstack Exchange 2022, Keren Kenzi gave an excellent talk about a chrome extension…

Read More
The Coupling Pitfall on Slack

What is the Coupling Pitfall and how to Avoid it?

July 31, 2022August 1, 2022 Yonatan KraLeave a Comment on What is the Coupling Pitfall and how to Avoid it?

How to avoid constant tests maintenance and regressions in your code? In this article, we will talk about a new term “the Coupling Pitfall”, what harm it is doing to your code, and a way to fix it.

What are

…
Read More

Understanding Unit Tests in Javascript: 5 Frameworks

June 29, 2022June 29, 2022 Yonatan KraLeave a Comment on Understanding Unit Tests in Javascript: 5 Frameworks

When it comes to testing, checking a single function is different from testing a complete application at once. It helps to understand the flaws in any units of the application and allows the developers to take appropriate steps. 

How unit

…
Read More
An Orderly Nx Workspace Will Help You Accomplish More

How to create a workspace generator as a library in Nx workspace?

May 19, 2022May 19, 2022 Yonatan KraLeave a Comment on How to create a workspace generator as a library in Nx workspace?

How to create an Nx generator? How to use it in your Nx workspace? How we converted a workspace generator into a publishable library? And how can boring be good for you?

Nx is a powerful monorepo management tool. It …

Read More

6 Lessons Learned from Using Playwright for UI Tests

April 27, 2022June 7, 2022 Yonatan KraLeave a Comment on 6 Lessons Learned from Using Playwright for UI Tests

Here are 6 practical lessons learned from a production incident, ui-test coverage (using playwright) and code review.

Today we had a small incident in production – one of my teammates found out a feature in one of our component doesn’t …

Read More

How to Remote Debug and Profile Node.js Apps?

December 28, 2021December 28, 2021 Yonatan KraLeave a Comment on How to Remote Debug and Profile Node.js Apps?

Debugging is an important skill for every developer. Here’s how to quickly setup debugging for nodejs with free tools everyone has.

Introduction

There are many fancy tools for debugging your application.  Data dog, rookout, aspecto and sentry to …

Read More

How to find a unique number in a list containing pairs?

October 3, 2021October 7, 2021 Yonatan Kra3 Comments on How to find a unique number in a list containing pairs?

Finding a single unique number in a list containing pairs might sound pretty simple, right?

Because a one-sentence description might be misleading, let’s start with an example of an input array:

[1,3,17,3,1]

Given such an array, the unique number is …

Read More

Simple Collision Detection with Path2D

September 27, 2021November 30, 2021 Yonatan KraLeave a Comment on Simple Collision Detection with Path2D

How to create a simple and efficient collision detection between paths in your HTML5 Canvas app or game? In this article we will create a maze, allow a player to navigate through the maze and detect when the player collides …

Read More

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

Posts navigation

1 2 3 Next

I’m an instructor at:

Egghead.io

Follow me on

Sign up for my newsletter

Recent Posts

  • Live Coding an Open Source Feature
  • How to Use Github Actions Self-Hosted Runners?
  • How to Build a Vivid Birthday Quiz in 20 minutes?
  • The One Trick to Writing Effective Tests
  • 3 Simple Habits to Improve Your Tests

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.