javascript

26 Icon datasets and more frontend resources

26 Icon datasets and more frontend resources

Under the Hood The story begins when I want to find the icon library.  Frontend Roadmap Template || Ultimate Frontend Toolkit GPT helps me to get the list, but again some links won’t work and not all good resources are covered by GPT itself. Here we go with 20 icon libraries and links I’ve added the same list in the Frontend roadmap template this will certainly help a lot of developers, it has made 100+ sales in 50 countries. Frontend roadmap template || Ultimate Frontend Toolkit This same template has other resources as mentioned below, so give it a shot.…
Read More
Hello, DEV Community! I’m Makda Nebyu

Hello, DEV Community! I’m Makda Nebyu

Hello everyone! My name is Makda Nebyu. I’m a 3rd-year software engineering student at Wachamo University and a photo model. I’m excited to join the DEV Community and share my journey, projects, and knowledge with all of you. I have certificates in: JavaScript Web Design Python Computer Basic Skills Work Skills Here are some of the projects I've worked on: Student Result Management System Description: A web application to manage and track student results. Technologies used: C++ Clinic Management System Description: A system to streamline clinic operations and manage patient data. Technologies used: JavaScript, HTML, CSS, MySQL. Library Inventory System…
Read More
7 Best Practices for ReactJS Development in 2024

7 Best Practices for ReactJS Development in 2024

Modern web development has made ReactJS an essential tool, enabling developers to create dynamic and interactive user interfaces with ease. ReactJS development best practices change along with technology. Maintaining technological leadership will necessitate implementing fresh approaches and plans to guarantee scalable, maintainable, and efficient code. In 2024, the following seven best practices should be adhered to when developing ReactJS: 1. Embracing Component-Driven Development Among ReactJS best practices, component-driven programming is still at the forefront. The goal is to simplify complicated UIs into reusable parts that support code reusability and outline functionality. Adopting component-driven development promotes teamwork, improves code maintainability, and…
Read More
JavaScript MMORPG – Maiu Online #babylonjs – Ep: 25 – Monsters AI System

JavaScript MMORPG – Maiu Online #babylonjs – Ep: 25 – Monsters AI System

Hello, Finally I finished work on first prototype of monsters AI module. Monsters have several states: IDLE, PATROL, DEAD, FLEEING, COMBAT.Idle monsters are non active even when someone attack them. Patrolling ones are walking around and checking each 0.5s is they have someone to attack in a range if yes then they start chase target (combat state) and attack when in range. Dead are obvious and fleeing is triggered when monster is enough far away from the position where it switched into combat state.I also added death to the monsters after 120s they respawn.Implementation have some bugs and AI it's…
Read More
Catch, Optimize Client-Side Data Fetching in Next.js Using SWR

Catch, Optimize Client-Side Data Fetching in Next.js Using SWR

How to Optimize, Memorise Client-Side Data Fetching in Next.js Using SWR In modern web applications, efficient data fetching is crucial for providing a smooth and responsive user experience. Next.js, a popular React framework, offers several ways to fetch data. One effective method is using the SWR (stale-while-revalidate) library, which provides a powerful and flexible approach to data fetching and caching. In this article, we'll explore how to use SWR for client-side data fetching in a Next.js application, and we'll compare it with traditional React hooks for data fetching. Deploying Next JS Static Website on GH PAGES This is a Next.js…
Read More
Dynamic DOM Element Creation :

Dynamic DOM Element Creation :

In HTML Create parent div <!--------------- Parent div --------------> <div id="parent" class="card m-5 mx-auto" > <h1>Hello Template</h1> </div> Create template: <!----------------- Template tag ------------> <template id="template"> <div class="card d-flex"> <img id="temp-img" src="https://picsum.photos/id/293/100/100" alt="smth"> <h1>Template title</h1> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi, architecto dolor eius fugiat incidunt ipsa iure iusto officiis recusandae rerum!</p> </div> </template> In CSS: #parent{ width: 43%; } .card { width:500px; padding: 20px; } .card h1{ font-size: 50px; } #temp-img { margin: 0 auto; width: 400px; height: 300px; } In Javascript: Call from HTML const parent = document.querySelector('#parent'); const template = document.querySelector('#template'); Clone the template…
Read More
I made a Discord bot with lmstudio.js!

I made a Discord bot with lmstudio.js!

I have been using LM Studio as my main driver to do local text generation and thought it would be cool to integrate it into a discord bot. The post is a bit long due to a lot of the setup so feel free to skip straight to the code: lmstudio-bot github LM Studio https://lmstudio.ai/ allows you to run LLMs on your personal computer, entirely offline by default which makes completely private. Discord https://discord.com/ is used by a lot of different communities including gamers and developers! It gives users a place to communicate about different topics Note: For clarity I…
Read More
How to accept Cash App payments on your Node.js web server without Cash App Pay!

How to accept Cash App payments on your Node.js web server without Cash App Pay!

Hello there! Welcome to this concise Node.js tutorial where I will guide you through integrating Cash App payments into your Node.js website without relying on Stripe, Cash App Pay, or any other payment processing platforms. The best part? No SSN or ID verification is required to handle the payments! To begin accepting Cash App payments, start by launching Cash App on your device and locating the profile button in the top-right corner of the screen. Proceed by scrolling down until you spot the Notifications tab, and ensure that email notifications are enabled. This step holds significant importance since we will…
Read More
How to Conquer Imposter Syndrome

How to Conquer Imposter Syndrome

It's been about 20 days, and I've been very busy with my college assignments. But on the side, I managed to finish the basics of web development and tried to get back into coding by creating a few small projects. However, I encountered a significant challenge: imposter syndrome. I kept comparing myself to many younger developers who are excelling in the field, securing jobs at multinational corporations, landing remote positions, or even starting their own SaaS businesses. Moreover, I've come across numerous YouTube videos suggesting that the MERN Stack and web development, in general, are becoming saturated fields, and all…
Read More
Converting RGBA to HEX in JavaScript: A Comprehensive Guide

Converting RGBA to HEX in JavaScript: A Comprehensive Guide

In web development, managing colors efficiently is crucial for creating visually appealing applications. One common task is converting colors from RGBA (Red, Green, Blue, Alpha) format to HEX (Hexadecimal) format. In this article, we’ll explore a robust JavaScript function to achieve this conversion seamlessly. Introduction to Color Formats Colors in web development can be represented in various formats, including: RGBA: Specifies colors with Red, Green, Blue, and Alpha (opacity) values.HEX: Represents colors using a hexadecimal code.Converting between these formats is often necessary for consistent styling across different platforms and tools. The rgbaToHex FunctionThe rgbaToHex function is designed to convert an…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.