SShortSingh.

Programming

0
ProgrammingDEV Community ·

Developer builds open-source WhatsApp AI platform after finding all existing frameworks inadequate

A developer reviewed every major open-source WhatsApp bot framework on GitHub and concluded they all share a fundamental architectural flaw: they function as basic API wrappers that add generic AI without domain-specific capabilities. Existing tools route messages and append conversation history to a language model, but lack the industry-specific logic needed for businesses like restaurants or law firms that require distinct workflows and data access. Enterprise platforms from providers such as Twilio and Intercom charge up to $2,000 per month but similarly fail to integrate meaningfully with a client's own systems or data. The developer also highlighted that most frameworks ignore critical production concerns such as GDPR-sensitive PII flowing through third-party APIs and the risk of service outages from a single AI provider. In response, they built SARA, an open-source WhatsApp AI agent platform featuring 20 vertical-specific agent profiles, each equipped with its own tailored toolset and function-calling capabilities.

0
ProgrammingHacker News ·

Ploopy Launches A+ Trackball, Its Latest Open-Source Peripheral

Ploopy has announced the release of its new A+ trackball device, adding to its lineup of open-source input peripherals. The product was shared via the company's official blog, generating early attention in the tech community. Ploopy is known for producing customizable, open-hardware pointing devices aimed at enthusiasts. The A+ model appears to be an updated or upgraded variant within the Ploopy trackball range. Further technical details and pricing are available through the official Ploopy blog post.

0
ProgrammingDEV Community ·

Lean Founder on Formal Verification, AI, and the Future of Software Proofs

Leonardo de Moura, creator of the Lean proof assistant, was interviewed about how formal verification can guarantee the absence of software bugs — going beyond what traditional testing allows. Lean functions both as a programming language and a proof system built on dependent type theory, enabling mathematical and software verification within a single platform. The Lean nonprofit foundation, established in 2023 with major support from AWS, is now accelerating Lean's role as a programmable software verification system after a decade as an academic project. De Moura highlighted a key future use case: AI-generated code optimizations paired with machine-checked proofs of behavioral equivalence, removing the risk from automated refactoring. He also recommended learning Lean today by pairing it with AI agents, using official resources such as 'Theorem Proving in Lean' and 'Functional Programming in Lean'.

0
ProgrammingHacker News ·

Disney Research uses 2D Gaussian Splatting to convert line art into vector curves

Disney Research Studios has published a new technique that applies 2D Gaussian Splatting to automatically vectorize line art into Bézier spline representations. The method was presented in July 2026 and is detailed on the Disney Research website. The approach aims to improve the accuracy and efficiency of converting raster line drawings into scalable vector graphics. This kind of vectorization is valuable in animation and digital art pipelines where clean, editable curve data is essential.

0
ProgrammingDEV Community ·

Developer Shares Token Budget Guard to Prevent Free AI API Tier Overuse

A developer has published a lightweight Python script designed to track and limit token consumption when using free AI model endpoints. The tool maintains a local JSON ledger that estimates token costs before each API call and records actual usage afterward, refusing to proceed if the projected total would exceed a set budget. The approach addresses common pitfalls such as runaway retry loops and oversized context buffers that can silently drain a free tier's token allowance before dashboard alerts trigger. The script is built around the OpenAI-style chat completion format and can be adapted to other compatible endpoints by swapping a single function. The article was written as part of promotional outreach for MonkeyCode, an open-source project offering a free model route and hosted server.

0
ProgrammingDEV Community ·

How a Simple Token Ledger Can Prevent Costly Free-Tier API Overruns

Developers using free AI model tiers often discover quota overruns only after a batch job fails, wasting both time and retry budget. A lightweight Python token ledger can predict whether a batch job fits within a given allowance before any live API call is made. The approach uses a rough heuristic of one token per four characters to estimate prompt and completion costs across thousands of calls. For example, a job requiring 6,000 summaries with 21,000-character prompts would need an estimated 32.25 million tokens, exceeding a 30-million-token free allowance. The ledger does not replace a real tokenizer but serves as a fast, deterministic pass/fail filter that separates budget planning from actual API spending.

0
ProgrammingDEV Community ·

Dart Devs Achieve 100K Ops/Sec on Web Using BlocSignal and Jaspr Framework

