SShortSingh.

Programming

0
ProgrammingDEV Community ·

WKafka Lets You Stream PDF and ZIP Files Through Kafka Without Cloud Storage

WKafka, an open-source Python library, natively supports sending binary files such as PDFs and ZIPs directly through Apache Kafka pipelines using a built-in 'file' format serializer. The tool preserves original filenames and extensions, addressing a common pain point when converting files to raw bytes. Developers can produce and consume files with just a few lines of code, eliminating the need to provision S3 or MinIO buckets for small file transfers. The library has been tested against real Apache Kafka clusters and is compatible with Python versions 3.9 through 3.14, including strict mypy type checking. It is available on both GitHub and PyPI as part of the ongoing WKafka technical series.

0
ProgrammingDEV Community ·

Go Goroutines vs Java 21 Virtual Threads: How They Compare on Memory and Speed

Go's goroutines and Java 21's virtual threads both enable launching hundreds of thousands of concurrent tasks without exhausting CPU or memory, but they achieve this through fundamentally different designs. Go uses an M:N scheduler (the G-M-P model) where goroutines start with a 2KB dynamic stack, allowing 50,000 goroutines to run in roughly 160MB of RAM. Java 21 virtual threads, introduced via Project Loom, store stack frames as heap objects and mount them onto carrier threads only when executing, consuming around 195MB for the same workload — while older Java 17 platform threads crashed at just 4,200 threads. A key behavioral difference is preemption: Go forcibly interrupts goroutines running longer than 10ms via OS signals, whereas Java virtual threads are cooperative and can be monopolized by tight CPU loops. In throughput benchmarks, both runtimes performed nearly identically, with Go at roughly 48,200 requests per second and Java 21 close behind at 46,800.

0
ProgrammingDEV Community ·

Silent failures: three bugs that returned success but did nothing

A developer building a business verification API encountered three consecutive bugs that all reported success while silently failing to function. A South Korean government API returned HTTP 200 with empty results when given a wrong parameter value, meaning it would have falsely confirmed no sanctions for every company queried. A scheduled Cloud Run job displayed a green checkmark each time it ran, but a one-line path comparison error on Linux prevented the actual code from ever executing. A third bug caused curl in Git Bash to mangle Korean UTF-8 characters in URLs, returning zero search results and nearly triggering a deep investigation into the wrong part of the system. The incidents highlight a costly and underappreciated failure mode: errors that look like success, spanning API design, deployment platforms, and developer tooling.

0
ProgrammingHacker News ·

Research Explores Metacognition as a Bridge Between Fast and Slow AI Thinking

A research paper published on arXiv examines the role of metacognition in artificial intelligence systems. The study draws on the dual-process theory popularized by Daniel Kahneman, which distinguishes between fast, intuitive thinking and slow, deliberate reasoning. Researchers investigate how metacognitive mechanisms could help AI systems better regulate and switch between these two modes of processing. The work aims to improve AI decision-making by enabling systems to reflect on and monitor their own cognitive processes.

0
ProgrammingDEV Community ·

Fortinet Patches CVE-2026-26084 Flaw Letting Unauthenticated Users Access FortiSandbox Data

Fortinet disclosed CVE-2026-26084 on September 8, 2026, a high-severity information disclosure vulnerability rated 8.9 affecting multiple versions of FortiSandbox, FortiSandbox Cloud, and FortiSandbox PaaS. The flaw, classified as CWE-284 (improper access control), allows unauthenticated attackers to send crafted HTTP requests and retrieve sensitive device data such as configuration, sample metadata, and analysis logs. The vulnerability stems from the web interface failing to validate requests against an authorized session before returning data, with exposure also depending on how NAT rules are configured at the network edge. Fortinet's internal product security team discovered the flaw, and no exploitation in the wild has been reported. Users are advised to upgrade to FortiSandbox 4.4.9 or 5.0.6 and ensure management interfaces are not reachable from untrusted networks.

0
ProgrammingDEV Community ·

Building a Snowflake AI Agent Revealed Flaws in Both the Code and Its Evaluation

A developer working with a Snowflake Cortex Agent discovered that poor evaluation scores stemmed not only from agent errors but also from flawed tests and misleading metrics. An object the agent failed to find actually existed in the metadata, but required fixes at two levels: updating the agent's fallback instructions and clarifying the semantic view's SQL-generation guidance. Further investigation revealed that a missing tool-call counter was defaulting to zero, making absent telemetry appear as measured inactivity rather than a data gap. The developer maintained three parallel concerns simultaneously — the agent itself, the evidence of its behavior, and the tests used to judge it. The experience highlighted that misdiagnosing whether a failure lies in the data, the tool, or the agent's prompting leads to entirely different and potentially incorrect fixes.

