Thursday, November 3, 2022

Photopea is a an awesome alternative to Photoshop!

When it comes to image editing, Adobe Photoshop is often considered the industry standard. However, not everyone has access to Photoshop due to its cost or system requirements. For students, hobbyists, or anyone who needs to make quick edits without installing software, finding a capable and accessible alternative is important. Photopea.com is a browser-based image editor that aims to fill this gap. It offers a wide range of features similar to Photoshop, supports many common file formats, and is completely free to use. Whether you’re working on graphic design, photo retouching, or preparing images for the web, Photopea provides a practical solution that’s available to anyone with an internet connection.

Here are some things to know about Photopea:


Thursday, August 25, 2022

Mastering Class Structure: Constructors, Fields, Methods, static, and #private in JavaScript

JavaScript classes offer more than just a cleaner way to write object-oriented code. They define a blueprint for creating objects using a constructor for initialization, fields for storing state, and methods for behavior. Classes can also extend other classes, allowing for inheritance and code reuse in more complex systems. This structure promotes better organization and encapsulation, making your code more predictable and easier to maintain.

Saturday, June 25, 2022

Modern JavaScript with ES6: Top 5 Game-Changing Features


JavaScript, was a simple scripting language for browsers, and had its share of quirks: lack of block scoping, clunky object-oriented patterns, awkward module systems, and verbose string manipulation. In 2015, JavaScript introduced a host of improvements to solve these problems evolving into a robust programming language used on both client and server sides, making JavaScript cleaner, more powerful, and easier to manage.

Friday, April 15, 2022

Creating and Using JavaScript Custom Events


What Are Custom Events?

A custom event is a user-defined DOM event you create and dispatch in your application. Once you dispatch a custom event, you can listen for it just like any other DOM event using addEventListener. This makes it easy for any part of your app to react—regardless of who fired it or where. Use them when built-in events (like click, submit, etc.) are too limiting or when you want to broadcast state changes across components or even separate apps loaded onto the same website.

Monday, February 7, 2022

Debugging JavaScript Unit Tests with Chrome DevTools (Node)

Debugging Unit Tests — Setup and Inspect

You can debug JavaScript unit tests running in Node.js (like Jest or Mocha) by launching the test runner with inspection enabled. Use the following command to start tests and pause on the first line:

node --inspect-brk ./node_modules/.bin/jest --runInBand

The --inspect-brk flag starts the V8 inspector and stops at the first line. Adding --runInBand ensures tests run in a single process, which is essential for reliable debugging.