The team behind BlocSignal rebuilt their official documentation site at blocsignal.dev using Jaspr, a lightweight Dart-to-HTML framework, to avoid the performance overhead of Flutter Web. Their initial implementation relied on manual .subscribe() callbacks inside StatefulComponent lifecycles, which caused double re-renders, UI thrashing during high-frequency events, and unnecessarily broad component rebuilds. To fix these issues, they migrated to declarative consumer components provided by the bloc_signals_jaspr package, mirroring patterns already established in bloc_signals_flutter. The refactored architecture achieved 100,000 operations per second in compiled JavaScript while also improving developer ergonomics through Dart 3.13 primary constructors. The project serves as a practical case study in dogfooding their own library to validate its real-world performance and idiomatic usage.

0
ProgrammingDEV Community ·

Restaurant Manager Reverse-Engineers Undocumented ERP, Maps 390 Tables Without Vendor Help

A self-taught developer working as an operations manager at a restaurant in Itaúna, Minas Gerais, Brazil, spent months reverse-engineering TronSoft, a proprietary ERP system built on a Firebird database, entirely without vendor documentation. Needing to automate payment reconciliation, comanda closures, and fiscal document emission, he had no API references or schema diagrams to rely on. By systematically observing the live production database, he documented 390 tables, 514 foreign keys, and roughly 40 functional modules through trial, error, and inference alone. He overcame challenges including Firebird's non-standard SQL dialect, generator-based primary keys, and unpredictable transaction visibility before eventually moving from fragile UI automation to direct, reliable database writes. The experience highlighted how constraint and lack of resources can drive deeper technical understanding than conventional, well-documented development environments.

0
ProgrammingHacker News ·

Researchers Propose Simplified Approach to Teaching Introductory Calculus

A research paper published on arXiv argues for simplifying and refactoring how introductory calculus is taught. The work suggests that the traditional structure of calculus education may benefit from reorganization to improve clarity and accessibility. The paper proposes a refined pedagogical framework aimed at making foundational calculus concepts easier to learn. It was shared on Hacker News, where it received modest attention with 8 points and no comments at the time of posting.

0
ProgrammingDEV Community ·

How to Handle Environment Variables Safely in Node.js Apps

Environment variables are the standard method for keeping sensitive configuration like API keys and database URLs out of application source code. Developers should centralise env var access in a dedicated config module that validates required variables at startup and crashes immediately if any are missing. Tools like dotenv, envalid, and joi help load, type-check, and set defaults for these variables, reducing scattered process.env calls across a codebase. Secrets should never be hardcoded as fallback defaults, logged in full, or committed to version control — a .env.example file with placeholder values should be used instead. Separate credentials per environment, regular key rotation, and platform-native secret management tools further reduce the risk of accidental exposure.

0
ProgrammingDEV Community ·

Dev Technique Makes Flaky CI Model Jobs Replayable Without Full Pipeline Rerun

A software developer has shared a technique to make free AI model calls in CI pipelines individually replayable, avoiding costly full pipeline reruns when a single step fails. The method works by saving a small record of each model call — including a prompt hash, response hash, HTTP status, and request ID — as a CI artifact. When a job fails, a separate manual CI job can replay only the recorded model input and compare the new output hash against the original, isolating the flaky step. The pattern uses SHA-256 hashing to avoid storing raw prompt text in logs, reducing the risk of accidentally leaking source code or secrets. The approach is designed to work with any free HTTP model endpoint and any lightweight key-value store or CI artifact backend.

0
ProgrammingDEV Community ·

Developer Builds Privacy-First Android App to Auto-Silence Phones Without Cloud

A developer created Muffle, an Android app that automatically adjusts phone sound profiles based on scheduled routines and location, after being inspired by a disruptive ringtone during a mosque sermon. The app was deliberately built with a zero-cloud architecture, meaning all data and logic remain entirely on the user's device. It uses Android's AlarmManager, ForegroundService, and GeofencingClient alongside a local Room database to manage sound rules without any server dependency. Prayer time calculations are handled on-device via the Adhan library, avoiding the need for cloud functions or external APIs. A key technical hurdle was Android's Doze mode, which delayed alarm triggers and required additional engineering to ensure timely sound profile transitions.

0
ProgrammingDEV Community ·

Deleting an API Key From Your Profile Doesn't Kill It in Running Processes

