SShortSingh.

Programming

0
ProgrammingHacker News ·

Researcher Proposes Metrics to Measure Code Sloppiness Beyond Functionality

A blog post on Earendil.com raises the question of what software quality means if AI can generate working code on demand. The author argues that functional correctness alone is insufficient and that 'sloppiness' — poor structure, readability, and maintainability — remains a real problem. The piece proposes ways to quantitatively measure how sloppy code is, even when it technically runs. This reflects a broader industry debate about AI-generated code quality as tools like GitHub Copilot become widespread. The discussion was shared on Hacker News, though it attracted no comments at the time of posting.

0
ProgrammingHacker News ·

Houthis Seize Strategic Island Along Major Global Shipping Lane

Yemen's Houthi forces have reportedly taken control of a key island situated along a critical global shipping route. The seizure raises concerns about potential disruptions to international maritime trade passing through the area. The Houthis, an Iran-aligned armed group based in Yemen, have previously targeted commercial vessels in nearby waters. Control of such a strategically located island could give the group greater leverage over shipping movements in the region.

0
ProgrammingDEV Community ·

Swiss AI firm runs sovereign inference tier on four Intel Arc Pro B60 GPUs

Swiss company SOKKAN Inference launched a new 'Swiss' tier this week, serving AI inference from a self-owned machine located in Meyrin, Geneva, with no NVIDIA hardware involved. The setup uses four Intel Arc Pro B60 GPUs purchased for around CHF 2,450 total, chosen primarily for their availability and VRAM-per-franc value during a GPU shortage. Three open-source MoE models run simultaneously across the four cards, enabling data to remain entirely within Switzerland for clients with strict data-residency requirements. Performance benchmarks show strong throughput for the gpt-oss-20b model under vLLM, but the larger 80B model suffers degraded aggregate throughput under concurrency due to llama.cpp lacking continuous batching support. The entire machine, including co-hosted production workloads, costs approximately CHF 750 per year in electricity at Swiss rates.

0
ProgrammingHacker News ·

Neuro Engine claims its MCP server cuts AI coding token usage by up to 96%

Neuro Engine is a newly introduced MCP (Model Context Protocol) server designed to reduce token consumption during AI-assisted coding tasks. The tool claims to cut token waste by as much as 96%, which could significantly lower costs for developers using large language models. The project was shared on Hacker News, where it received modest early engagement with 4 points and 3 comments. Further details about the tool are available on its official site at neuro-engine.netlify.app. No additional technical or organizational background was provided in the original submission.

0
ProgrammingDEV Community ·

How One Developer Built an LLM Support Agent That Fails Safely Every Time

A developer documenting an experiment in building an LLM-powered customer support agent has outlined four key failure modes and the code designed to handle each one. The system uses database-level scoped lookups to neutralise hallucinated order IDs the same way it blocks unauthorised access, treating both as equally invalid. A confidence threshold on search results ensures the agent declines to answer rather than returning a misleading but technically retrieved response. A circuit breaker pattern handles third-party carrier API outages by delivering a specific fallback message, deliberately kept distinct from access-denial messages to avoid confusing customers. When the primary AI classifier fails, a deterministic keyword fallback takes over, refusing anything it cannot confidently interpret rather than guessing.

0
ProgrammingHacker News ·

US Diesel Prices Hit Record High Above $6 Per Gallon

Diesel fuel prices in the United States have surpassed $6 per gallon for the first time on record. This milestone marks a significant surge in fuel costs that affects a wide range of industries reliant on diesel-powered transportation. The rise in diesel prices has broad consumer implications, as higher freight and logistics costs typically translate into increased prices for everyday goods. The spike is part of a wider trend of elevated energy prices seen across the country.

0
ProgrammingDEV Community ·

Developer Builds TypeScript CLI for CowSwap to Bypass UI Downtime and Add Trading Controls

A developer published an open-source TypeScript command-line tool built on the CowSwap SDK, designed to place crypto orders directly without relying on the CowSwap web interface. The move was prompted by recurring issues with the platform's frontend, including a domain hijack incident, UI crashes, lack of slippage control, and missing order types such as buy/sell ladders. The CLI adds safety features like dual-source price verification using CowSwap and CoinGecko quotes, warning users when significant price discrepancies are detected before a trade executes. It supports market orders with explicit slippage, fixed-price limit orders, and ladder orders with relative price offsets, while also allowing token lookup by contract address. The tool is scriptable and automation-friendly, and its source code is publicly available on GitHub.

0
ProgrammingDEV Community ·

Green Lighthouse Scores Miss Memory Leaks That Build Up in Long-Running SPAs

