javascript

Recent in

javascript

How To Use Debounce in Next.js
nextjs

How To Use Debounce in Next.js

https://hackernoon.com

React v16.8 introduced a new hook called `useEffect, which allows you to run side effects in your functional components. UseEffect is a great way to handle expensive operations like API calls, but it can take some work. In this post, I'll show you how to use use useEffect` to debounce expensive procedures in Next.js. Debouncing is a technique for controlling the rate at which a function is called.

Imamuzzaki Abu SalamNov 20, 2022
Fixing ChatGPT's Limitations for Coding
artificial-intelligence

Fixing ChatGPT's Limitations for Coding

https://hackernoon.com

For programmers ChatGPT has two problems, it require source code as a context otherwise it'll write some random solution of the error and the source code needs to be within ChatGPT input limit. I came up with a plan to build a VS Code extension which can directly extract source code from the code editor.

Musab ShakilFeb 28, 2023
Multi-domain Automation Testing With Cypress
cypress

Multi-domain Automation Testing With Cypress

https://hackernoon.com

Cypress allows users to run multiple domains in one test with cy.origin() and manage pop-up windows. In the following case if test attempts to get access to a new domain, Cypress will throw a cross-origin error.

Valeriia AmelcheniaFeb 28, 2023
How to Use Image Enhancers to Improve your Photos
photography

How to Use Image Enhancers to Improve your Photos

https://hackernoon.com

Every day, thousands of people click photos of their valuable moments with their smartphones and cameras. Businesses also use images on their websites and web apps to communicate information with customers and improve user experience. Low photo quality can be due to several factors, including low resolution, underexposed photos, etc.

FilestackFeb 28, 2023
JavaScript Replace – How to Replace a String or Substring in JS
JavaScript

JavaScript Replace – How to Replace a String or Substring in JS

https://www.freecodecamp.org

When working with JavaScript, you might need to replace a string or substring with a new one. For example, you might want to replace a certain string (like "color” — American English) or substring in a larger text or document with a different string (“colour” — British English).

Joel OlawanleFeb 28, 2023
Sorting an Array in JavaScript: A Beginner's Guide
How to Develop a Chatbot with React and OpenAI
programming

How to Develop a Chatbot with React and OpenAI

https://hackernoon.com

In the we built a Node.js/Express server that exposes an `/ask` endpoint. When this endpoint is triggered and we include a text `prompt', the endpoint interacts with OpenAI's `/completions` API to generate and return a continuation of that text. We'll be building the UI of our app with the React JavaScript library.

Hassan DjirdehFeb 27, 2023
Integrating OpenAI with Node.js and Express: A Tutorial
ai

Integrating OpenAI with Node.js and Express: A Tutorial

https://hackernoon.com

This is the first article of a 3 to 4-part tutorial series. We'll be working towards building our very own custom Q&A chatbot. We’ll be focusing solely on creating a Node.js server where we can interact directly with OpenAI’s APIs.

Hassan DjirdehFeb 27, 2023
Newsletter

Let's keep in touch

Benefit from a weekly updates, coding challenges and helpful resources around software development.

Your privacy is important to us. We promise not to send you spam!