SShortSingh.
0
ProgrammingDEV Community ·

Why catching npm vulnerabilities in CI is already too late

Software engineer Sonu Kapoor, writing for DevOps.com, argues that discovering npm dependency vulnerabilities during CI pipeline runs is a structural flaw, not a security practice. By the time a scanner flags an issue in CI, the developer has already installed the package, written dependent code, and moved on, making the fix a separate project rather than a quick decision. To illustrate the scale of the problem, Kapoor cites a scan of the NestJS repository's package-lock.json, which revealed 1,626 resolved packages carrying 25 vulnerabilities, 13 of which were buried in transitive dependencies. The recommended fix involves shifting discovery earlier through pre-commit hooks, mandatory PR-level lockfile scans, and branch-protection policies, rather than relying solely on a local CLI tool. Critics of the approach note that developer-side tools can be inconsistently applied, and that enforced PR checks and branch-protection rules offer more reliable controls than optional local scanning.

0
ProgrammingDEV Community ·

TinyML on ESP32 Enables Real-Time Heart Arrhythmia Detection Without Cloud

Developers are deploying TinyML models directly on ESP32 microcontrollers to detect cardiac arrhythmias in real time from raw ECG signals, eliminating the need for cloud processing. The system uses TensorFlow Lite for Microcontrollers paired with an AD8232 ECG sensor to capture, filter, and analyze heart rhythm data entirely on-device. A 1D Convolutional Neural Network trained on the MIT-BIH Arrhythmia Database is converted to an 8-bit integer format via post-training quantization, reducing model size fourfold and speeding up inference. This edge-based approach addresses key concerns around latency, battery consumption, and patient data privacy by keeping sensitive medical information local. Abnormal rhythm detections can trigger alerts sent to a mobile dashboard via Bluetooth or Wi-Fi.

0
ProgrammingDEV Community ·

Distributed Tracing Explained: How OpenTelemetry Fills the Observability Gap

Logs and metrics alone often fail to pinpoint performance bottlenecks in complex, multi-service systems, which is where distributed tracing becomes essential. A trace records the full journey of a single request across all services, making it possible to identify exactly which component — such as a slow database query — is causing latency. OpenTelemetry has emerged as the standard framework for implementing tracing, offering auto-instrumentation for HTTP calls and database queries with minimal setup. To manage costs in production, tail-based sampling allows teams to retain all error and slow-request traces while discarding the majority of routine ones. Common pitfalls include failing to propagate trace context between services, over-sampling early on, and omitting business identifiers like user or order IDs that make traces genuinely actionable.

0
ProgrammingDEV Community ·

Why developers argue for keeping form validation logic out of UI libraries

A software developer argues that relying on libraries like Formik or React Hook Form for form validation embeds business logic into the UI layer, making it harder to reuse and test. The core problem emerges over time when the same validation rule, such as a VIN format check, ends up duplicated across multiple forms with subtle inconsistencies. The author proposes treating validation rules as domain logic — self-contained, testable units independent of any React component or third-party library. This approach allows rules to be shared across create, edit, and import workflows, tested without mounting a component, and potentially reused on the backend. The article outlines a lightweight contract-based system using plain classes and useState as an alternative to schema-resolver patterns.

0
ProgrammingDEV Community ·

Why AI Site Reliability Engineering Will Become Its Own Critical Discipline

A software professional recounts spending $200 on an AI-driven task that should have cost $2, highlighting how AI systems can fail silently while appearing to function normally. Unlike traditional cloud infrastructure, which fails loudly with alerts and error codes, AI failures are subtle — models can return confident, well-formed responses that are factually wrong or wasteful. This distinction is driving a new concept called AI Site Reliability Engineering, which goes beyond measuring uptime to evaluating usefulness, cost efficiency, correctness, and contextual accuracy. Practitioners argue that future reliability frameworks must include checks for model drift, runaway agent loops, budget overruns, and decision-trail explainability. The core shift is that cloud systems fail when components break, whereas AI systems fail when judgment breaks — demanding an entirely new set of guardrails and oversight practices.

0
ProgrammingDEV Community ·

How an AI Agent Cut Origami Prep From Many Steps to One Sentence

A developer and parent shared how a personal AI agent handled an entire origami project after receiving just a single instruction — searching for tutorials, printing a guide, and preparing paper sheets in under five minutes. When a color change was requested, the agent reprinted everything without additional input. The author argues that AI agents differ from traditional automation by interpreting intent rather than following pre-written scripts, dynamically combining tools like search, print, and cart-add as needed. This approach, they say, eliminates what they call 'middle management cost' — the accumulated attention and micro-decisions drained by conventional multi-step workflows. The trade-off is higher token consumption per task, but the author views this as worthwhile if the only decision a user needs to make is knowing what they want.

0
ProgrammingDEV Community ·

Laid-off developer built 6 AI tools in 30 days, one gained real users

A software developer who was laid off in March 2026 challenged himself to build as many projects as possible using AI tools before his severance pay ran out. He imposed a strict seven-day deadline on each project, completing six builds over the course of a month. The projects ranged from a Chrome extension with 15 active users and a 4.2 rating to personal utilities like an email reply drafter and an automated weekly work report generator. While some tools became part of his daily workflow, others attracted zero users and were never reopened after launch. The experiment highlighted both the speed AI enables for solo developers and its limitations, including buggy code generation and outputs that required significant human correction.

0
ProgrammingDEV Community ·

Cx Language Adds Full Labeled Break/Continue Support Across Lexer, Interpreter, and JIT

