Open in app

Sign In

Write

Sign In

Michael Karén
Michael Karén

1.5K Followers

Home

About

Jan 31, 2022

Angular Error Interceptor

When applications make HTTP requests and fail, we need to handle them. Ideally, we take care of these errors in one place in our code. In this article, we discover how to handle these exceptions in Angular by using an interceptor. …

Angular

3 min read

Angular Error Interceptor
Angular Error Interceptor
Angular

3 min read


Jan 24, 2022

How to Combine Add and Edit Forms in Angular

Create/update form with smart/dumb components — This article demonstrates how to build a reusable form component that supports add and edit modes. We do this by using the container and presentation components architecture. The goal is not about teaching forms, so we keep it as simple as possible using reactive forms. The form We create a simplified form…

Angular

4 min read

How to Combine Add and Edit Forms in Angular
How to Combine Add and Edit Forms in Angular
Angular

4 min read


Published in Level Up Coding

·Jan 11, 2022

Game Development: Breakout in JavaScript

In this article, we create a complete Breakout-style game. The HTML Canvas provides the game container where we draw graphics via JavaScript. After learning how to use the Canvas for graphics and animations, we go through the algorithms behind collisions using basic shapes like circles and rectangles. …

Java Script

22 min read

Game Development: Breakout in JavaScript
Game Development: Breakout in JavaScript
Java Script

22 min read


Published in DailyJS

·May 24, 2021

How to Get Started with Canvas Animations in JavaScript

Or how my dreams of writing a game started by animating a square block… — I love playing games. And I love coding too. So, one day, I got thinking, why not use those coding skills to make a game? But it sounds hard. How would one even get started? With baby steps. 👣 In this article, we learn to draw and animate objects using…

Java Script

8 min read

How to Get Started with Canvas Animations in JavaScript
How to Get Started with Canvas Animations in JavaScript
Java Script

8 min read


Published in JavaScript in Plain English

·May 17, 2021

7 Useful JavaScript Tricks and Tips

In this article, I gathered some JavaScript tips and tricks that I believe can make you a better JavaScript developer. In no particular order, here are seven (?) JavaScript tricks! 1. Converting to numbers JavaScript is a loosely typed language, meaning we don’t have to explicitly specify types of variables. …

Java Script

5 min read

7 Useful JavaScript Tricks and Tips
7 Useful JavaScript Tricks and Tips
Java Script

5 min read


Published in DailyJS

·Apr 20, 2021

A Promise of Asynchronous JavaScript

Solving synchronous problems with callbacks, promises, and async/await — In this article, we discover the problems with synchronous JavaScript and how we can solve them with the asynchronous techniques of callbacks, promises, and async/await. We go through the three ways one by one with examples to discover how JavaScript has evolved in this area in recent years. …

Java Script

8 min read

A Promise of Asynchronous JavaScript
A Promise of Asynchronous JavaScript
Java Script

8 min read


Published in DailyJS

·Apr 5, 2021

Maintaining Multi-language Angular Applications with i18n

Discover the possibilities of Angular internationalization (i18n) and localization (l10n) — Angular i18n and the localizing of applications had an overhaul with version 9, enabled by the new rendering engine Ivy. In this article, we take a closer look at how this built-in package of Angular now works, while pointing out the benefits and drawbacks we find. We then set up…

Java Script

18 min read

Maintaining Multi-language Angular Applications with i18n
Maintaining Multi-language Angular Applications with i18n
Java Script

18 min read


Jan 11, 2021

How to Save High Scores in Local Storage

After creating a game, it would be nice to save our best scores. If we only save the score in memory it will be gone the next time we play. Instead, we can save the scores in the browser’s local storage. This article steps through how to save high scores…

Java Script

4 min read

How to Save High Scores in Local Storage
How to Save High Scores in Local Storage
Java Script

4 min read


Sep 22, 2020

Getting Started with Modern JavaScript — Spread vs Rest

JavaScript version ES6 (ES2015) brought us a couple of useful features for arrays represented by three dots (…), the rest parameter, and the spread operator. And ES2018 introduced the same syntax for objects. It can be confusing to have one syntax represent two different uses. In this article, we will…

Java Script

3 min read

Getting Started with Modern JavaScript — Spread vs Rest
Getting Started with Modern JavaScript — Spread vs Rest
Java Script

3 min read


Sep 14, 2020

Getting Started with Modern JavaScript — Template Literals

Introduced in 2015 with ECMAScript6, template literals let us dynamically construct strings of text and embedded expressions, even multi-line strings of text, in a more elegant way than concatenation. The syntax is not much different from the old one at first glance: const newWay = `is cool`; Can you spot…

Java Script

3 min read

Getting Started with Modern JavaScript — Template Literals
Getting Started with Modern JavaScript — Template Literals
Java Script

3 min read

Michael Karén

Michael Karén

1.5K Followers

Frontend Architect • JavaScript Enthusiast • Educative.io Author • ngVikings organizer.

Following
  • Erxk

    Erxk

  • Isaac Mann

    Isaac Mann

  • Max Koretskyi

    Max Koretskyi

  • Wojciech Trawiński

    Wojciech Trawiński

  • Mark Thompson (@marktechson)

    Mark Thompson (@marktechson)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech