DevIdiot!
I Audited 37 B2B Directories for a Static Site. Here's What Actually Broke.
We run a 897-page static site, ten languages, deployed on Cloudflare Workers. No CMS, no database, no framework โ just HTML files generated from templates and pushed through a build step.For the last few weeks I've been auditing B2B directories to see which ones actually give a company page a clickable link back to our site. I started with a list of 37. Zero gave us a usable link.This post is about the six ways that audit went wrong before it went right, because five of those six mistakes are th
How to build a crypto trading bot that signs its own transactions
A trading bot has three parts. There is code that decides when to trade, code that builds the transaction, and a key that signs it. The usual setup keeps the key in an environment variable on the same server as the strategy, so a bug or a break-in can sign anything. On Lit Protocol you can run the whole bot as a Lit Action and have Lit Triggers run it on a schedule. The action checks the price, applies your limits, and signs with a key that only that exact code can use. You do not run a server,
A percentage calculator for marketers: lessons from 41 languages and one tricky formula
I work as an internet marketer, and half of my day is percentages. Sessions went from 12 480 to 15 210. The conversion rate fell from 3.2% to 2.7%. A channel took 1 170 of a 4 500 budget.For years I answered those on my computer's calculator or in a spreadsheet cell I typed once and forgot. I wanted one tool that opens fast, answers while I type and asks the questions the way I ask them. So I built Percentage Calculator: seven calculators on one page, in 41 languages. It is 100% free and has no
I checked 848 EU websites: 56 % load trackers before you consent
Cookie banners are everywhere in the EU. I wanted to know how many of them actually hold anything back, so I loaded 848 websites from 14 EU countries and recorded every request before anyone touched the banner. Results473 of 848 (56 %) loaded analytics or advertising services, such as the Meta Pixel or Google Analytics, before consent.487 of 848 (57 %) loaded Google Fonts from Google's servers before consent.I opened 20 hits per number again by hand. Method, limits and the full numbers: htt
Your Per-Item ResizeObserver Is a Layout Feedback Loop
Every virtualized list with variable-height rows eventually meets the same bug: you add a ResizeObserver to each row so you can measure it, write the measured height back into your layout state, and the page starts fighting the user's scroll. GitHub's diff-surface rebuild hit exactly this, and their fix generalizes to any large list. By the end you will know how to detect the feedback loop, how to batch measurements, and how to anchor height corrections so they don't move content under the curso
Where to store private keys in your app
The safest place for a private key is somewhere your app can ask for a signature without ever reading the key. On a phone, that means the iOS Keychain or the Android Keystore. On a server, it means a key management service, a hardware security module, or a hosted signer. For a crypto wallet that your app controls, Lit Protocol keeps the key inside a secure enclave and runs your signing rule in the same enclave. Your server holds an API key that can ask for signatures, and that is all it holds.I
JAVASCRIPT FUNCTIONS: A BEGINNER'S GUIDE
Understanding JavaScript Functions: A Beginner's GuideIntroductionWhen learning JavaScript, one of the most important concepts to understand is the function.A function is a reusable block of code designed to perform a specific task. Instead of writing the same code repeatedly, you can write it once inside a function and execute it whenever necessary.In this tutorial, we will learn how to create functions, pass arguments, return values, and use functions in practical programming.What Is a JavaScr
How to program a crypto wallet
A crypto wallet is a private key and some code that uses the key to sign transactions. You can write one in a few lines of JavaScript with a library like ethers or viem. Writing the code is the easy part. The harder part is deciding where the private key lives once the wallet holds real money. On Lit Protocol you can create a wallet with one API call. The key is generated inside a secure enclave, only the code you permit can use it, and your app never holds the key.I will start with a version yo
HEX, RGB and HSL Colour Codes Explained (with JavaScript Converters)
A colour can be written in three common ways in CSS: HEX, RGB and HSL. They describe the same colour, so #ff8800, rgb(255, 136, 0) and hsl(32, 100%, 50%) are exactly the same orange. The three formatsFormatExampleHow it worksHEX#ff8800Red, green and blue as hexadecimal pairsRGBrgb(255, 136, 0)Red, green, blue from 0 to 255HSLhsl(32, 100%, 50%)Hue (0 to 360), saturation and lightness Which one should you use?All three work in CSS. HEX is the most common. HSL is the easiest to adjust by
Why Figmaโs Bezier Curves Feel Fake (And How an Indian Team Fixed It With Physics)
Why Figmaโs Bezier Curves Feel Fake (And How an Indian Team Fixed It With Physics)Have you ever wondered why micro-interactions in native iOS or macOS apps feel organic, while Figma Smart Animate prototypes feel stiff and artificial?The reason is simple: Figma animations are locked into pre-computed time-based bezier curves.When you define an easing curve like cubic-bezier(0.25, 0.1, 0.25, 1), the transition duration is fixed. If the user drags a sheet 50 pixels or flings it 900 pixels, it
Angular developer learning React: what carries over, what's new, 30-day plan
What carries overAngular conceptReact equivalent / relevanceComponentโbased architectureBoth frameworks revolve around reusable components. In Angular you declare a component with @Component, in React you write a function or class that returns JSX. The mental model of โa UI piece with its own template and logicโ stays the same.Dependency injection (DI) basicsAngularโs builtโin DI container is more opinionated, but the idea of providing a service instance to a component persists. In React y
Infinite lists in React
I have gone back to an app that I built using Spotify API because they have messed around with all sorts of things a basic app relies on, but that's another article! The infinite loading hookSomething I was pleased with when returning though was how I had implemented infinite scrolling for the playlists and playlist tracks. Essentially I have used TanStack-Query's useInfiniteQuery() to collect 'pages' of data. A page can essentially be thought of as an object that has various properties inc
4/11/26 in paiyalagam (props in react)
syntax : import parent function parent (){let amount =10000; ------------->sendreturn(parent { childmat={amount}/>import childfunction child (props){console.log(props.amt)return( child{props.amt} ---------------->receive)}export default child |return ( V object more than one value is object so use {{value}} in expection function . send the function file to file child {{amount.setamount}}. | V
How We Built an 8-Language Static Booking Site That Loads in Under 1 Second
A private car transfer booking site doesn't sound like an interesting engineering problem until you try to serve it in eight languages and guarantee that no bad data ever reaches production. This is how we built navetteforyou.com, a Marrakech airport transfer site.The stack: TanStack Router with file-based routing, React 19, Tailwind CSS v4, Vite, deployed on Vercel as a fully static site. 624 HTML pages generated at build time with Bun, zero runtime server. Eight languages: English, French, Ger
Is useEffect() really usefull ???
useEffect is a react hook used to handle sideeffect in functional component.It allows us to execute code after rendering based on the dependency array.Syntax of useeffect()import React, { useEffect } from 'react';useEffect(() => { // Side effect code}, []);Callback function: Contains the code that should execute.Dependency array: Determines when the effect should execute again.There are 3 common ways to use useEffect, based on the dependency array.Type 1-Without dependency arrayex:-useEffe
3/11/26 in paiyalagam (mounting,update,unmounting)
use effect in mounting :the component called at 1st time using effect will be mountingupdate: you have 10 usestate you want to render 2 times use[v1,v2].unmounting: use effect(efn,[]; function efn(){ return (()=>{ -----> if you want to stop the component rendering }if you want clean up ao use unmounting it will work on return()render: render is mean react executes your component function to figure out what should be displayed on the screeen . rerend
PitchPulse โ Rehearsing Recovery for High-Pressure Speaking (Powered by Presage SmartSpectra)
This is a submission for the Presage SmartSpectra SDK Challenge What I BuiltPitchPulse is a private desktop rehearsal studio for high-pressure speaking.Most presentation tools provide an arbitrary score after the performance is over.PitchPulse focuses on a more actionable question:When pressure rises at the same moment, can I recover more steadily on the next take?During Take 1, the speaker marks a difficult momentโsuch as a pricing slide,audience objection, or forgotten transitionโby press
React useContext Hook โ Interview Questions and Answers
Q1. What is useContext in React?useContext is a React Hook used to share data between components without passing props manually through every level of the component tree.Example: We can share cart data, user information, theme, and authentication status using useContext.Q2. Why do we use useContext?We use useContext to avoid prop drilling and share data between multiple components easily.For example, in an e-commerce application:Header needs cart count.Product page needs add-to-cart functionalit
Building a Reddit-Native Word Chain Game with Devvit and React
Architectural OverviewBuilding applications that run natively within social platforms requires rethinking traditional web deployment patterns. For this project, the objective was to engineer a fully interactive, state-managed Word Chain game hosted directly inside Reddit using the Devvit platform and React.Core System Design & Validation LogicAt the heart of the application is a robust state and validation engine designed to enforce game rules smoothly without server bloat:State Management:
Built a zero-bloat Hacker News alternative running 100% on Cloudflare Pages & D1 using Next.js 14 App Router, @prisma/adapter-d1, and React useOptimisticโno extra Worker microservices.
Show DEV: I Built ByteNews โ A High-Density Hacker News Clone on Next.js 14 & Cloudflare D1 ๐ผ๐๐๐๐๐๐๐ฟ๐๐๐๐ฎ๐๐๐๐ ๐ผ๐๐๐๐๐๐๐ฟ๐๐๐๐ฎ๐๐๐๐ ๐ผ๐๐๐๐๐๐