Single-page applications (SPAs) can score well on Lighthouse and PageSpeed Insights at initial load while silently accumulating memory leaks over hours of real use. Unlike traditional multi-page sites, SPAs keep the same document alive across navigation, meaning detached DOM nodes, uncleared timers, and lingering event listeners build up session-long. A 2026 static analysis of 500 popular React, Vue, and Angular repositories found that 86% had at least one listener, timer, or subscription without a matching teardown. Lighthouse measures a controlled, time-bounded lab snapshot and was never designed to profile heap memory across hundreds of user interactions. Teams relying solely on Lighthouse for performance assurance may be missing session-level degradation that only surfaces after a full working day of use.

0
ProgrammingDEV Community ·

Study Finds AI Reasoning Steps Often Decorative, Not Driving Actual Answers

A 2023 Anthropic study found that larger AI models frequently produce reasoning traces that are post-hoc narratives rather than genuine computation, with more capable models showing worse faithfulness — an inverse-scaling result. The research tested this by truncating model reasoning midway and injecting deliberate errors to see whether answers changed accordingly. A developer recently replicated similar tests manually on current free-tier versions of ChatGPT, Gemini, and Claude using a logic puzzle, without API access or code. The informal experiment aimed to determine whether the 2023 findings still hold on today's widely used frontier models. While the tests were small-scale and exploratory rather than a formal benchmark, the underlying concern — that AI 'thinking' may be written backwards from a pre-determined conclusion — remains an active question in AI safety research.

0
ProgrammingDEV Community ·

How Canvas LMS OAuth 2.0 Authorization Code Flow Works for Developers

OAuth 2.0 allows third-party applications to access Canvas LMS user data securely without requiring users to share their credentials directly. Canvas implements the Authorization Code Flow, dividing the process into front-channel browser-based steps and back-channel server-to-server communication. During the flow, a user grants consent on the Canvas login page, after which a temporary authorization code is issued to the client application. The client then exchanges this code, along with its credentials, for an access token used to make authorized API requests. Key components involved include the resource owner, client application, authorization server, access token, redirect URI, and defined permission scopes.

0
ProgrammingDEV Community ·

AI-generated pull requests wait up to 5x longer for review, reports find

Data from LinearB's 2026 benchmarks report, covering over 8.1 million pull requests across 4,800 organisations, found that AI-generated pull requests wait 4.6 times longer before a reviewer picks them up, though they are reviewed twice as fast once someone does. A separate Faros AI report found that teams with high AI adoption merge 98% more pull requests but see review times increase by 91%. GitHub reported in October 2025 that its coding agent contributes to roughly 1.2 million pull requests per month, highlighting the scale of the bottleneck. A key technical complication is that different AI agents — including GitHub Copilot, Claude, Cursor, and Devin — open pull requests under different accounts or bot identities, meaning no single inbox filter captures all of them. Engineers are advised to use labels or repo-wide views to ensure AI-generated pull requests are not overlooked in review queues.

0
ProgrammingDEV Community ·

Android Security Audit Reveals Common Flaws That Put 300,000 Users at Risk

A security review of an Android app with 300,000 installs ahead of a funding round uncovered three critical vulnerabilities: unencrypted HTTP API calls, a refresh token stored in plain SharedPreferences, and full request bodies — including bearer tokens — logged to Logcat in debug builds shipped to production. None of the issues were sophisticated exploits; all were routine development oversights that could have been exploited by any competent attacker. Compounding the risk, the app's Play Data Safety form falsely claimed data handling practices that contradicted the actual code. The author outlines a repeatable security checklist covering network configuration, encrypted storage, SDK data disclosure, and certificate pinning to help developers address such gaps systematically. Google has enforced Play Data Safety form accuracy since 2022, and inaccurate disclosures can result in an app being flagged, suspended, or removed from the store.

0
ProgrammingDEV Community ·

LLM Trading Bots Beat Benchmark, But Pre-Set Rules Declare Result Inconclusive

A developer ran a two-month paper-trading experiment using LLM agents managing a simulated $100 cryptocurrency portfolio across two seasons, with no real money ever at stake. In Season 2, all four AI agents — using Claude Opus and GPT via Codex in autonomous and structured configurations — outperformed a passive 50/50 WETH/USDC benchmark by 3 to 10 percentage points at the 30-day mark. However, pre-committed decision rules required consistent outperformance across two 30-day windows with a minimum 2 percentage point net edge, a threshold the agents failed to meet within the frozen evaluation window. Inside that designated window, both primary agents posted negative returns and underperformed cash and the passive portfolio, triggering a formal 'STOP' verdict under the pre-registered rules. The author argues the 'inconclusive' outcome is the most valuable finding, as it demonstrates how pre-registration prevents selectively interpreting favorable data as proof of genuine trading edge.

