SShortSingh.

Programming

0
ProgrammingDEV Community ·

How One Team Synced Two Databases Without Merging Them

A development team built a field inspection app that needed to coexist with a legacy work-order system without sharing or merging their databases. Instead of a live integration, the team copies ticket data one-way from the legacy system into their own Postgres database on a timed poll every 300 seconds. Ticket identifiers arrive via the legacy HTTP API, while additional fields like GPS and site details are fetched separately from the source MySQL using read-only guest credentials. When source MySQL timed out one Tuesday morning, the app logged a warning and rendered the ticket without GPS, which appeared on the next poll four minutes later. The approach intentionally accepts brief data gaps to avoid making a third-party outage cascade into a full app failure.

0
ProgrammingDEV Community ·

Why AI Teams Must Set Time Budgets, Not Just Token Limits

Engineering teams relying solely on token-usage dashboards to manage AI workloads risk missing a critical second constraint: wall-clock time. Unlike token counts, deadlines tied to human waiting, deploys, or customer tickets cannot be deferred without real cost. The article argues that free model capacity should be treated as opportunistic, suitable only for jobs that can be safely aborted if time runs out. A proposed control loop recommends stamping jobs at intended start time, separating queue-wait from generation time, and aborting at either threshold. Logging both token and calendar clocks together is presented as the baseline for making data-driven decisions rather than relying on assumptions.

0
ProgrammingDEV Community ·

Fingerprint vs. Text Diff: How to Gate Agent-Written SQL in CI

A debate in software engineering circles is examining the best way to regression-test SQL queries written by AI agents, where two main approaches compete: query fingerprinting and literal text diffs. Fingerprinting strips formatting and aliases to compare a normalized digest, catching structural changes while ignoring harmless restyles — a strength on high-churn reporting queries. Literal text diffs, by contrast, flag every changed character, making them better suited for privileged DML and security-sensitive paths where exact values like status strings matter. Each method has blind spots: fingerprints can miss unbounded date literals, while text diffs generate noise when agents reformat identical logic differently. The article argues that neither approach alone is sufficient, and that teams need a deliberate decision rule combining both gates to avoid false failures and silent plan drift.

0
ProgrammingDEV Community ·

How Streaming SSR in Next.js App Router Eliminates Slow Page Load Bottlenecks

Traditional server-side rendering in Next.js forces the server to wait until all data — including slow queries — is ready before sending any HTML to the browser, causing blank screens and poor performance metrics. This architectural limitation, known as the all-or-nothing rendering bottleneck, can leave users waiting several seconds even when most page content is ready almost instantly. Streaming SSR, enabled by React Suspense and the Next.js App Router, solves this by using HTTP chunked transfer encoding to immediately send fast-loading page sections to the browser while slower components load in the background. Skeleton placeholders fill the slow sections until their data resolves on the server, at which point the final HTML is streamed into the page seamlessly. The approach significantly improves Time to First Byte, First Contentful Paint, and overall perceived performance for end users.

0
ProgrammingDEV Community ·

Developer Shares Hard Lessons Building JAZZ, a Linux Desktop for AI Engineering

A developer building JAZZ, a Linux desktop environment designed for AI engineering tasks, documented several major setbacks encountered during the project. A routine reboot revealed filesystem corruption caused by cross-linked clusters on a shared Windows-Linux partition, which had silently damaged the bootloader over time. The developer recovered the system by booting from a USB drive, manually rebuilding boot files, and running a filesystem check. Later, a cloud-rented RTX 4090 GPU delivered inference speeds roughly 64 times faster than an integrated graphics laptop, clocking in at 2.4 milliseconds versus 155 milliseconds. The post focuses on the failures and frustrations behind the project rather than its feature set, offering a candid account of real-world system building challenges.

0
ProgrammingDEV Community ·

Cisco ISE REST API Flaw Allows Unauthenticated Admin Access, CVSS Score 10.0

Cisco disclosed a critical authentication bypass vulnerability, CVE-2026-76423, in its Identity Services Engine (ISE) REST API on September 16, 2026, assigning it a maximum CVSS v3 base score of 10.0. The flaw stems from insufficient authorization checks in the REST API, allowing a remote attacker with network access to gain full administrative control without any credentials. Affected versions span ISE releases 3.1 through 3.5, as well as the ISE Passive Identity Connector, with patches now available for each branch. Because ISE functions as a central network access control plane, a successful exploit could allow attackers to alter identity policies, manipulate device integrations, and pivot deeper into corporate infrastructure. Cisco urges administrators to apply the respective patches immediately, as the product has a broad deployment footprint with over 880,000 assets matching its fingerprint on ZoomEye.

0
ProgrammingDEV Community ·

R8 Obfuscates Code But Does Not Fully Protect Android Apps, Experts Note

