SShortSingh.

Programming

0
ProgrammingDEV Community ·

MCP Spec Defaults Mean Silent Tools Are Treated as Destructive by Compliant Clients

Under the Model Context Protocol schema, any tool that ships without a destructiveHint annotation is not simply silent — by documented default, clients honoring the spec must treat it as potentially destructive. Developer Eugeniya Ivanova highlighted this during a ChatGPT app directory review walkthrough published on September 7, 2026, where an automated scanner flagged four read-only tools lacking explicit destructiveHint values, prompting her to add destructiveHint: false without changing the tools themselves. A week earlier, on August 30, 2026, Himanshu Kumar audited a deployed server with six tools carrying zero annotations, summarizing the issue as: the server did not lie — it simply said nothing. The schema's ToolAnnotations interface defines defaults for four boolean fields, but a NOTE within the same spec warns clients never to base tool-use decisions on annotations from untrusted servers, creating a tension between the two rules. The result is that the same absent annotation can be interpreted differently by fully compliant clients, depending on which part of the specification they prioritize.

0
ProgrammingDEV Community ·

Study Finds 9 of 428 LLM API Routers Injecting Malicious Code into AI Agent Commands

A research study published in April 2026 examined 428 LLM API router services — intermediaries that relay AI requests to multiple model providers — and found that nine of them were actively injecting malicious code into tool-call instructions sent back to AI agents. Among the malicious behaviors documented, routers altered package names in installation commands to typosquatted versions, with some routers designed to activate only after 50 or more requests or during fully automated sessions to evade short-term testing. Separately, 17 routers were found to have accessed researcher-planted test credentials after they passed through, and one drained funds from a honeypot crypto private key. Researchers also set up deliberately misconfigured test servers, which attracted unauthorized access attempts from 147 IP addresses, resulting in 99 leaked credentials across 440 sessions — 401 of which were already running in fully automated mode. The findings highlight that because users intentionally configure these routers as endpoints, the intermediaries gain full application-level visibility into prompts, API keys, and agent instructions without needing to manipulate encryption.

0
ProgrammingDEV Community ·

How Async Processing and Message Queues Boost Modern Web App Performance

Synchronous request handling creates performance bottlenecks in web applications that manage real-time interactions. Heavy operations like third-party API calls, document formatting, and media rendering block the main thread and hurt user experience. Decoupling these tasks through asynchronous workers and message queues enables systems to scale more effectively under high traffic loads. Backend pipelines can offload intensive work to background processes while instantly returning status responses to the client. Event-driven architecture further strengthens resilience by isolating individual service failures, making distributed systems easier to manage in production.

0
ProgrammingHacker News ·

7 Up Documentary Subjects Step Back After Six Decades on Camera

The participants of the landmark British documentary series '7 Up' are choosing to withdraw after being followed by filmmakers for approximately sixty years. The series, which began in 1964, tracked a group of British children every seven years as they grew into adulthood. The project became one of the most celebrated longitudinal documentary series in television history. After decades of public exposure, the remaining subjects have decided to step away from further participation in the ongoing project.

0
ProgrammingDEV Community ·

7 Follow-Up Scripts to Help Freelancers Chase Clients Without Being Pushy

A guide published on DEV Community offers freelancers seven ready-to-use follow-up message scripts designed to re-engage clients after sending a quote. The core advice emphasises timing — waiting three to five business days before the first follow-up — and keeping messages short with a single, clear call to action. Each script targets a specific scenario, such as post-quote silence, a genuine scheduling constraint, or a final pipeline close-out, repositioning the freelancer as proactive rather than desperate. The guide also recommends avoiding guilt-laden phrases and never following up more than once every three to four days after the initial sequence. A simple tracking table is suggested to prevent duplicate outreach and ensure no potential client is forgotten.

0
ProgrammingHacker News ·

Opinion: Are AI Companies Overhyping Replacement Fears to Sell Products?

A Hacker News user has argued that AI companies are deliberately stoking fears of human replacement to market their products. The author contends that while AI can perform reasoning tasks, it cannot replicate the full depth of human knowledge, most of which is never recorded or shared as data. Humans are said to possess unique capabilities such as cross-domain thinking, intuition, and inspiration that machines cannot replicate. The post suggests that AI systems are fundamentally limited because they only train on a small fraction of human experience and knowledge. The opinion piece, which attracted minimal engagement, invites the community to share their views on whether AI displacement fears are being manufactured or are genuinely warranted.

0
ProgrammingDEV Community ·

How to Build Resilient Selenium Tests for Dynamic Single-Page Applications