A developer discovered that deleting three API keys from their shell profile and verifying the change with a clean-room shell test did not actually revoke access for already-running processes. A long-lived editor process that had launched days earlier had frozen the old environment variables at startup and continued injecting them into every child process it spawned, including a reconnected review tool that authenticated successfully with the supposedly deleted key. This exposed a critical distinction between editing a config file on disk and having that change take effect in live processes. The env -i verification command only tests newly spawned shells and cannot detect stale values held in memory by existing parent processes. The author concluded that confirming a config fix requires checking three separate things: the file on disk, the environment frozen in any long-lived parent process, and the inherited environment of each child process spawned from that parent.

0
ProgrammingDEV Community ·

A 41-Second Timeout Gap Silenced an Automated Affiliate Article System for 3 Days

A developer built a fully automated system using shell scripts and Claude Code to publish three affiliate articles daily to Hatena Blog without human involvement. For three consecutive mornings, the system ran without errors but produced zero articles, logging 'published today: 0 / target: 3' each time. The root cause was a misconfigured timeout set at 300 seconds, while the actual article-generation process required 259 seconds — leaving only a 41-second margin that was consistently exceeded. Doubling the timeout to 600 seconds resolved the issue immediately, restoring the system to its full three-article daily output. The system is designed around idempotency, meaning each scheduled run checks how many articles have already been published and generates only the remaining shortfall, ensuring the daily target is always met across morning, midday, and evening batches.

0
ProgrammingDEV Community ·

Free Red-Team Loop Can Expose AI Agent Vulnerabilities Before Production Launch

Developers building tool-using AI agents are advised to run automated red-team tests before exposing those agents to external users. The core risk lies in prompt injection, where malicious instructions hidden inside documents or web pages can manipulate an agent into violating its operating rules, a threat highlighted in OWASP's guidance on LLM applications. A three-part automated loop — involving a target agent, an attacker model, and a judge — can generate dozens of adversarial inputs and log any policy violations to a JSONL file for later review. Unlike manual testing, which typically covers only a handful of attack phrases, an attacker model can systematically probe tool names, combine legitimate requests with hidden commands, and surface wording gaps in the system prompt. The approach requires no dedicated GPU or large budget, as free model endpoints and free server options can host the entire testing harness.

0
ProgrammingDEV Community ·

Developer Builds Interactive Landing Page That Rewinds a Family Dinner Through Time

A developer created 'After Supper,' an interactive web experience submitted to the DEV Community Frontend Challenge - Comfort Food Edition. The project opens at 20:47, showing a dinner table after the meal has ended, with empty plates, crumbs, and a displaced chair. Users navigate backwards through six timestamps, watching the table gradually reconstruct itself until the moment everyone was still present. Clickable objects — including a recipe card, napkin, and glasses — reveal small personal memories tied to the meal. The project is built using frontend web technologies and is available as a live demo on Vercel with its source code published on GitHub.

0
ProgrammingDEV Community ·

Developer builds local-first tab manager with MCP server for AI-powered tab organization

A designer-developer frustrated with tab manager limitations built Mos Tab, a personal browser extension that stores data locally with no account or tab-saving caps required. The tool uses a hierarchical data model and a Zustand store persisted to Chrome's local storage, overriding the new tab page with a dashboard that includes productivity features. For optional cross-device sync, the developer implemented a Cloudflare Worker backend using a single JSON blob per user and a client-side three-way merge strategy to handle conflicts. A persistent bug involving multiple browser windows triggering infinite sync loops was resolved by restricting write permissions to the focused window only. The project was later extended with a remote MCP server, allowing AI assistants like Claude to search and reorganize the user's saved tabs.

0
ProgrammingHacker News ·

Anton Chekhov's Lifelong Ambivalence Toward Love and Intimacy

A literary essay explores how Anton Chekhov, the renowned Russian playwright and short story writer, approached romantic relationships with a sense of detachment and ambivalence throughout his life. Chekhov is portrayed as someone who engaged in the pursuit of love as if it were a game, rarely fully committing to deep emotional intimacy. The piece examines the tension between his personal relationships and his artistic depictions of love, suggesting the two were closely intertwined. Published on the Common Reader platform by Washington University in St. Louis, the essay has drawn modest engagement on Hacker News with 43 points and several comments.

← NewerPage 91 of 1302Older →