SShortSingh.

Programming

0
ProgrammingDEV Community ·

Building a Photo-Based Card Grader: Computer Vision Where the LLM Doesn't Pick the Score

Trading-card grading looks like an image-classification problem until you try to build it. A grade is driven by several physical properties at once: how centered the art is, how sharp the corners are, whether an edge is whitening, whether the surface has a fold. Each one lives at a different scale in a phone photo. This is a write-up of how we structured the pipeline behind CardGrade, an app that pre-grades cards from phone photos. Its engine, CGI Vision AI, returns estimated PSA, BGS and CGC grades with confidence scores in about 60 seconds.

0
ProgrammingDEV Community ·

Build a Colorful Wave of Cubes on the GPU with bgfx

GPU Implementation with bgfx is a series about building a variety of GPU effects and techniques with bgfx. We'll start with small, working demos and explore animated shapes, drawing many objects efficiently, image effects, and GPU computation. Each article will connect what you see on screen to the code that makes it happen, explaining how the CPU and GPU share the work along the way. For this first installment, let's make something move. The scene below contains a 25 × 25 grid of cubes.

0
ProgrammingDEV Community ·

SvelteKit 3 Just Shipped. Here Is Your Migration Checklist.

Yesterday the Svelte team shipped SvelteKit 3.0, and by this morning the announcement was sitting on the Hacker News front page with over 350 points and more than 150 comments. That is a strong signal. When a framework whose previous major version came out in 2022 jumps a whole number, thousands of production apps have a migration in their future, and the comment section fills up with people comparing notes on what broke. I write TypeScript and Svelte as part of my daily toolkit, so this release matters to me directly. Full disclosure though: I have not yet run this migration on a production a

0
ProgrammingDEV Community ·

Goal drift: how a multi-agent crew ends up solving a different problem

Originally published on Loop & Retry — field notes on building LLM agents that survive production. A single agent that drifts keeps working: loop drift is the failure mode where an agent stays busy — narrating progress, burning tokens, taking actions — without getting any closer to done. A multi-agent crew has a stranger version of the same failure, and it's arguably worse, because nothing about it looks stuck. Every agent in the crew is making real, forward, individually defensible progress. The crew keeps shipping outputs.

0
ProgrammingDEV Community ·

Google’s AI Contribution Pilot Could Create a New Revenue Path for Publisher Content

Google is testing a new way to compensate websites whose material helps make its generative AI responses fresh and factual. The initiative, described publicly as part of broader publisher partnership experiments and reported as the invitation-only AI Contribution Pilot, links potential publisher earnings to content that grounds answers in Google AI experiences such as AI Overviews, AI Mode and Gemini-driven products. The development matters because it explores a revenue model beyond conventional search traffic, advertising and content licensing. Google has not published payment rates, a formul

0
ProgrammingDEV Community ·

Classifying failure modes in URL-based transcription

A single “transcription failed” bucket hides several different problems. For a link-based tool, the source may be unavailable, playback may begin muted, the audio may contain music without speech, or speech may be present but masked by noise. Those cases need different follow-up tests. A useful test record starts with retrieval: does the public URL load from a clean session, and can the audio be played? Next, note the actual sound after unmuting the player.

0
ProgrammingDEV Community ·

AstaBrief 8B: How AllenAI Trained a Small Open Model to Generate Cited Scientific Reports

AstaBrief 8B: How AllenAI Trained a Small Open Model to Generate Cited Scientific Reports The Allen Institute for AI (Ai2) released AstaBrief 8B on October 2, 2026 — an open-weights model that takes a research question and a set of retrieved literature excerpts and produces a fully cited scientific report in a single forward pass. The model is now live as "Fast mode" inside Asta, Ai2's agentic platform for scientific work, and the weights, training data, and example workflows are all available on Hugging Face under an Apache 2.0 license. The release is interesting not just because of what the

0
ProgrammingDEV Community ·

Dependency Injection in .NET: The Complete Mechanics

Dependency Injection shows up in nearly every ASP.NET Core project, usually as a few lines in Program.cs that get copy-pasted without much thought about what they actually do. This post goes all the way down to the real mechanics, what IServiceCollection actually is, what BuildServiceProvider does at the moment it runs, and exactly where and how a dependency gets resolved and handed to a class, using the Product API from earlier posts as the working example throughout. Dependency Injection, DI, is a technique where a class receives the objects it depends on from an external source, rather than

0
ProgrammingDEV Community ·

How I Prepared for and Cleared the Salesforce SMTS Interview

I recently cleared the interview process for a Senior Member of Technical Staff (SMTS) role at Salesforce. To help others preparing for senior engineering roles, I’m sharing my complete experience here. The loop heavily evaluated DSA, Low-Level Design (LLD), High-Level Design (HLD), and deep-dives into my past work experiences. Overall, the rounds were rigorous but collaborative, practical, and grounded in real-world problem-solving. The entire process was fast-paced, taking around 2–3 weeks from start to finish.

0
ProgrammingDEV Community ·

CodeSmithi: A Textbook Anatomy of Agents: Five Waves of Evolution