Selenium test suites for dynamic single-page applications (SPAs) frequently suffer from flakiness due to asynchronous data updates and element re-rendering. Common errors such as StaleElementReferenceException and NoSuchElementException can destabilize CI pipelines and slow development teams. A recommended approach combines the Page Object Model with custom retry logic, allowing tests to re-locate elements that become stale after DOM updates. Smart, condition-based waits — rather than simple visibility checks — help ensure data has fully loaded before assertions are made. Together, these techniques improve test reliability and maintainability in production-grade Java and Selenium environments.

0
ProgrammingDEV Community ·

Thai AI Models Outperform Global Rivals on Local Tasks but Lag in Reasoning

A September 2026 analysis by Nokka on DEV Community examines where Thai-developed AI models hold advantages over global frontier models and where they fall short. Thai models perform better on tasks like handwriting recognition, Thai legal citation, Isan dialect speech, and culturally nuanced phrasing, largely because they were trained on locally relevant data. However, global models significantly outperform Thai counterparts in complex multi-step reasoning, coding, and broad general knowledge, partly due to their much larger parameter counts ranging into the hundreds of billions. The parameter gap reflects a structural economic constraint, as training large models requires tens of thousands of GPUs that small Thai teams cannot afford. The author concludes that the most practical approach is combining both: Thai models for language- and culture-specific tasks, and global models where raw capability is essential.

0
ProgrammingDEV Community ·

Web Cache Poisoning: How Attackers Exploit Cache Key Mismatches to Serve Malicious Content

Web cache poisoning is a security vulnerability that arises from a mismatch between how a cache identifies requests and how the origin server generates responses. Caches use a 'cache key' — often just the URL path — to decide whether a stored response can be reused, while origin servers may factor in additional request data such as headers or query parameters. An attacker can exploit this gap by sending a request with malicious input that influences the origin's response but is excluded from the cache key, causing that tainted response to be stored. Subsequent legitimate users requesting the same URL then receive the attacker-controlled response directly from the cache. Critically, the cache itself is not compromised — it behaves as designed, making the attack difficult to detect through standard cache monitoring.

0
ProgrammingHacker News ·

Interactive Atlas Maps Periodic Orbits in the Three-Body Problem

A new online resource at threebodyorbits.com presents a visual atlas of periodic solutions to the classical three-body problem in orbital mechanics. The three-body problem involves predicting the motion of three mutually gravitating objects, a challenge that has no general closed-form solution. The atlas catalogs specific periodic orbits — rare trajectories where the three bodies repeat their paths indefinitely. The project was shared on Hacker News, attracting attention from the science and mathematics community. It serves as both a research reference and an interactive tool for exploring these complex gravitational dynamics.

0
ProgrammingDEV Community ·

How AI-Powered Analytics Is Replacing Traditional Business Intelligence in 2026

Businesses have long relied on manual dashboards and periodic reports to interpret data, but this approach struggles with growing data volumes and slow insight delivery. AI-powered analytics replaces that pipeline by combining machine learning, natural language processing, and automation to analyze data and generate insights without manual intervention. Unlike traditional tools that only describe past events, AI analytics can explain why something happened, predict future outcomes, and recommend actions. A typical AI analytics system moves data through collection, processing, storage, and modeling stages before surfacing results as actionable business insights. The shift represents a fundamental change from analytics as a reporting function to analytics as an intelligent decision-making system.

0
ProgrammingDEV Community ·

Why 'Postgres for Everything' Breaks Down Under Concurrent Analytics Workloads

The popular practice of using PostgreSQL for all data workloads — including analytics — runs into fundamental performance limits once dashboards become concurrent. Adding a read replica, a common fix, does not resolve the core issue because replicas share the same row-oriented storage architecture as the primary database, making them equally inefficient for analytical queries. Postgres stores data in 8KB pages with per-row headers, meaning even a two-column dashboard query must read entire rows, a cost that compounds sharply under concurrent load. Industry analyses from MotherDuck and ClickHouse in 2026 documented aggregation queries degrading from 50ms to over five seconds — and eventually timing out — as row counts and concurrency scaled. Experts argue the real solution is not bigger hardware but adopting column-oriented storage purpose-built for analytics, rather than forcing a row store to perform work it was never designed to handle.

0
ProgrammingDEV Community ·

Why JSON.stringify Can Be a Security Risk and How to Fix It

Developer Dmitry Zakharov published a technical article on DEV Community on August 13 highlighting a subtle but significant security flaw in how JavaScript's JSON.stringify behaves. The piece argues that JSON.stringify does not always produce safe output, potentially exposing applications to vulnerabilities. Zakharov advocates for encoding data properly rather than relying solely on stringification. The article targets JavaScript and TypeScript developers building web applications who may be unaware of this risk. It is a 13-minute read aimed at helping developers write more secure code.

