SShortSingh.

Programming

0
ProgrammingDEV Community ·

SQL Server AG Read Routing Fails Without a Primary-Side Routing List

A database engineer diagnosed early-morning dashboard timeouts caused by all read queries hitting an Always On Availability Group primary replica, while two healthy secondaries sat idle. The root cause was a commonly skipped second configuration step: although the secondaries were marked readable and the app used ApplicationIntent=ReadOnly, no read-only routing list had been defined on the primary replica. In SQL Server Always On AGs, the primary is responsible for redirecting read-intent connections to secondaries, and without a routing list it simply handles those connections itself. Administrators must use ALTER AVAILABILITY GROUP to set both the secondary READ_ONLY_ROUTING_URL and the primary PRIMARY_ROLE routing list, and must repeat the routing list definition on every replica since any node can become primary after a failover. SQL Server 2016 and later also support round-robin load balancing across multiple secondaries using nested parentheses syntax in the routing list.

0
ProgrammingDEV Community ·

Engineer Retires 120,000 Dormant SaaS Tenants Using AI-Assisted Ops With Zero Downtime

A platform engineer led the retirement of over 120,000 inactive SaaS tenants — including abandoned trials, expired subscriptions, and dormant free accounts — that had accumulated over several years. The cleanup covered roughly 1.4 million associated user records spread across multiple systems, posing significant operational risk due to complex cascading deletion workflows in a legacy Rails application. Rather than a single bulk operation, the work was divided into risk-based phases, starting with a small pilot and scaling gradually, supported by dry-run modes, preflight checks, circuit breakers, and an append-only audit trail. AI-native tooling connected to source control, observability platforms, and automation systems played a central role in managing execution and catching issues such as unexpected database CPU spikes and silent telemetry failures. The project concluded with all targeted tenants retired and no reported customer-facing impact.

0
ProgrammingDEV Community ·

Chinese Student Asks Dev Community How to Learn Tech Skills From Scratch

A Chinese university student studying general engineering posted their first question on DEV Community, seeking advice on how to approach learning entirely unfamiliar technical topics. The student was inspired by a GitHub profile page they discovered and wanted to build something similar despite having no prior experience. They have been using the AI tool DeepSeek to guide their learning process and credited it with helping them accomplish several tasks. However, the student is uncertain whether relying on AI assistance is the right approach to learning. They asked experienced developers how they got started as beginners, including how people learned before AI tools became widely available.

0
ProgrammingDEV Community ·

Developer builds BoringOS, an independent x86_64 desktop OS written in C

A developer has introduced BoringOS, an independent desktop operating system for x86_64 architecture built primarily in C. Unlike Linux distributions, BoringOS is built entirely from the ground up, with its own custom kernel and userspace components. The project includes self-developed filesystem functionality, USB and HID support, process management, and a native desktop environment called BoringWM. The source code is publicly available on GitHub, making it accessible to contributors interested in low-level systems programming. The developer is actively seeking input from kernel and systems programmers on which subsystem to prioritize next.

0
ProgrammingDEV Community ·

How Material Design 4 Boosted a Fintech App's Checkout Rate by 18 Percent

A Mumbai-based fintech app rebuilt on Google's Material You design system — spanning Android 12 through 14 and increasingly called Material Design 4 — saw its checkout completion rate rise 18 percent and time-to-first-action fall noticeably in follow-up tests. The original app used two hardcoded shades of blue, leaving users unable to distinguish tappable elements and experiencing a poorly integrated dark theme. Material Design 4 shifts from fixed brand colors to dynamic tonal palettes and expressive shapes, deriving a full color scheme from the user's wallpaper while keeping hierarchy and touch targets consistently legible. The core principle is that design tokens — not hardcoded hex values — drive every component, making the interface systematically clearer rather than merely more attractive. Developers adopting the system are advised to define a base theme using Jetpack Compose Material 3 libraries rather than inheriting from older Material 2 setups.

0
ProgrammingDEV Community ·

How to Build Named Slots in React Using Child Type Inspection

React lacks a native named slots feature like Vue.js, but developers can replicate the pattern using child type inspection. The approach uses React.Children.toArray to flatten children into an array, then matches each element's type against imported component references to identify specific slots. This allows a parent component like ProfileCard to control layout, conditional rendering, and dividers without the consumer needing to manage those details. Developers can also add runtime validation to throw clear errors when required slots are missing, catching issues early during development. The technique relies on JavaScript function reference identity, requiring no string matching, custom attributes, or component registration.

0
ProgrammingDEV Community ·

Five AI Governance Platforms Enterprises Should Evaluate in 2026