Android developers commonly rely on R8 for app security, but R8 is primarily a build-time optimizer and obfuscator that renames identifiers and removes dead code rather than providing comprehensive protection. Despite R8's benefits, the resulting APK still contains DEX bytecode that can be inspected using widely available reverse-engineering tools such as JADX, Frida, and apktool. An open-source project called XopProtector aims to address these gaps by layering additional defenses including DEX encryption, virtual machine protection, native library hardening, anti-hooking mechanisms, and runtime integrity checks. Security-conscious developers are advised to use R8 and XopProtector together, as each targets a different attack surface rather than one replacing the other. While no client-side solution can make an app completely tamper-proof, combining both tools significantly raises the difficulty of static and runtime analysis.

0
ProgrammingDEV Community ·

Anthropic's Claude Loop Command Powers Automated Liquidation Cascade Trading Strategies

A liquidation cascade occurs when prices drop below a key level, triggering forced exchange closures via market orders, causing sharp single-candle moves followed by quick bounces. This pattern repeats frequently but is difficult to exploit because its defining parameters shift every month, making manual upkeep impractical. In March 2026, Anthropic introduced the /loop command in Claude Code, enabling a local scheduler to run AI prompts continuously in the background. A developer has outlined a structured workflow using a CLAUDE.md system prompt to define market analysis rules before any code is written, ensuring the AI agent operates within clear acceptance criteria. The approach emphasizes single-month backtests, high signal frequency, and strict stop-loss rules to make the strategy statistically valid and production-ready.

0
ProgrammingDEV Community ·

PTaaS Replaces Annual Pen Tests With Continuous, Subscription-Based Security

Penetration Testing as a Service (PTaaS) is a subscription model that provides ongoing security testing, replacing the traditional once-a-year penetration test. Unlike conventional engagements that deliver a static PDF report weeks after testing ends, PTaaS surfaces vulnerabilities in real time, allowing developers to begin remediation immediately. The model offers cost predictability by converting variable per-engagement fees into a fixed subscription, while also scaling access to a broader pool of specialized security researchers. PTaaS platforms are designed to keep pace with modern development cycles, catching new vulnerabilities introduced by frequent code deployments and infrastructure changes. Many platforms also generate audit-ready reports aligned to compliance frameworks such as PCI DSS, SOC 2, and HIPAA, reducing documentation burden for security teams.

0
ProgrammingDEV Community ·

Flutter Apps Can Silently Swallow Bugs — Here Is How to Fix That

A Flutter developer with experience since 2018 warns that broad try/catch blocks can silently suppress real bugs, preventing them from reaching crash-reporting tools like Sentry. Instead of catching all errors generically, the approach recommends sorting failures into two categories: expected errors that can be handled gracefully, and unexpected bugs that should propagate untouched. The solution uses a sealed AppException class with specific subtypes, ensuring every error is classified and the compiler flags missing cases. A shared BaseRepository.guard() method centralises error handling, preserving original stack traces so crash reports remain actionable. The full implementation is publicly available across three boilerplate repositories — bp-bloc, bp-riverpod, and bp-mvvm.

0
ProgrammingDEV Community ·

Model Context Protocol: A Developer's Guide to Building AI-Powered Integrations

The Model Context Protocol (MCP) is an open, JSON-RPC-based standard designed to enable AI models to communicate with external tools, databases, and APIs in a standardized way. Often compared to USB for its role in universalizing connectivity, MCP bridges the gap between large language models and real-time external systems they cannot natively access. The protocol follows a client-server architecture where an AI client interacts with an MCP server, which in turn connects to external services. Key capabilities include tool execution, resource access, context sharing, and built-in security mechanisms suited for enterprise deployments. Developer Gupta Abhishek Premkumar published a comprehensive tutorial in September 2026 covering how to build, deploy, and secure MCP servers to extend AI assistant functionality.

0
ProgrammingDEV Community ·

Dev Tool Adds Syntax Highlighting to Code Diffs Without Altering Change Markers

A developer building a pull request reading guide received feedback that code was difficult to read due to uniform coloring within diff lines. To address this, syntax highlighting was added to both the diff view and definition previews, layering color cues onto the existing green and red line backgrounds. The implementation highlights old and new file versions separately to prevent multiline strings from one version affecting the other, and uses highlight.js to extract token ranges without replacing the original source text. Fallback to plain code is built in for unknown file types or parsing errors, ensuring the diff always renders. Regression tests cover edge cases including emoji, HTML-like characters, collapsed context, and renamed files.

0
ProgrammingDEV Community ·

How a Non-Engineer Built Three Daily Claude AI Routines to Avoid Analysis Overload

A product marketer, not a developer, began using Anthropic's Claude AI tool not for coding but to manage a recurring problem of spending too much time re-checking business analytics each morning. They built three simple automated routines: a 10 a.m. Publora analytics brief, a Monday-Wednesday-Friday content idea tracker that saves suggestions to a local file, and a twice-daily Hacker News digest to curb aimless browsing. The routines are intentionally modest — designed to surface only what needs attention rather than replace judgment or generate content autonomously. The author deliberately chose local routines over Claude's cloud-based options, citing personal anxiety about AI performing tasks unsupervised overnight. The result is a leaner workday where deeper investigation is triggered by genuine need rather than habitual over-analysis.