The Cx programming language has implemented labeled break and continue statements across its entire stack, from the lexer to the JIT compiler, completed in two focused commits on June 28, 2026. The language adopts a Rust-inspired syntax using 'ident for labels, with lexer rules designed to distinguish label tokens from character literals without ambiguity. The rollout was split into two commits: the first established frontend groundwork including the Label token and semantic checks, while the second enabled actual execution in the interpreter and JIT backends. The interpreter now handles labeled break and continue signals, and the JIT gained a label-aware loop context stack to support targeted jumps without affecting existing unlabeled behavior. The project's test suite now records 292 passing tests with zero failures, covering semantic rejections and labeled outer-loop control flow.

0
ProgrammingDEV Community ·

Kiponos Java SDK Lets Teams Tune Circuit Breaker Thresholds Without Redeploying

Kiponos.io is a Java SDK that separates resilience pattern logic from its configuration parameters, allowing operations teams to adjust circuit breaker and bulkhead thresholds in real time. Key values such as failure rate thresholds, open-state wait durations, and maximum concurrent calls are stored in a live configuration tree rather than hardcoded in the application. During incidents or brownouts, engineers can tighten or loosen these thresholds via a dashboard edit instead of triggering a redeployment. The SDK integrates with Resilience4j, and its per-call configuration lookups are designed to remain local to avoid latency overhead. This approach lets site reliability engineers respond dynamically to changing failure conditions, including selectively isolating non-critical downstream services during regional outages.

0
WorldBBC World ·

Canada Make World Cup History in Run Set to Transform Domestic Football

Canada are achieving a historic run at the current FIFA World Cup, a milestone for the nation's football program. The team's performance is being celebrated as a landmark moment for the sport in the country. Their progress is widely expected to have a lasting impact on the growth and profile of football in Canada. Fans and officials have praised the players as national heroes for their achievements on the world stage.

0
ProgrammingDEV Community ·

hermes-memory-installer Adds Metrics, Auto-Archive, Token Rotation, and DLQ Replay

The latest release of hermes-memory-installer brings five production-focused upgrades targeting observability, storage efficiency, security, fault tolerance, and performance. A new metrics module emits Prometheus-formatted data covering throughput, latency percentiles, queue depth, and heap usage, enabling real-time monitoring via tools like Grafana. An auto-archive feature offloads aged or processed messages to cheaper storage tiers such as S3 or GCS on a scheduled basis, reducing costs while preserving metadata for potential restoration. Automated token rotation handles the issuance and revocation of JWT-based bearer tokens at configurable intervals, keeping inter-service authentication secure without manual intervention. A dead-letter replay API now allows operators to reprocess failed messages individually or in bulk, preserving original ordering and deduplication keys while logging each retry attempt for traceability.

0
ProgrammingDEV Community ·

How to fix Claude Code sessions broken by lone UTF-16 surrogates in transcripts

Claude Code sessions can become permanently unusable when a lone UTF-16 surrogate character gets written into the session's on-disk JSONL transcript file. This happens when a large, emoji-heavy tool output is truncated mid-character, leaving an orphaned surrogate half that the API's strict JSON parser rejects on every subsequent request. Because Claude Code replays the full session history to the API on each turn, the corrupted line poisons every future request until the file is manually repaired. The fix involves closing the session, stripping only the invalid surrogate code points (U+D800–U+DFFF) from the offending line using a Python script, and resuming the session — leaving all valid emoji and text intact. A byte-level pre-filter can speed up transcript scanning significantly, making automated checks on session start a practical option for content-heavy projects prone to repeat occurrences.

0
ProgrammingDEV Community ·

CommitBrief uses SHA-256 content addressing to cache LLM code reviews at zero cost

CommitBrief, a tool that automates code review using large language models, caches every LLM response to eliminate redundant API calls and associated costs. Each cache entry is keyed by a SHA-256 hash of all inputs that affect the output, including the diff, system prompt, model, provider, language, and schema version. Because the key is derived entirely from the inputs, any change automatically produces a new key, making stale cache entries impossible without any explicit invalidation logic. Cache hits are resolved through a simple disk read and JSON unmarshal, bypassing token usage and cost estimation entirely. The design also ensures that adding new optional features does not invalidate existing cache entries, since new parameters only extend the key when present.

0
IndiaTimes of India ·

Harmanpreet Kaur blunt about India's poor show against top teams after WC exit

India were eliminated from the Women's Cricket World Cup after failing to qualify for the semi-finals. Captain Harmanpreet Kaur did not hold back in her assessment, openly admitting that the team did not perform well against stronger opposition. India had posted a competitive total of 170 for four after being asked to bat, but it was not enough to keep their campaign alive. The captain's candid remarks highlighted a recurring weakness in the team's performance against top-ranked sides.

0
ProgrammingDEV Community ·

Developer Explains How Solana NFTs Work Under the Hood Using Token Extensions

A developer exploring Solana's NFT infrastructure discovered that NFTs are not a distinct asset type but simply tokens configured with specific properties, including a supply of one, zero decimals, and revoked mint authority. Metadata stored on-chain gives each NFT its identity, covering details like name, description, and image. Historically, most Solana NFT projects relied on Metaplex, an open-source protocol that standardized metadata and collection management. Solana's newer Token Extensions now allow developers to embed metadata, collection grouping, and custom business logic directly into the token without depending on external frameworks. The developer concluded that NFTs have practical uses well beyond digital art, including tickets, memberships, certificates, and gaming assets.

← NewerPage 73 of 173Older →