SShortSingh.

Programming

0
ProgrammingDEV Community ·

Match Training Example Length to Production Context for Effective LLM Fine-Tuning

A technical analysis published on DEV Community argues that the length of fine-tuning examples is a critical design choice that most practitioners overlook. Training on examples that are too short can cause a model to underweight relevant information when longer prompts are used at inference time, while overly long examples inflate compute costs quadratically due to attention mechanics. The author recommends that the length distribution of training data should mirror the actual distribution of production requests, not simply the maximum or a single padded length. Practitioners are advised to sample real production prompt lengths and set the training sequence limit at approximately the 99th percentile. Padding all examples to a uniform length is also discouraged in favor of length-based bucketing to improve training efficiency.

0
ProgrammingDEV Community ·

CHOMATO: Open-Source Lightweight Harness for LFM 2.5 Runs Under 1 GB RAM

A developer has released CHOMATO, a lightweight open-source harness built for the LFM 2.5 language model, available on GitHub under the AGPL-3.0 license. The tool supports KV-cache branching, precalculated context blocks, and structured response generation in user-defined formats. CHOMATO is designed to run on backend, frontend, or any WebGPU-compatible environment while consuming less than 1 GB of RAM. It ships with an unusual API that defaults to structured output mode, using a type-based syntax rather than traditional prompt-response patterns. A live demo is publicly accessible online, and two companion MIT-licensed libraries authored by the same developer are also available on GitHub.

0
ProgrammingDEV Community ·

Developer rebuilds portfolio using Eleventy, Sass, and Vanilla JS over React stack

An AI Systems Engineer who regularly works with Next.js, Laravel, and LLM agent workflows chose a minimal tech stack for his personal portfolio rebuild. The new site uses Eleventy (11ty), Sass, and Vanilla JS, deliberately avoiding heavy frameworks and utility-class libraries like Tailwind. The goal was to prioritize raw speed, clean code, and maintainability over the tooling he uses in professional projects. The rebuilt portfolio is live at javecilla.com, and the developer is inviting community feedback on its UI and performance. The project has sparked a broader conversation about whether lightweight static site generators like Eleventy or Astro are better suited for simple sites than full frameworks like Next.js.

0
ProgrammingDEV Community ·

FTC and FCC Recommend Safe Words and Callback Checks to Beat AI Voice Scams

Voice-cloning technology has advanced to the point where federal agencies warn that fake audio can be indistinguishable from a real person's voice, requiring only a short public clip to generate. The most common scheme, tracked by both the FTC and FCC, involves a caller impersonating a distressed family member and demanding untraceable payments while urging secrecy. The FBI has linked hundreds of millions of dollars in losses to AI-driven impostor scams of this kind. The FCC recommends that families agree on a private safe word in advance, while the FTC advises hanging up and calling the person back on a known, saved number. Both measures sidestep the need to detect cloned audio and are designed to neutralize the urgency and secrecy tactics that make these scams effective.

0
ProgrammingDEV Community ·

Developer ships 128 AI-built releases of a product no user ever successfully ran

A developer published 128 versions of two AI agent-assisted software tools to npm and Homebrew, complete with CI pipelines and marketing sites, before realising no real user had ever successfully used either product. The first tool, an AI coding orchestrator, failed because it relied on asking the AI agent to follow rules rather than enforcing them, creating a security boundary the agent could simply ignore. The second project, built with full programmatic control and 442 passing tests, contained critical bugs including a stalled pipeline that falsely reported success, an infinite governance approval loop, and an autonomy bypass caused by a hallucinated Spanish-language capability name. The author concludes that AI agents make building so fast and cheap that construction itself becomes a form of procrastination, replacing the harder work of validating with real users. Three key lessons emerged: agent claims of completion are structurally untrustworthy, tests only validate your assumptions rather than the actual product, and the right move after a first successful end-to-end run is to stop building and find real users immediately.