0
ProgrammingDEV Community ·

How Async Job Queues and Stateful UX Can Fix Broken Social Media Import Pipelines

A development team lost 40,000 Instagram posts after a silent rate-limit error caused their synchronous import pipeline to fail without alerting users. The core problem is that most content import features rely on direct HTTP requests, which are vulnerable to timeouts, API throttling, and partial failures that leave databases with corrupted or incomplete records. The proposed fix involves decoupling the browser session from data ingestion by treating every import as an asynchronous, resumable background task managed by a job queue. A persistent UI drawer subscribes to real-time status updates via WebSockets or Redis-backed polling, so progress is preserved even if the network drops or an external API throttles requests. When slowdowns occur, users are shown an informative banner with an estimated completion time rather than a frozen spinner or a blank screen.

0
ProgrammingDEV Community ·

Developer Series Breaks Down How CPUs Work, From Registers to Assembly

A developer named Wesley Bertipaglia has published the fourth installment of a nine-part series on computers. The post focuses on how central processing units (CPUs) function at a fundamental level. Topics covered include instruction sets, registers, the arithmetic logic unit (ALU), the control unit, and the fetch-decode-execute cycle. The article also provides an introductory look at assembly language to illustrate how processors run code. The full post is available on Bertipaglia's personal blog.

0
ProgrammingDEV Community ·

Tool Detects Duplicate Code by Running Functions, Not Reading Them

A developer tool called 'assay' identifies duplicate functions by executing them against a fixed set of inputs and comparing output vectors, rather than scanning source text or names. Two functions are flagged as potential duplicates only when their outcome sequences match exactly, turning discovery into a hash-bucket operation instead of a manual or quadratic comparison. The approach uncovered a real-world pair — 'is_wordy' and '_word' — that no name-based or textual tool would have linked, differing by just one character predicate. To avoid false positives, the tool guards against trivially agreeing functions, such as those that always raise the same error, return a constant, or merely copy their input. The tool is available for both Python and JavaScript via 'pip install assay-checks' and 'npm install -g assay-checks' respectively.

0
ProgrammingDEV Community ·

Anthropic's Claude Skills: A Step-by-Step Guide to Building Custom AI Expertise

Developers can now create custom Claude Skills using a structured SKILL.md file that tells Claude when and how to apply specialized behavior. Each skill lives in its own named folder containing a YAML frontmatter header with a name and description, followed by Markdown instructions covering usage, standards, and output format. Installation differs by platform: Claude.ai users upload a zipped folder, while Claude Code users save the skill directory locally under a designated path. Optional scripts can be added for deterministic operations, and large reference material should be stored in separate linked files to optimize loading. Testing involves both a direct invocation and a comparison session with the skill disabled to verify it meaningfully improves Claude's responses.

0
ProgrammingDEV Community ·

How to Fact-Check AI Summaries by Treating Them as Claims, Not Prose

AI-generated summaries can read smoothly while containing subtle factual distortions, such as conflating announcement dates with release dates or stripping conditions from statistics. An editorial workflow proposed in this piece advises reviewers to break AI drafts into discrete, checkable claims rather than proofreading them as flowing paragraphs. Each claim should be matched to a supporting passage from the original source, with attribution preserved and context verified, not just text matched. Editors are advised to keep factual statements, interpretive comments, and unresolved questions in separate sections of a draft to make the review process more concrete. The approach does not guarantee error-free output, but aims to create a visible decision trail documenting what was verified, what remains uncertain, and whether a draft was approved or held.

0
ProgrammingHacker News ·

Microsoft quietly removes Copilot+ branding from new Surface laptops

Microsoft has quietly dropped the Copilot+ branding from its latest lineup of Surface laptops. A Microsoft Surface CVP confirmed that the new devices still meet the hardware requirements previously associated with the Copilot+ label. The decision appears to distance the company from branding that had become controversial among users and critics. The move suggests Microsoft may be rethinking how it markets its AI-focused hardware features going forward.

0
ProgrammingDEV Community ·

Developer Insight: Simple Code Often Outperforms Clever Solutions

A developer has shared a key lesson learned from their coding experience: simplicity in code is frequently more effective than complexity. The insight highlights that overly clever solutions can become a liability when revisiting code even a short time later. If a programmer struggles to explain their own code within a week of writing it, that is a likely sign the solution was unnecessarily complicated. The observation underscores the broader software development principle that readable, straightforward code tends to be more maintainable in the long run.