As enterprises scale AI deployments including agents, LLMs, and retrieval systems, demand for robust governance tools has grown significantly. Key platforms identified for 2026 include Bifrost, Credo AI, Fiddler AI, OneTrust, and Speakeasy, each addressing governance from a different angle. These tools collectively cover areas such as compliance management, model observability, access control, and policy enforcement. Bifrost distinguishes itself as an open-source AI gateway that enforces policies directly in the request path between applications and AI providers. Enterprises evaluating these tools are advised to consider factors like deployment flexibility, pricing predictability, observability depth, and operational overhead.

0
ProgrammingHacker News ·

Aphantasia Research Is Reshaping How Scientists Understand Mental Imagery

Aphantasia is a condition in which individuals are unable to form voluntary mental images in their minds. New research into this phenomenon is prompting scientists to reconsider long-held assumptions about how imagination and visual thinking work in the brain. Studies on people with aphantasia are revealing important insights into the neural networks responsible for mental imagery. The findings suggest that imagination may be far more varied and complex across individuals than previously understood. This growing body of research is helping redefine what it means to think, remember, and create mentally.

0
ProgrammingHacker News ·

Developer Retests LLMs on Creative SVG Prompts, Finds Stronger Results in 2026

A developer revisited a benchmark experiment originally inspired by Simon Willison's 'pelican riding a bicycle' test, in which large language models are prompted to generate creative SVGs. The original tests were conducted in November and December 2025 using around thirty imaginative prompts, such as an octopus playing a pipe organ. Nine months later, the developer reran ten of those prompts across six models via OpenRouter to compare how newer, more capable models perform. The updated results have been published on a dedicated website, with the experiment costing approximately twenty dollars before the developer decided to pause further testing.

0
ProgrammingHacker News ·

Temporal Secures $550M in Series E Funding at $12.55B Valuation

Workflow automation platform Temporal has raised $550 million in a Series E funding round, valuing the company at $12.55 billion. The announcement was made by Temporal via an official blog post on its website. The substantial raise signals strong investor confidence in Temporal's developer-focused infrastructure technology. The funding is expected to support the company's continued growth, particularly as demand for AI-driven workflow orchestration rises.

0
ProgrammingHacker News ·

Volkswagen Unveils EV Concept Claiming Nearly 900-Mile Range

Volkswagen has revealed a new electric vehicle concept called the Mission Efficiency, which reportedly offers a range of nearly 900 miles on a single charge. The concept was announced and shared alongside official photos and specifications. The vehicle represents a significant leap in claimed EV range compared to current production electric cars. Further technical details are available via Motor1's coverage of the concept.

0
ProgrammingDEV Community ·

Developer Shares Nine-Year Struggle to Run Digital Signage Software on Raspberry Pi

A software developer has documented nearly a decade of attempts to make his open-source digital signage application, garlic-player, run smoothly on Raspberry Pi hardware. Early efforts on the Pi 3 around 2017–2018 were hampered by the lack of zero-copy display output in Qt, causing video stuttering even at low CPU loads, despite partial workarounds using a GPU-based tool called PiOmxTextures. A breakthrough for smooth HD playback was eventually achieved in 2018, but it broke WebView and multi-zone layout support — two key features of the application — with no useful error output to diagnose the cause. The 2019 release of the Raspberry Pi 4 brought hardware improvements including dual HDMI ports, but hardware-accelerated video decoding was only available on the 32-bit OS, while the more capable 64-bit Raspbian remained in beta without acceleration. 4K video support also proved unreliable, working only in VLC under specific conditions, leaving the developer repeatedly forced to choose between a modern operating system and functional hardware decoding.

0
ProgrammingDEV Community ·

Open-Source Tool CauterRule v0.3.1 Fixes Zero-Pass Corpora With Data Repairs, Not Model Changes

CauterRule, an open-source sidecar that converts repeated AI agent failures into reusable rules, released version 0.3.1 after investigating two corpora that scored zero passes in the previous cycle. The 'adapters' corpus failed entirely because the reference pool contained no framework-specific trajectories, meaning the model was producing valid candidates that had nothing to be compared against. Similarly, the 'raw/ci' corpus suffered from four compounding data bugs, including a script that captured log headers instead of actual failure text and a reference pool padded with irrelevant trajectories. After fixing the underlying data issues — adding domain-matched reference signatures and correcting the log collector — the adapters corpus improved from 0/60 to 60/60, and raw/ci rose from 0/110 to roughly 21–26 out of 47 valid entries. The key finding is that a zero-percent corpus signals a data quality problem to investigate, not necessarily a model limitation to address.

