blog.michaelkaren.devAngular Error InterceptorWhen 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. We look into the be...Jan 31, 2022·4 min read
blog.michaelkaren.devHow to Combine Add and Edit Forms in AngularThis 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 u...Jan 24, 2022·4 min read
blog.michaelkaren.devGame Development: Breakout in JavaScriptIn 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 collis...Jan 11, 2022·30 min read
blog.michaelkaren.devHow To Get Started With Canvas Animations In JavaScriptI 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 us...May 24, 2021·9 min read
blog.michaelkaren.dev7 Useful JavaScript Tricks and TipsIn 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, mean...May 10, 2021·6 min read