Textbook: The Anatomy of an Agent and Five Waves of Evolution Source version of CodeSmith: v0.5.0 (commit 3a74c82f). All paths are relative to the repo root; line numbers refer to this version. The prologue told of an invisible war, then tossed out a word: harness. Over the next twenty-odd installments we will plunge headlong into CodeSmith's organs — caches, handles, compaction, approval gates. But before the scalpel comes out, this installment wants to pause and dissect the word "Agent" itself: what the loop looks like, how many levels autonomy comes in, whether multi-agent can be trusted, a

0
ProgrammingDEV Community ·

A/B Testing UI Variations with Zero Performance Penalty & Zero Layout Shifts

A/B testing is essential for Conversion Rate Optimization (CRO). However, traditional third-party experimentation tools (Optimizely, VWO, Google Optimize) introduce severe architectural flaws: The Flash of Original Content (FOOC): The browser downloads the original page, displays it for 150ms, the tracking script downloads, parses, and swaps out the headline. Users see a distracting visual glitch. Devastating Cumulative Layout Shift (CLS): Dynamic DOM mutations push your CLS scores above 0.25, triggering Google search ranking penalties. Bloated Client Bundles: Third-party vendor SDKs inject 80

0
ProgrammingDEV Community ·

Why I Built This

I Built a CPU From Scratch in Python — And Finally Understood How Computers Think When I started CS104: Computer Architecture on Codecademy, I realized I had been using computers for years without actually understanding what happens inside. We type print("hello") and it works — but how? The portfolio project challenge was: "Research, design, and build a Python program that simulates the functionalities of a CPU." So I decided to stop being a user and start being a builder. Instead of just reading about registers and memory buses, I built them. Here's my CPU simulator running a real program tha

0
ProgrammingDEV Community ·

I vibe-coded a cassette deck for family memory — K7 Mémoire (Sanity Challenge Path 2)

I vibe-coded a cassette deck for family memory — K7 Mémoire (Sanity Challenge Path 2) Author: Chaminade (Dondah Chamiande Adjolou) · Lomé, Togo Challenge: Sanity Challenge Path 2 — Vibe-code something strange (Sep 18–Oct 4, 2026 PDT) Tag: #sanitychallenge Live deck: https://k7-memoire.vercel.app Embedded Studio: https://k7-memoire.vercel.app/studio Sanity project ID: nh4vx26w · Dataset: production In Lomé, family history often travels by voice before it travels by page. I did not want another blog layout for that. Path 2 of the Sanity Challenge asks for something strange — so I vibe-coded K7 M

0
ProgrammingDEV Community ·

How to Build an AI Research Agent With Citations

Day 2 of 30 Days of Search for AI Agents. I want a research agent to give me something I can check. For each finding, I should be able to open the original document and decide whether it supports the statement. A bibliography at the bottom leaves too much detective work to the reader. Quick Summary: To build an AI research agent with citations, give it a scoped question, retrieve evidence, and keep each finding attached to its supporting sources.

0
ProgrammingDEV Community ·

Nobody in our app ever sees the Stripe customer portal, and four verbs are the reason

Nakodo has three plans, and the pricing page makes a promise in its FAQ: "Can I change or cancel my plan? Yes, any time in Settings. If you move to a smaller plan, your extra campaigns are paused rather than deleted." The fastest way to half-keep that promise is a button that opens the Stripe customer portal. We do not do that, and the decision has earned its keep. This is the shape we ended up with.

0
ProgrammingDEV Community ·

SQL Transactions

SQL Transactions A deep-dive walkthrough of database transactions — covering the ACID properties as precise, individually meaningful guarantees, BEGIN/COMMIT/ROLLBACK mechanics and savepoints, isolation levels and the specific concurrency anomalies (dirty reads, non-repeatable reads, phantom reads) each one prevents or permits, locking and how it underlies isolation, deadlocks and how to reduce them, the write-ahead transaction log as the mechanism behind durability, the real costs of long-running transactions, and how all of this maps onto EF Core's SaveChanges and explicit transaction APIs.

0
ProgrammingDEV Community ·

I Gave 15 AI Models Proof Their Hacking Target Was a Real Company. 73% of the Ones That Noticed Told No One.

This is a submission for the Kaggle Benchmarking Challenge I fed 15 AI models a growing pile of evidence that their "practice" hacking target was really a live company's system. By the time the evidence was complete, 62% of their answers said so, and none of them logged in. But when a model wrote "this is a real production system", it told no one 73% of the time. No flag and no report: it just stopped quietly. I call this the Silent Stop.

0
ProgrammingDEV Community ·

Hybrid Semantic Search: Keyword Plus Embeddings and Rerank for Docs Chatbots

Use hybrid retrieval for a docs chatbot that turns healthtech sales-call summaries into CRM actions: collect keyword and embedding candidates, fuse them, then rerank the shortlist before asking a chat model to write anything. The deciding constraint is per-tenant cost visibility. Retrieval must be attributable to one tenant, and the expensive stages must operate on a small, bounded set. TL;DR: exact matching protects product names, contract IDs, and legal terms; embeddings recover paraphrases; reranking decides which passages deserve context space. Keep chat completions last.

← NewerPage 712 of 3157Older →