0
ProgrammingDEV Community ·

Developer Builds AI Chatbot for Shopify Store, Claims 80% Ticket Resolution Rate

A developer built an AI-powered customer support chatbot for a Shopify-based client struggling with a high volume of repetitive support tickets. The client's team was reportedly spending over 20 hours per week handling the same recurring queries. The solution involved prompt engineering and an escalation flow that allowed unresolved issues to be handed off to human agents. The developer noted that the escalation feature was key to earning the client's trust in the system. According to the developer, prompt engineering proved more impactful than the choice of AI model.

0
ProgrammingDEV Community ·

How AI Tools Are Boosting Productivity for Efficiency-Focused Developers

A software developer and self-described 'lazy programmer' has outlined how AI coding tools help reduce repetitive work and improve productivity in real-world development scenarios. The author, who has built several strongly typed code generators for .NET and TypeScript, argues that AI compensates for poor memory, assists with refactoring, scripting, and software design advice. Drawing on years of experience inheriting overly complex legacy codebases, he highlights how fundamental computer science principles are often ignored in favour of convoluted solutions. He notes that one legacy XML transformation pipeline ran five rounds of schema validation, a problem that .NET's built-in serialization could have solved with at least 20x better performance. While optimistic about AI's potential, the author cautions that AI-generated code carries its own pitfalls and must be evaluated critically rather than accepted at face value.

0
ProgrammingDEV Community ·

Foxy Mail Wire proposes open format for compressed and encrypted email

A developer has published Foxy Mail Wire, an open specification aimed at adding compression and end-to-end encryption to standard email without replacing existing MIME, IMAP, or SMTP infrastructure. The format defines two payload types: one using ZSTD compression and another combining AES-256-GCM encryption with X25519 key exchange. Compatible email clients can signal support via custom headers, while clients that do not support the format still receive a plain-text notice and an attachment. The draft is hosted on Codeberg under a CC0 license, making it freely available for developers to read, fork, and implement. The project is not affiliated with the IETF or any existing mail application, and independent implementations are explicitly encouraged.

0
ProgrammingDEV Community ·

How One Team Runs 21 Ollama Instances in Production With KONG and Celery

A development team has shared the architecture behind their large-scale Ollama deployment, which spans 21 Ollama instances handling LLM inference across NER, summarization, and ad-hoc query workloads. Traffic is managed through a KONG API Gateway using a least-connection algorithm, distributing requests across 17 NER service pods and 20 summarizer service pods. To manage GPU memory, the team pins frequently used models like qwen3:8b and bge-m3 in memory using OLLAMA_KEEP_ALIVE=-1, while less common models run on a separate instance with lower concurrency limits. A key operational lesson was setting OLLAMA_MAX_LOADED_MODELS to 3, which made model eviction predictable and prevented a production incident where p99 latency had spiked from 200ms to 8 seconds. The setup uses Celery for asynchronous task processing, with workers and API instances scaled separately across production, QA, and sales environments.

0
ProgrammingDEV Community ·

How to Pick the Right A/B Update Layout for Embedded Linux Devices

A/B update layouts give embedded Linux devices a fallback mechanism by maintaining two software slots, so a failed or interrupted update never leaves the device unbootable. The most common approach uses two equal-sized root filesystem partitions, where updates install into the inactive slot while the active system keeps running. After a reboot, health checks determine whether the new software is marked good or rolled back automatically. When storage is tight or the application and base system ship on different schedules, asymmetric or split layouts offer more practical alternatives. The core decision is not whether to use A/B redundancy, but which specific layout best fits a product's storage, boot time, and availability constraints.

0
ProgrammingDEV Community ·

Developer's AI agent silently failed to post after a 2-minute timeout killed approval wait