0
ProgrammingDEV Community ·

Octomind 0.52.0 Brings Workflow Calls Inside Sessions, Retiring stdin Workarounds

Octomind, an open-source AI agent tool developed by Muvon, released version 0.52.0 with a key change that allows users to invoke named workflows directly within an active session rather than dropping to a terminal. Previously, running a workflow mid-session required leaving the session context and piping input via stdin from the command line, breaking continuity with the agent's working state. The update also introduces detached background workflow execution, letting users continue working while a job runs and retrieve results in the session inbox later. Smaller fixes in the release include surfaced spending-stop status, corrected double-billing of tool descriptions, and cleaner compression failure messaging. The software is licensed under Apache-2.0 and is available on GitHub under the Muvon organization.

0
ProgrammingDEV Community ·

HN Reading Lists Can Be Mined as Skill Graphs for AI Agent Training

A Hacker News thread started by a Django-based financial engineering lead seeking book recommendations to bridge gaps in numerical methods, concurrency, and systems thinking attracted 48 points and 17 community responses. A developer and writer argues that such reading list threads are more than book suggestions — they implicitly encode prerequisite skill chains and capability boundaries within a domain. For AI agent builders, these community-curated sequences can be converted into structured training data by extracting entities, relationships, and capability mappings from the discussion. The author proposes a minimal extraction pipeline using the Anthropic API to parse threads into JSON-formatted skill dependency graphs. The core insight is that the order in which the community recommends books reveals the hidden curriculum separating competent engineers from exceptional ones — a structure directly applicable to training domain-aware agents.

0
ProgrammingDEV Community ·

Node.js Built-In Test Runner Now Rivals Jest and Vitest for Backend Projects

Node.js has included a built-in test runner since v18, which reached stable status in v20, but many developers continued defaulting to third-party frameworks out of habit. The runner now supports mocking, fake timers, watch mode, coverage output, and global setup hooks without requiring any additional dependencies. It also executes TypeScript files directly by stripping type annotations at runtime, though a separate type-checking step like tsc --noEmit is still needed in CI pipelines. Each test file runs in its own child process by default, providing file-level isolation out of the box. One key behavioral difference from Jest or Vitest is that subtests inside a bare test() block must be explicitly awaited, whereas using describe/it suites avoids this issue entirely.

0
ProgrammingDEV Community ·

Hidden Thai AI Datasets and Models on Hugging Face Worth Knowing About

A curated overview published on DEV Community in September 2026 highlights several underutilised Thai AI datasets and models available for free on Hugging Face. Among them are the OpenThaiGPT evaluation dataset, released under Apache 2.0 and reviewed by native Thai speakers, and the WangchanThaiInstruct multi-turn conversation dataset, which was synthetically generated to address the scarcity of Thai language training data. The Typhoon project offers a broader range of models than most practitioners realise, covering Isan speech recognition, Thai document extraction, Thai-English translation, and a small medical reasoning model. The author cautions that synthetic datasets can carry model biases, licenses vary and affect commercial use, and download counts on Hugging Face are a poor proxy for dataset quality. The practical recommendation is to start with an evaluation set to identify a model's weaknesses in Thai, then source training data specifically targeting those gaps.

0
ProgrammingDEV Community ·

Intern Builds Task Management REST API Using Node.js and Django

A developer shared insights from their internship at Valentius Kryptix, where they built a Task Management REST API to gain hands-on backend experience. The project involved designing API endpoints and implementing CRUD operations — create, read, update, and delete — for managing tasks. Both Node.js, a JavaScript-based server-side runtime, and Django, a Python web framework, were used to explore RESTful API development. The internship helped the developer understand how clients and servers communicate using standard HTTP methods such as GET, POST, PUT, and DELETE. Key takeaways included proper request and response handling, JSON data formatting, authentication concepts, and the importance of clear API design for security and scalability.

0
ProgrammingDEV Community ·

Namespaces Organize Code, Assemblies Package It: Key ASP.NET Distinction Explained

In ASP.NET development, namespaces and assemblies are often confused because they frequently share the same name, but they serve fundamentally different purposes. A namespace is a logical system for organizing types such as classes, interfaces, and enums, helping prevent naming conflicts without creating any physical file. An assembly, by contrast, is the compiled output of a .NET project — a physical DLL file that the runtime loads and executes. The two concepts are independent: a single assembly can contain multiple namespaces, and the same namespace can span across multiple assemblies. This distinction is especially critical when working with dependency injection and assembly scanning in larger ASP.NET applications.

← NewerPage 1444 of 3359Older →