0
ProgrammingDEV Community ·

DEV Community Launches Weekly Meme Monday Thread

DEV Community hosts a recurring weekly feature called Meme Monday, inviting members to share humor-based content. The cover image for the latest edition was sourced from a previous thread submission. DEV emphasizes that it operates as an inclusive platform for all its members. To maintain community standards, moderators will downvote any humor deemed to be in poor taste.

0
ProgrammingDEV Community ·

How Startups Can Survive AWS Regional Outages Without Doubling Cloud Costs

Full multi-region infrastructure redundancy is the standard recommendation for surviving AWS outages, but it can double cloud bills and is impractical for most startups and mid-sized businesses. A hybrid approach combining intra-region Multi-AZ automation with a lightweight cross-region backup strategy offers a more affordable alternative. The method relies on managed services like AWS Fargate, Lambda, and RDS Multi-AZ for automated local failover, while storing only data — via daily RDS snapshots and S3 Cross-Region Replication — in a secondary region rather than running live infrastructure there. Infrastructure-as-code tools like Terraform or CloudFormation are used to define the backup environment, with compute resources spun up only when a real disaster occurs, avoiding the cost of idle servers. This trade-off accepts a short recovery delay during a worst-case regional failure in exchange for significantly lower ongoing costs, with cold backup storage estimated at around $5 per month for a 100 GB database.

0
ProgrammingDEV Community ·

How to Build an AI Agent Harness From Scratch in Your Code Repository

A developer tutorial on DEV Community walks through building an AI agent harness — a structured set of files, rules, and conventions stored directly in a code repository. The harness gives an AI agent everything it needs to operate autonomously, including how to start, what constraints to follow, how to verify task completion, and how to hand off work to the next session. The guide uses a simple command-line ledger project as a sandbox, constructing key files such as CLAUDE.md for agent instructions and ARCHITECTURE.md for system design details. A startup script is also added to handle dependency installation and verification in a single step, forming the foundation of the agent's operating loop. The core principle is that keeping task criteria inside the repository — rather than in ephemeral chat messages — ensures consistent decision-making across agents and developers alike.

0
ProgrammingDEV Community ·

How a Provider Policy Linter Can Catch Silent AI Gateway Failures in CI

Multi-provider AI gateways can fail quietly when model aliases, routing rules, or pricing data change without triggering obvious errors in the SDK or dashboard. A provider policy linter is a lightweight CI gate designed to catch these issues before a release ships, by validating assumptions around models, endpoints, pricing, and billing groups. The approach involves five core checks: confirming pricing source freshness with dated references, verifying model route existence, enforcing explicit endpoint compatibility declarations, clarifying billing-group context in examples, and requiring named fallback policies. Reference pricing data for this guide was sourced from AIWave's public endpoints on September 14, 2026, reflecting a 64-model snapshot dated September 10, 2026. The linter is intended to complement, not replace, live monitoring, and its policy configuration file should be version-controlled alongside SDK code.

0
ProgrammingDEV Community ·

Adding One String Key to a PHP Array Can Silently Consume 25 MB Extra Memory

A developer refactoring legacy PHP code discovered a significant memory cost tied to how PHP internally handles arrays. A packed array of one million integers uses about 16.8 MB in PHP 8.4, but adding even a single string key forces PHP to convert it into a full hash table, jumping memory usage to nearly 42 MB. This conversion adds roughly 25 MB of overhead and is irreversible — unsetting the key does not reclaim the memory. The same penalty applies when filling an array with sequential integer keys in reverse order, as PHP treats out-of-order insertion as a hash table rather than a packed list. The findings highlight how PHP's internal array optimizations can silently break under common coding patterns, with real consequences for memory-heavy workloads like processing large database result sets.

0
ProgrammingDEV Community ·

HTMP Library Brings React-Like Reactivity to a Single HTML File at 2.9 kB

A lightweight library called HTMP enables reactive UI behavior — including counters, todo lists, and live form updates — directly inside a single HTML file with no build tools or package managers required. The zero-dependency engine weighs just 2.9 kB gzipped and works in any browser, including via a local file:// URL. HTMP is built on three core concepts: an HTML template parsed by the browser's native DOMParser, a reactive state object powered by JavaScript's Proxy, and plain event-handler functions. It offers a lifecycle API with mount, unmount, remount, and destroy methods, making it suitable for single-page apps and embeddable widgets. The library is aimed primarily at PHP, WordPress, and legacy-stack developers who need client-side interactivity without adopting a full JavaScript framework.

← NewerPage 1342 of 3311Older →