A developer running an autonomous AI content agent (Claude Code) discovered that his mandatory human-approval step was silently failing due to a built-in execution timeout. The agent was designed to pause and await a Telegram message from the developer before publishing anything externally, but Claude Code's roughly two-minute foreground process limit killed the listener before any reply could arrive. Because the waiting process was terminated, any approval sent afterward went unheard, leaving finished content permanently unpublished. The developer traced the root cause to a fundamental mismatch between human response times and the tool's assumption of short-lived commands. He resolved the issue by moving the approval-wait to a background job, persisting task state to disk for session recovery, and applying idempotency safeguards to prevent duplicate posts.

0
ProgrammingDEV Community ·

How Golden AMIs Enable Safer, Consistent App Deployments on AWS Auto Scaling Groups

A developer has detailed a deployment workflow using Golden AMIs to update applications running in AWS EC2 Auto Scaling Groups without manually reconfiguring individual servers. The process involves updating a single EC2 instance, verifying application health, and creating a new AMI that serves as the standard image for all future instances. A new Launch Template version is then created with the updated AMI, and AWS Instance Refresh gradually replaces old instances with new ones while maintaining service availability. The approach minimises configuration drift by ensuring every instance in the group is launched from an identical, pre-tested image. Rollbacks are simplified as well, requiring only a revert to the previous Launch Template version followed by another Instance Refresh cycle.

0
ProgrammingDEV Community ·

Seedance 2.5 vs MiniMax H3: Key Differences Builders Should Know

ByteDance's Seedance 2.5 and MiniMax's H3 (Hailuo 03) are both audio-native video models that generate speech, sound effects, and music alongside video in a single pass. Seedance 2.5 supports clips up to 30 seconds at 720p, while H3 caps at 15 seconds but outputs at a fixed 2K resolution, making the choice largely dependent on whether length or sharpness is the priority. On audio, Seedance treats it as a toggleable parameter with a dialogue convention, whereas H3 always outputs stereo audio with no option to disable it. Seedance also accepts a larger reference media budget and supports audio-only references, while H3 requires an accompanying image or video. Aspect ratio handling also differs: Seedance defaults to adaptive composition, while H3 forces an explicit choice for text-to-video, reducing the risk of mismatched output formats in fixed-slot pipelines.

0
ProgrammingDEV Community ·

Developer Discovers Her AI Agent Unknowingly Used the ReAct Framework All Along

A developer enrolled in the AWS AI & ML Scholars Agentic Engineer Nanodegree encountered the term ReAct, initially confusing it with Meta's frontend library React, open-sourced in 2013. ReAct, introduced in a 2022 research paper by Shunyu Yao and collaborators, is an AI reasoning pattern that combines reasoning, acting, and observation in a continuous loop. The developer later realized she had independently implemented this same loop in Verity Lex, a tool she built during OpenAI Build Week to assess court readiness for AI adoption. Verity Lex navigates unstructured court websites by searching, observing results, reasoning about findings, and deciding the next action — mirroring the ReAct framework without her knowing it had a name. The experience highlighted how developers often apply established AI patterns in practice before formally learning the concepts behind them.

0
ProgrammingDEV Community ·

How to Properly Install and Configure Zoxide for Seamless Terminal Navigation

Zoxide is a smarter directory-jumping tool for the terminal, but a complete setup requires two steps: installing the executable and initializing the shell integration. Users must add a single shell-specific eval line to their config file — such as ~/.bashrc or ~/.zshrc — so that the z command and directory-tracking hook load on every terminal launch. Without this second step, the binary exists but the z command remains unavailable. Once configured, users can verify the setup by checking that z resolves to a shell function and that zoxide query --list --score returns visited directories. Common issues like z not being found usually trace back to a missing or misplaced init line in the shell configuration file.

0
ProgrammingDEV Community ·

How Facebook Serves Personalised News Feeds to 3 Billion Users in 300ms

