webdev

Seamless State Management using Async Iterators

Seamless State Management using Async Iterators

In my recent post about AI-UI, I touched on why I developed the library. I wanted declarative markup I wanted type-safe component encapsulation, with composition & inheritance I wanted a small, fast client-side solution with no complex build process (or any build process!) ...but most importantly... I didn't want to learn a whole new API just to manipulate data I already have in my app In my single page apps, I've got remote APIs and endpoints that supply data. Sure, I might want to do a bit of arithmetic, sorting, formatting, but basically, I want to say to the UI:…
Read More
The Importance of Continuous Code Review and Early Security Integration

The Importance of Continuous Code Review and Early Security Integration

In today's fast-paced digital landscape, software development is at the heart of innovation and progress. As businesses and organizations rely more heavily on software solutions, the need for robust, secure, and efficient code has never been greater. This is where continuous code review and early security integration come into play, serving as crucial pillars in the modern software development lifecycle. Continuous code review is the practice of systematically examining code changes throughout the development process, rather than waiting until the end of a project. Early security integration, on the other hand, involves incorporating security measures and best practices from the…
Read More
How to properly measure code speed in .NET

How to properly measure code speed in .NET

Imagine you have a solution to a problem or a task, and now you need to evaluate the optimality of this solution from a performance perspective. The most obvious way is to use StopWatch like this: However, there are several issues with this method: It is quite an inaccurate method, since the code being evaluated is executed only once, and the execution time can be affected by various side effects  such as hard disk performance, not warmed-up cache, processor context switching, and other applications. It does  allow you to test the application in Production mode. During compilation, a significant part…
Read More
[DAY 57-59] I learned React & Redux

[DAY 57-59] I learned React & Redux

Hi everyone! Welcome back to another blog where I document the things I learned in web development. I do this because it helps retain the information and concepts as it is some sort of an active recall. On days 57-59, after acquiring the DSA certificate from freeCodeCamp, I continued on to the next course which is the Front End Development Libraries. The course teaches frameworks and libraries of CSS and Javascript. After learning Bootstrap, jQuery, and SASS. The course moves on to teach you about React and Redux and how the two work together in developing web apps. Picking up…
Read More
Without user feedback, you’re just another “developer”

Without user feedback, you’re just another “developer”

This article was originally published in my blog: https://www.codebymedu.com/blog/role-of-user-feedback-in-frontend I’ve always believed that hearing directly from users is a game changer when building websites. It’s like having a guide who tells you exactly where to go and what to fix. That’s why user feedback is so crucial especially in frontend —it helps us see our work through the users’ eyes. In this article, I'll share how listening to user feedback has changed the way I build my projects, making them more effective and user-friendly. We’ll look at why this feedback is so important and how you can use it to…
Read More
What are the Benefits of Using ECMAScript Classes Over Traditional Prototype-Based Inheritance?

What are the Benefits of Using ECMAScript Classes Over Traditional Prototype-Based Inheritance?

JavaScript has long utilized prototype-based inheritance as a core mechanism to build reusable code. This traditional approach of leveraging prototypes to define methods and properties that JavaScript objects can inherit has served developers well over the years by offering flexibility and dynamic features that help drive web innovation. But with ECMAScript 2015, also known as ES6, JavaScript embraced a new syntactic feature—classes. These ECMAScript classes provide a much clearer and more familiar syntax for creating objects and dealing with inheritance, drawing close parallels with classical object-oriented programming languages. Understanding Prototype-Based Inheritance In JavaScript, objects utilize prototype-based inheritance, a form of…
Read More
RxJs and Redux-Observable

RxJs and Redux-Observable

Redux-Observable is a middleware for Redux that uses RxJS to handle asynchronous actions. It offers an alternative to redux-thunk and redux-saga, allowing you to work with async actions using observables. Understanding the Observer Pattern Before diving into RxJS and Redux-Observable, let's revisit the Observer Pattern. In this pattern, an "Observable" object maintains a list of "Observers". When the Observable's state changes, it notifies all its Observers. document.addEventListener("click", (event) => { console.log("Element clicked:", event); }); Enter fullscreen mode Exit fullscreen mode In this example, addEventListener makes the document an Observable, and the callback function is the Observer. Diving into RxJS RxJS…
Read More
SFU vs MCU vs P2P: WebRTC Architectures Explained

SFU vs MCU vs P2P: WebRTC Architectures Explained

There are different WebRTC architecture available today, these are SFU, MCU and P2P, selecting one depends on many factors these include Network Conditions Bandwidth availability If participants have good quality bandwidth then SFU and peer to peer calling will work for them If the participants do not have good quality bandwidth and there are a lot of participants than going with a MCU would be a good idead Latency Sensitivity If the situation requires low latency then going with an SFU and/ or peer to peer is a good idea If there is a tolerance for latency and latency is…
Read More
The Right Way to Clone Nested Object/Array (Deep Clone) in Javascript

The Right Way to Clone Nested Object/Array (Deep Clone) in Javascript

As you might know, Javascript uses pass-by-reference when passing an object, array, or function to a new variable. When you pass an object, array, or function to a new variable, a reference (memory address) to the object is passed. Any modification to the object's properties in the new variable will be reflected in the original object since they both point to the same memory location. const original = { name: 'Alice' }; const newVariable = original; newVariable.name = 'Bob'; console.log(original); // { name: 'Bob' }; Enter fullscreen mode Exit fullscreen mode To solve this issue we can use Object.assign() or…
Read More
Top CSS Websites for Developers: Elevate Your Frontend Skills

Top CSS Websites for Developers: Elevate Your Frontend Skills

CSS (Cascading Style Sheets) is a cornerstone of modern web development, enabling developers to create visually appealing and responsive websites. With the evolution of frontend technologies, there are numerous resources available online to enhance your CSS skills. In this blog, we'll explore some of the top CSS websites that can help you learn, experiment, and get inspired. 1. Uiverse.io Uiverse.io is a fantastic platform for developers looking to improve their CSS skills through interactive components. Uiverse offers a wide range of user interface elements like buttons, loaders, and card designs, each accompanied by the necessary HTML and CSS code. The…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.