GyaanSetu WebDev

Frontend, backend and devops for the modern web.

244 articlesDeep, practical knowledge

TypeScript 7 ના પેરેલલ Go રિરાઈટ પછી ડેવલપર્સ દસ ગણી ઝડપથી ઇટરેટ કરી શકે છે

TypeScript 7 સત્તાવાર રીતે આવી ગયું છે. TypeScript 7 બહાર આવી ગયું છે. Microsoft એ Go લેંગ્વેજનો ઉપયોગ કરીને તેના કોરને ફરીથી બનાવ્યું છે. આ ફેરફાર કોડ કમ્પાઈલેશનને ઘણું ઝડપી બનાવે છે. તમારું એડિટર વધુ ઝડપી લાગશે...

WebDev · 3 min read

WhatsApp RAG Bot Stops Hallucinating by Enforcing JSON Citations

The prototype, built on PostgreSQL with pgvector, swaps heavy prompts for a JSON schema that validates every claim. If the model can’t attach a chunk ID, the response is rejected and the user sees a clear “I don’t have enough information to answer that.”

WebDev · 2 min read

AI ટ્રાફિક ગુમાવવાથી ટોચના રેન્કિંગ ધરાવતી વેબસાઇટ્સને લાખોનું નુકસાન થઈ શકે છે

Vercel-MERJ ના એક અભ્યાસ મુજબ, GPTBot અને ClaudeBot માત્ર કાચું (raw) HTML ડાઉનલોડ કરે છે અને JavaScript એક્ઝિક્યુશનને અવગણે છે. જેના પરિણામે, React અથવા Vue જેવા ક્લાયન્ટ-સાઇડ ફ્રેમવર્ક Google રેન્કિંગમાં પ્રભુત્વ ધરાવી શકે છે, પરંતુ ChatGPT અને Bing AI જેવા AI સહાયકો માટે તે અદ્રશ્ય રહી શકે છે.

WebDev · 4 min read

Elevare’s AI Agent Slept on a Full Queue After RLS Hid All Jobs

The AI orchestrator queried the pending-jobs table, saw zero rows and entered idle mode, while an RLS policy silently filtered out every row for its service role. Jobs piled up unnoticed until the team added a canary-row check to expose the blind spot.

WebDev · 3 min read

ઇનબોક્સ લીઝ ક્રોન ઈમેલ રેસને કારણે એલર્ટ્સ ક્રેશ થતા અટકાવે છે

દરેક ક્રોન રનને એક યુનિક લીઝ ID આપીને, ટાઈમસ્ટેમ્પ અને લેબલ્સ પર ફિલ્ટર કરીને, અને લીઝ મેટાડેટા લોગ કરીને, ટીમો ઇનબોક્સ શેર કરેલા હોય તો પણ વધારાના મેસેજ દ્વારા ડુપ્લીકેટ અથવા ચૂકી ગયેલા એલર્ટ્સ ટ્રિગર થતા અટકાવી શકે છે.

WebDev · 3 min read

જ્યારે PostgreSQL માઇગ્રેશન રેપ્લિકામાં મોકલવામાં આવે ત્યારે "Read-Only Transaction" ભૂલ સાથે નિષ્ફળ જાય છે

આ ભૂલ સામાન્ય રીતે ત્યારે થાય છે જ્યારે કોઈ 'write' ઓપરેશન રીડ રેપ્લિકા પર કરવામાં આવે છે—જેનું કારણ ઘણીવાર PgBouncer દ્વારા કનેક્શન રૂટ થવું, કોઈ રોલ ડિફોલ્ટ રીતે રીડ-ઓન્લી હોવું, અથવા ક્લાઉડ સેટઅપમાં રીડર એન્ડપોઈન્ટનો ઉપયોગ થવો હોઈ શકે છે. આ લેખ બતાવે છે કે વર્તમાન ટ્રાન્ઝેક્શન માટે આ ફ્લેગને કેવી રીતે ઓવરરાઈડ કરી શકાય અને તેનાથી કેવી રીતે બચી શકાય.

WebDev · 3 min read

Frontend Team Cuts Bundle Size to Zero by Tree-Shaking Type-Safe API Mocks

The team built a dev-only mock layer using Axios interceptors and Vite’s tree-shaking. By gating the interceptor with import.meta.env.DEV, a custom VITE_ENABLE_MSW flag, and the MODE variable, the entire mock code is stripped from production bundles, keeping the bundle size unchanged.

WebDev · 3 min read

મારા પોતાના કોડનું પરીક્ષણ: કોન્ટ્રાક્ટ ટેસ્ટિંગ દ્વારા શું જાણવા મળ્યું

મારા પોતાના કોડનું પરીક્ષણ: કોન્ટ્રાક્ટ ટેસ્ટિંગ દ્વારા શું જાણવા મળ્યું. મને લાગ્યું કે મારું Zerodha ક્લોન પૂરું થઈ ગયું છે. તે Node બેકએન્ડ, React ફ્રન્ટએન્ડ, MongoDB અને Razorpay સાથેનું એક MERN સ્ટેક પ્રોજેક્ટ હતો...

WebDev · 3 min read

Generics માં Literal Widening રોકવા માટે TypeScript એ Const Type Parameters ઉમેર્યા છે

Type parameter પર નવો const modifier compiler ને શક્ય તેટલો સાંકડો (narrowest) પ્રકાર અનુમાનિત કરવા માટે સૂચવે છે, જેથી "GET" જેવા લિટરલ્સ ફંક્શન બાઉન્ડ્રીઝ પાર પણ લિટરલ જ રહે છે, જેનાથી વારંવાર 'as const' કાસ્ટ કરવાની જરૂરિયાત રહેતી નથી.

WebDev · 3 min read