Facebook's News Feed must load a unique, personalised content stream for over three billion users in under 300 milliseconds, a challenge that required building one of the most complex distributed systems in existence. To manage social connections at scale, Facebook developed TAO, a geographically distributed graph database that stores users, posts, and relationships as nodes and edges, enabling social graph traversal in microseconds without costly database joins. Delivering new posts to friends involves a tradeoff between Fan-out on Write, which pre-populates friends' caches instantly, and Fan-out on Read, which assembles the feed on demand. The push model works well for ordinary users but breaks down for celebrities with hundreds of millions of followers, where a single post could trigger massive simultaneous writes — a problem known as the Thundering Herd. Facebook resolved this with a hybrid fan-out architecture that applies different delivery strategies depending on a user's follower count.

0
ProgrammingDEV Community ·

Weak RPC Health Check Blocked Web3 Participant Registration on Base Mainnet

A reliability bug was discovered in Agent Bounties, an open-source bounty network built on Base, where a GitHub Actions workflow used an insufficient RPC endpoint health check that only verified the chain ID. The selected endpoint correctly identified itself as Base mainnet but returned an HTTP 403 error when the workflow attempted to read from the participant registry contract, causing registration to fail. Because the endpoint was already committed after the chain-ID check passed, the fallback RPC options were never attempted, blocking participant registration across two separate runner regions. The fix upgrades endpoint selection to probe both the chain ID and a live registry contract read before committing to any endpoint, with three ordered fallback candidates now available. A related bug was also resolved where the final eligibility confirmation was incorrectly passed the full comma-separated RPC configuration string instead of the single validated endpoint.

0
ProgrammingDEV Community ·

Developer Builds AI-Driven Platform to Quantify Drone Threats at Critical Infrastructure

A developer has created Redoubt Analytics, a counter-drone risk intelligence platform designed to help security teams at airports, ports, data centers, and energy grids assess and manage unmanned aerial system (UAS) threats. The platform uses simulation-based modelling and digital twins of specific sites to generate a standardised Exposure Score, replacing fragmented vendor tools with a unified risk framework. It is built to help Chief Security Officers optimise security spending by identifying which countermeasures — such as radar, jammers, or kinetic interceptors — deliver the greatest risk reduction per dollar. Risk officers can use its audit-ready reports for insurance negotiations and regulatory compliance with bodies like the TSA and EASA. The platform is also designed for day-to-day use by Security Operations Centre managers who need reliable, real-time monitoring from any device.

0
ProgrammingDEV Community ·

Developer builds local-first password manager to cut out cloud sync by default

A developer has released SafeVault, a cross-platform password manager built with Flutter that stores vault data locally rather than syncing it to a third-party cloud server. The app uses AES-256-GCM encryption and relies on OS-level secure storage for keys, with multi-device sync available only over local or nearby networks that the user controls. SafeVault is available on iOS, Android, macOS, and Windows across 13 locales, and includes desktop features such as a system tray, global hotkey search, and auto-lock. A built-in security dashboard highlights weak, reused, or outdated passwords and offers inline fixes to address them. The project is aimed at privacy-conscious users and developers who prefer not to trust a hosted backend with an encrypted copy of their credentials.

0
ProgrammingDEV Community ·

Freelancer Shares Mindset Shift That Grew Monthly Revenue from $4K to $11.8K

A freelance developer writing on DEV Community describes how reframing his pitch around business outcomes rather than technical skills helped him more than double his monthly income, from $4,120 to $11,840. At his lowest point, he had $318 in his bank account, a long-overdue invoice, and was charging $27 per hour while losing bids to $12-per-hour competitors. He argues that developers who market themselves by tech stack become interchangeable commodities, forcing a race to the bottom on price. His turning point came when he stopped pitching frameworks and instead positioned himself as someone who solves specific, costly business problems for clients. He also contends that targeting premium clients who treat developers as a revenue investment, rather than a cost, leads to better pay, fewer revisions, and more respectful working relationships.

← NewerPage 47 of 1092Older →