0
ProgrammingDEV Community ·

AI Agents Often Run on Human Credentials, Creating Enterprise Security Blind Spots

Many AI agents deployed in enterprises lack their own distinct identities and instead operate using API keys, tokens, and credentials originally issued to humans or workloads. Because no enterprise identity provider typically mediates these exchanges, agent activity can fall outside standard governance and access reviews. Security experts warn that the problem is fundamentally about unmanaged secrets before it becomes an identity issue. Organizations are advised to first locate where agent credentials reside and who owns them, while simultaneously blocking new credential exposure. The recommended end state is replacing reusable, standing credentials with agent-specific or delegated identities backed by scoped, short-lived tokens that limit the damage if compromised.

0
ProgrammingDEV Community ·

Developer builds tool to make git diff understand JSON and YAML structure

A developer created a custom tool to give git diff semantic awareness of structured data formats like JSON and YAML, after a Kubernetes manifest formatter reordered keys and produced noisy, misleading diffs. Git offers two extension points for this: an external diff driver that fully replaces the diff output, and a textconv filter that normalises file content before comparison. A key discovery was that these two hooks behave differently across git commands — the external driver only activates for git diff, while history commands like git log -p and git show fall back to textconv. Several edge cases required careful handling, including invalid mid-edit files that could abort an entire diff run, temp files without reliable extensions, and encoding issues that could silently erase content. The author recommends starting with a simple shell shim for existing tools, but notes a dedicated subcommand offers better error messaging, cross-platform support, and more reliable file-type detection.

0
ProgrammingDEV Community ·

Duplicate Consent Records: Why a Stable Event ID Is Essential for Compliance

When a customer withdraws marketing consent, that single action can trigger multiple system deliveries due to network failures, webhook timeouts, or queue replays in distributed architectures. Without a mechanism to distinguish a redelivered message from a new customer decision, consent history logs may incorrectly record the same withdrawal twice. This creates serious risks for Privacy, Compliance, and Legal teams who rely on accurate consent histories to understand user intent. A stable, unique event ID — assigned once per consent action and retained across retries — allows receiving systems to recognize and discard duplicates without creating false records. Industry standards such as the CloudEvents specification from the Cloud Native Computing Foundation already recommend this approach for exactly this reason.

0
ProgrammingHacker News ·

Inside the Complexity and Cost of Building a Modern Semiconductor Fab

Building a modern semiconductor fabrication plant is an extraordinarily complex and capital-intensive undertaking, often costing upwards of $20 billion. The construction process involves highly specialized infrastructure, cleanroom environments, and precision engineering that far exceeds typical large-scale industrial projects. A 2024 analysis from Construction Physics breaks down the key phases, challenges, and cost drivers involved in bringing such a facility to life. The scale of investment reflects the critical role these fabs play in global chip supply chains, particularly amid ongoing efforts to expand domestic semiconductor manufacturing capacity.

0
ProgrammingDEV Community ·

How Custodial Services Can Issue Deposit Addresses Without Holding Private Keys

A software developer has published a Python package called chain-addresses that allows custodial services to generate cryptocurrency deposit addresses using only an extended public key, eliminating the need to expose private keys on internet-facing servers. The approach derives deposit addresses from an account-level extended public key, separating address issuance from spending authority entirely. Traditional methods that ask a node for a fresh address bundle key custody, address gap tracking, and wallet recovery into a single component reachable via HTTP, creating a broad attack surface. The package explicitly refuses hardened derivation paths and private key inputs, making the security boundary a verifiable code property rather than a configuration assumption. It supports multiple address encodings including Bitcoin P2WPKH, P2TR, and EVM formats, mapping a single derived public key to several address types.

0
ProgrammingDEV Community ·

Direct vs Indirect Syscalls: Why the User-Kernel Boundary Matters in Security

Windows applications operate in user mode and must request kernel services through a defined interface, passing through Win32 APIs and ntdll.dll before reaching the kernel via a syscall. The distinction between direct and indirect syscalls has become a key topic in malware research, reverse engineering, and EDR analysis. Modern Endpoint Detection and Response tools monitor behavioral telemetry — such as memory allocation, thread creation, and process relationships — rather than relying solely on API names. This means that switching syscall methods does not automatically evade detection, as suspicious behavior can still be observed at other points in the execution chain. Understanding where Windows transitions from user mode to kernel mode is therefore more valuable to security researchers than simply asking how to bypass a specific security product.

← NewerPage 1468 of 3361Older →