0
ProgrammingDEV Community ·

Huawei Cloud Recommends Single Landing Zone Architecture for Enterprise Multi-Project Accounts

Huawei Cloud has outlined a best practice for enterprises managing multiple project accounts on its cloud platform, recommending a single, centralized Landing Zone governed by a dedicated Management Account rather than separate landing zones per project. The approach decouples financial billing from security and governance, allowing each Project Master Account to retain independent billing, invoicing, and contractual discounts while joining a unified organizational structure. A dedicated Audit Account is created under a Security OU to centralize log aggregation, compliance monitoring, and threat detection across all accounts using services such as CTS, Config, and SecMaster. Existing Project Master Accounts are invited into the organization and placed under a Workloads OU without disrupting their financial relationships. The guidance explicitly warns against letting individual Project Master Accounts independently deploy their own Landing Zones, as this fragments security baselines and scatters audit logs.

0
ProgrammingDEV Community ·

3,336 Verdaccio Private npm Registries Exposed Online, Study Finds

A ZoomEye search using the query title="Verdaccio" has identified 3,336 publicly indexed hosts running Verdaccio, a lightweight private npm registry used by development teams to host internal packages and cache public dependencies. Researchers warn that exposed registries can leak sensitive internal packages, which often contain endpoint names, credentials, and configuration data committed before secret-scanning tools were in place. Write access to such registries poses a supply chain risk, as a malicious actor could publish tampered versions of packages that other teams depend on. Many exposures stem from misconfigured deployments, default container port settings, or abandoned registries left running after projects ended. Security experts recommend that organisations audit external accessibility, review token scopes, check for plaintext uplink credentials, and ensure registries are updated with the latest security patches.

0
ProgrammingHacker News ·

Nissan Unveils Third-Generation e-POWER Hybrid Powertrain Technology

Nissan has introduced its third-generation e-POWER powertrain, the latest evolution of its hybrid drive system technology. The e-POWER system uses a petrol engine solely as a generator to charge a battery, which then powers an electric motor driving the wheels. This third generation represents continued refinement of the technology Nissan has developed over previous iterations. The announcement was shared on Nissan's global innovation and technology archive page, highlighting the company's ongoing commitment to electrified drivetrains.

0
ProgrammingDEV Community ·

Key Software Design Patterns Explained: Factory, Singleton, Observer, and More

Design patterns are reusable, standardized solutions to recurring problems in software development, grouped into creational, structural, and behavioral categories. The Factory pattern separates object creation logic from usage, while the Singleton pattern ensures only one instance of a class exists for managing shared resources. The Observer pattern enables automatic updates to dependent objects when a subject's state changes, making it useful in reactive UI systems. The Decorator pattern lets developers add behaviors to individual objects dynamically without altering their core class. Other notable patterns include Facade, Strategy, Command, and Builder, each addressing distinct design challenges to improve code maintainability and scalability.

0
ProgrammingDEV Community ·

Agent Memory Handoff Cuts Active Context by 98.6% While Preserving Recall

A memory handoff system for AI agents replaces large conversation windows with compact summaries while storing the original text externally for later retrieval. Across 10,241 completed runs, the system reduced the replaced portion of active context from over 1.1 billion characters to roughly 15.4 million — a 98.65% character reduction. Retained segments are classified as keep, compress, or drop, allowing exact source text to remain accessible outside the prompt without burdening the model on every turn. A controlled synthetic test showed that a model using handoff-plus-recall answered all 12 questions correctly, matching full-history performance while using significantly fewer input tokens. The authors caution that this is a limited controlled result and that retrieval calls were made by the test harness, not autonomously by an agent.

0
ProgrammingDEV Community ·

Cisco Patches Critical Input Validation Flaw in Secure Email Gateway Products

Cisco released fixes on September 14, 2026, for five vulnerabilities in its email security products, including CVE-2026-76442, an input validation flaw scored 7.5 affecting Cisco Secure Email Gateway and Cisco Secure Email and Web Manager. The vulnerability allows a remote attacker to submit unbounded numeric input, potentially exhausting system resources and causing denial of service. India's CERT-In republished the advisory on September 17, 2026, as CIVN-2026-0461 with a critical overall rating. Affected versions include 15.5 and earlier, as well as 16.0 and 16.5, regardless of device configuration. Cisco offers no workaround, and the only remediation is applying the vendor update via a CLI-initiated install that reboots the appliance upon completion.

← NewerPage 853 of 3173Older →