SShortSingh.

Programming

0
ProgrammingDEV Community ·

Cek Dulu: I built a scam checker for my parents, and they told me they don't need me anymore

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend My parents send me the same question several times a week: "Is this message a scam?" It's usually a WhatsApp message: a "parcel held" link, a "wedding invitation" file, someone who "sent money to the wrong account", a relative on a "new number" who needs money. They also use mobile banking, so one wrong tap is not just annoying. It can empty an account. And I'm not always awake or free to answer. So I built Cek Dulu ("check first") for my mom and dad.

0
ProgrammingDEV Community ·

5 Web 3D Experiments I Built with Three.js

I recently revisited some of my older Web 3D experiments and pushed them further with improvements, new rendering techniques, and browser previews. Here are the projects, from simpler experiments to more advanced rendering work: 🧊 Cube 3D An interactive 3D geometry showcase with lighting and orbit controls. Preview: https://cube-3d.onrender.com https://github.com/mohnasr137/cube-3d 🚀 Tube 3D A sci-fi neon tunnel featuring spline-based camera movement and UnrealBloom post-processing. Preview: https://tube-3d.onrender.com https://github.com/mohnasr137/tube-3d 🌍 Earth 3D A real-time 3D Earth w

0
ProgrammingDEV Community ·

Treat LLM function calls as proposals—validate, execute, then commit

Treat function calls from a model as proposals, not granted permissions. The verified sequence I recommend: the model proposes a JSON-shaped tool call; your app parses the outer wrapper and validates function name and argument schema; the app executes the registered tool implementation; and only after a verified success does the app commit the change to UI state. The article’s small in-memory fixture separates responsibilities so you can unit-test the ordering that matters: parseToolCall → validateFunctionCall → runToolBoundaryWorkflow → commit. That split makes it possible to assert distinct

0
ProgrammingDEV Community ·

TypeScript-safe truthiness filters: remove null/undefined without dropping 0 or ''

filter(Boolean) is short and tempting, but it removes every falsy value — including 0, '', false, and NaN. When arrays can contain those values, that shorthand silently changes program meaning. The safer approach is a tiny explicit predicate that removes only null and undefined and a small wrapper that makes the contract obvious. What the verified example does (no code quoted here): isNonNullish: a simple predicate that returns true for any value that is not null or undefined. filterNullish: accepts an array, throws a TypeError if the input is not an array, and returns a new array with only nu

0
ProgrammingDEV Community ·

Building an AI workout coach in SwiftUI: one-tap logging during the set, GPT-4o analysis after

Most people who track their training in a notes app lose the one thing that matters: set-by-set context. The note does not remember what you lifted last week, and generic gym trackers bury the screen in charts without ever telling you what to do next. The brief for Body Forge was a coach in your pocket: clean tracking during the set, real analysis after it, and programmes that adapt as you progress. Here is how the native iOS app is put together. The workout screen is built for one hand and a sweaty thumb.

0
ProgrammingDEV Community ·

A RAG consultant for an immigration law firm: what it answers and what it hands to the lawyer

An immigration lawyer in Warsaw was spending hours a day on the same questions. Which documents do I need for a karta pobytu? How long does it take? Her site was a brochure: it brought no leads from Google, and every first message was answered by hand. We rebuilt the site and put a consultant inside it that answers from the firm's own material.

0
ProgrammingDEV Community ·

FastAPI Request/Response Logging for AI Feature Attribution: Tracking Which Claude Call Cost Which Tenant

FastAPI Request/Response Logging for AI Feature Attribution: Tracking Which Claude Call Cost Which Tenant When your SaaS starts charging tenants for AI features, you enter a new debugging hell. A customer emails: "Why did my bill jump $340 last Tuesday?" You grep your logs. You find 50 Claude API calls that day. But which endpoint triggered them? Which user?

0
ProgrammingDEV Community ·

How AI Is Making Restaurant Menus Easier to Navigate

The restaurant experience is evolving far beyond the table—now, it begins with the menu. Whether you’re ordering on your phone, scanning a QR code, or perusing a digital kiosk, the humble menu is being transformed by artificial intelligence. AI menu analysis is reshaping how we browse, understand, and select our meals, making restaurant nutrition and dish discovery more transparent, personalized, and engaging than ever before. Traditional menus, whether printed or static digital lists, present several challenges for diners: Information Overload: Restaurants often offer dozens of dishes, each w

0
ProgrammingDEV Community ·

From Two Independent Nodes to a National Digital Ecosystem: The MyZubster Roadmap

Introduction: A different Internet begins with two independent computers What does it take to change the architecture of the Internet? Perhaps the answer does not begin with millions of users, a billion-dollar investment or another platform promising to revolutionize the world. Perhaps it begins with two people who decide to connect their independent projects without surrendering control of their software. That is what we are experimenting with at MyZubster. I am Daniel Ioni, founder and developer of the MyZubster ecosystem.

0
ProgrammingDEV Community ·

The Complete Guide to SVG Icon Optimization for Web Performance

SVG icons have become the backbone of modern web interfaces, offering crisp visuals at any scale and easy customizability. But while SVGs are inherently more flexible than raster formats, poorly optimized SVG icons can silently drag down web performance. Bloated SVGs increase page load time, slow down rendering, and can even introduce subtle rendering bugs across browsers. Let’s dive deep into SVG optimization — from manual tweaks to automation tools — so your icons are both pixel-perfect and lightning-fast. SVG (Scalable Vector Graphics) icons are essentially code — XML markup that browsers p

0
ProgrammingDEV Community ·

Diet Plan App

What I Built? I built Safe Plate for my roommate, Mayur, who is allergic to nuts. Whenever we cook together, we spend a long time reading labels and googling whether a recipe is safe. Most recipe sites also don't know what's in our kitchen. With Safe Plate, you tick the dietary needs, type the ingredients you have (like "rice, tomato, spinach, onion"), and get 3 recipes.

0
ProgrammingDEV Community ·

Python Basics

Started Learning Python? Variables: names for values A variable is a name that points at a value. You create one with =, and Python reads the line from right to left: it works out the right side first, then attaches the name on the left. If you have used a spreadsheet, you may expect a name to behave like a formula cell. It does not.

0
ProgrammingDEV Community ·

I built my best friend a mistake engine for the NUST entry test

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend. My best friend SMS is studying for the NUST entry test — the exam that decides whether he gets into Pakistan's top engineering university. For months he cycled through quiz apps, and they all had the same flaw: they'd generate questions, he'd answer them, and the app would forget everything by the next session. Nobody remembered what he got wrong. So he kept losing the same marks twice.

← NewerPage 661 of 3152Older →