0
ProgrammingDEV Community ·

AI-Generated SQL Runs Fine But Can Silently Return Wrong Data, Dev Warns

A software developer has highlighted a subtle but serious risk with AI-generated SQL queries: they can execute without errors while still returning logically incorrect results. In a real-world example, an AI produced a complex query using window functions and CTEs that passed code review but used MIN instead of MAX, returning the earliest matching row rather than the most recent one. The mistake went undetected for two weeks after deployment, affecting live data for specific edge cases. The developer notes that leading large language models achieve only around 60% execution accuracy on complex natural language-to-SQL tasks, making direct sign-off unreliable. As an alternative, the author advocates for a step-by-step, verifiable approach to SQL generation where intermediate results can be inspected before a final query is produced.

0
ProgrammingDEV Community ·

How to Build a Lightweight Webhook Receiver for Match Events in Go

Developers who need to react to discrete sports match events—such as goals or status changes—can use Go to build a minimal, low-overhead webhook receiver. The approach involves standing up an HTTP handler that accepts POST requests, parses a structured match event payload, and returns a fast acknowledgment. To prevent spoofed requests, the guide recommends verifying incoming payloads using HMAC signature checks against a shared secret provided by the webhook service. Processing logic should run asynchronously via goroutines to avoid timeouts and unnecessary retries from the event sender. The walkthrough relies on the OrbisStats API, which offers a free tier and a sandbox environment for testing event payloads before going live.

0
ProgrammingDEV Community ·

How Database Indexes Speed Up SQL Queries on Large Tables

Database indexing is a technique that helps query engines locate specific rows without scanning every record in a table, which becomes critical when tables hold millions or billions of entries. An index works similarly to a book's index — it maintains an organized reference structure that points directly to the relevant rows, reducing the amount of data the engine must examine. The most common underlying structure is the B-tree, which MySQL and PostgreSQL use to efficiently handle equality and range-based conditions such as WHERE, BETWEEN, and IN clauses. Creating an index on a frequently queried column, such as an email field, can dramatically cut query execution time by allowing the database to narrow its search before touching the main table. However, indexes are not without trade-offs — they consume additional storage space and introduce extra overhead whenever data is inserted, updated, or deleted.

0
ProgrammingDEV Community ·

Sekiban DCB Tutorial: Building Materialized Views for Event-Sourced Systems

A developer tutorial published on DEV Community demonstrates how to implement Materialized Views (MVs) using the Sekiban DCB framework on a student enrollment management system. The system stores actions such as student creation, profile updates, and class enrollments as events, which are then projected into read-side SQL tables for efficient querying. Built on a stack of .NET 10, Sekiban DCB 10.19.0, Orleans, and PostgreSQL, the implementation uses separate databases for the event store and the MV, allowing enrollment data to be retrieved via SQL JOINs across student, class, and enrollment tables. Because event persistence and MV updates run as separate processes, a delay exists between a successful write command and the updated data becoming visible on the read side. The tutorial emphasizes that MVs are intended solely for reading and should never be used to enforce business rules or validate consistency, as the event store remains the single source of truth.

0
ProgrammingDEV Community ·

Why AI Hiring Take-Homes Need Four Key Files to Test Real Engineering Skill

A software hiring debate is growing around AI-era take-home assignments that look polished but cannot be independently verified or replayed. The argument is that green tests and slick demos no longer prove a candidate understood the problem, since models can generate plausible-looking code without genuine comprehension. The proposed fix is a four-file contract in every submission: a prompt completable without a paid API key, a scoring rubric, a replayable sample solution, and a failure analysis written before the happy path. The core task suggested is a small HTTP service with strict constraints around secret handling, output capping, and atomic file writes. The method prioritizes verifiable, bounded engineering over impressive tooling or flashy interfaces.

0
ProgrammingDEV Community ·

XopProtector offers free open-source alternative to commercial Android APK hardening tools

XopProtector is a newly highlighted open-source Android APK protection project released under the Apache 2.0 License, available on GitHub. It provides multilayer security features including DEX encryption, PVM1 and PVM2 method protection, true VMP, SO protection, RASP, and Frida/hook detection. Unlike commercial solutions such as 360 Jiagu, Tencent Legu, and DexGuard, XopProtector can be self-deployed, modified, and audited by developers without platform dependency or licensing costs. The project is particularly relevant now as 360 has announced it will discontinue its free hardening service from July 1, 2026, shifting entirely to a paid subscription model. XopProtector is positioned as a customizable alternative for individual developers, small teams, and organizations that require source-code control and private deployment of their APK security pipeline.

← NewerPage 1154 of 3222Older →