SShortSingh.

Programming

0
ProgrammingDEV Community ·

Dev builds immersive Vedic tutorial system for karma-rebirth game Moksha in Vanilla JS

An indie developer building a spiritual game called Moksha has created a custom tutorial system called Guru-Diksha, designed to feel like a sacred initiation rather than a conventional game tutorial. Instead of tooltips or popups, each tutorial step presents a Sanskrit shloka from texts like the Bhagavad Gita or Yogavasishtha, displayed on a scripture-styled canvas card with a task and its deeper Vedic meaning. The entire system is built in Vanilla JavaScript and HTML5 Canvas with no external frameworks, and the 336-line TutorialManager module is fully decoupled from the game engine via dependency injection. Tutorial steps guide players through core mechanics such as movement and interacting with falling entities, each tied to a relevant verse. The design prioritises immersion by ensuring the tutorial feels native to the game's philosophical world rather than borrowed from generic game-development patterns.

0
ProgrammingDEV Community ·

What Is a VAT ID and Why Does It Matter for EU Business Trade

A VAT ID, also called a VAT number or VAT registration number, is a unique identifier issued by a national tax authority when a business registers for value-added tax. In the EU, it consists of a two-letter country prefix followed by a country-specific string, such as DE123456789, and appears on invoices and cross-border transactions. The number is distinct from a company registration number or a domestic tax number, each of which serves a different administrative purpose. For intra-EU business-to-business trade, both the supplier's and the buyer's VAT IDs typically appear on invoices, as their presence affects how VAT is applied to the transaction. When a valid buyer VAT ID is confirmed, sellers may avoid charging local VAT, with the buyer instead accounting for it through mechanisms such as zero-rated intra-Community supply or the reverse-charge system.

0
ProgrammingDEV Community ·

IIT Bhilai Researcher Cuts Anomaly Detection Runtime 12x Using GPU Acceleration

An M.Tech student at IIT Bhilai developed a GPU-accelerated pipeline for detecting anomalies in multivariate industrial time-series data as part of his 2021–2023 thesis. The research built on the MSCRED architecture, which uses convolutional and ConvLSTM layers to model relationships between multiple sensor signals across different time windows. The convolution-heavy encoder created a major CPU bottleneck, prompting the implementation of CUDA-based optimisations using im2col and GEMM workflows. By integrating these custom operations with PyTorch, encoder runtime dropped from 300 seconds on CPU to roughly 23.7 seconds on GPU — a speedup of approximately 12.68 times. The work demonstrates how low-level GPU programming techniques can significantly accelerate deep learning pipelines used in industrial anomaly detection.

0
ProgrammingDEV Community ·

Seven Security Controls Every Production MCP Server Should Have in Place

Model Context Protocol (MCP) servers can connect AI applications to databases, APIs, and internal systems, making security a critical concern before real-world deployment. A DEV Community article outlines seven essential controls, starting with robust authentication that validates credentials on the server side rather than relying solely on the client. Beyond authentication, the article stresses per-tool authorization, where each tool carries its own required permission and access is denied by default if no policy is defined. High-impact actions such as deploying releases or deleting environments are recommended to require additional safeguards like multi-factor authentication or a second approver. The guide also highlights input validation, tenant isolation, and audit logging as necessary layers for a secure production-grade MCP deployment.

0
ProgrammingDEV Community ·

Swift Protocols Explained: Define Behavior Contracts for Any Type

Swift protocols allow developers to define a set of required properties and methods that any conforming type must implement, without specifying how those requirements are fulfilled. Acting as a contract, a protocol ensures that diverse types — such as different struct-based characters in a game — can be treated uniformly by shared functions. This eliminates the need to write duplicate functions for every new type, since a single function accepting a protocol type works for all conforming types. For example, a Fighter protocol requiring name, speed, and travel methods lets Ninja, Samurai, and any future type be passed to the same sendToMission function. Conforming types are free to add their own extra methods beyond the protocol's minimum requirements, keeping code flexible and scalable.

0
ProgrammingDEV Community ·

Three publishers dominate 92 of the 100 fastest-growing Claude Code skills

Data captured on August 5 from the Claude Code skills catalog shows that 92 of the 100 fastest-growing skills by daily installs belong to just three publishers: the Lark suite, educator Matt Pocock, and developer Julius Brussee. The Lark suite alone accounts for 54 trending skills, adding over 14,000 installs in a single day, with individual skills growing at near-identical rates — a pattern consistent with bundled suite distribution rather than individual user selection. Matt Pocock's 31 trending skills added around 3,000 daily installs combined, with Google Trends data showing search interest in his name up 180% over the past month, suggesting developers adopt his entire repository in one step. Julius Brussee's seven 'caveman' skills each grew at 81–92 installs per day, following the same bloc pattern at a smaller scale. The analysis argues that install counts now reflect distribution strategy more than individual developer choice, urging users to consider how installs were acquired when evaluating a skill's popularity.

0
ProgrammingDEV Community ·

How Document Ingestion Shapes the Quality of Production RAG Pipelines

A technical guide published on DEV Community outlines best practices for building production-grade Retrieval-Augmented Generation (RAG) pipelines, focusing on the document ingestion stage. The article argues that retrieval quality is determined long before a user submits a query, starting the moment a document enters the system. It describes a multi-step pipeline covering parsing, cleaning, structure-aware chunking, and metadata extraction before any embeddings are generated. The author emphasizes that skipping or poorly executing these early steps creates noise that downstream components cannot fix, regardless of the embedding model or LLM used. This piece is the second in a series examining why many RAG systems underperform in production and how to address the root causes.

0
ProgrammingDEV Community ·

Dashboard Bug Showed Fictional 339ms Latency by Averaging Across All Regions

A monitoring platform discovered its latency dashboard had been displaying a misleading average of 339ms by blending response times from three geographic regions — Zurich, New York, and Singapore — into a single number. The underlying SQL query grouped checks only by time, never by region, meaning a 6ms Zurich reading and a 441ms Singapore reading were averaged together into a figure no real user ever experienced. The flaw went undetected because 339ms is a plausible, non-alarming latency figure that would pass casual review without raising concern. In reality, Zurich users were seeing excellent performance while Singapore users faced sluggish response times — two entirely different service realities obscured by one blended metric. The team noted the problem worsened as more monitoring regions were added, effectively making the dashboard less accurate the more thoroughly it was used.

0
ProgrammingDEV Community ·

Developer Builds Open-Source AI Coding Agent Entirely in Pure C#/.NET

A veteran C#/.NET developer with over 23 years of experience has built Litos, a minimal open-source AI coding agent written entirely in C#/.NET without any Python or TypeScript. The project is structured around three layers — the core agent loop, the tooling and LLM provider integrations, and a UI layer — keeping each concern cleanly separated. Litos supports multiple LLM providers including OpenAI, Anthropic, and Gemini, and can be operated via a desktop app, terminal, or even Telegram. The agent works by repeatedly querying the model, executing requested tool calls such as file edits or shell commands, and feeding results back until the model returns a final response. The project is still a work in progress but is publicly available on GitHub, with the desktop and Telegram experiences functional today.

0
ProgrammingDEV Community ·

Array.fromAsync: The One-Liner to Collect Async Iterable Results into an Array

JavaScript developers often use verbose for-await loops to collect values from async iterables like streams, generators, or database cursors into a plain array. The built-in Array.fromAsync method achieves the same result in a single awaited call, eliminating that boilerplate. Like Array.from, it accepts an optional mapping function, and will also await any promise returned by that mapper before proceeding. Unlike Promise.all, Array.fromAsync processes values sequentially — awaiting each item before pulling the next — making it well-suited for lazy sources such as paginated API generators. For concurrent fetching over a known array, Promise.all remains the appropriate choice.

0
ProgrammingDEV Community ·

Autonomous Web Pipeline Ran Flawlessly for 12 Hours While Silently Failing

A development team built a fully automated overnight website production pipeline that processes up to 40 projects per night with no human intervention, using staged steps for image preparation, production, and verification. One night, the publishing step failed silently — without throwing errors or corrupting exit codes — leaving nearly 11,000 newly generated site files undeployed. The external verification system still returned HTTP 200 responses and passed all checks, because the previous day's live version remained online and looked correct. All monitoring indicators showed green for 12 hours before the team discovered the failure. The key lesson drawn was that a zero exit code and passing health checks only confirm a system is running, not that it has actually delivered fresh output — true verification must come from a source independent of the production system itself.

0
ProgrammingDEV Community ·

Terraform Built-in Functions Simplify AWS Infrastructure Provisioning

Terraform's built-in functions enable engineers to transform values, validate inputs, and build dynamic AWS configurations without relying on external scripts. A technical walkthrough published on DEV Community covers seven key function categories, including string formatting, tag management, input validation, and sensitive data protection. Practical code examples demonstrate real-world use cases such as S3 bucket name sanitization, environment-based instance selection, and security group rule generation. The guide emphasizes that Terraform supports only built-in functions, with no option for custom function definitions. These functions are applicable across locals, variable validation blocks, resource arguments, and outputs to improve code efficiency and enforce infrastructure best practices.

0
ProgrammingDEV Community ·

Kubernetes Gateway API v1.6 elevates TCPRoute and UDPRoute to Standard channel

Kubernetes Gateway API v1.6.0, released on June 30, promotes TCPRoute and UDPRoute from Experimental to Standard channel under the v1 API version, placing them alongside existing Standard resources like HTTPRoute. The v1alpha2 versions of both route types are now deprecated and scheduled for removal in a future release, though they remain functional for now. These routes operate as raw Layer 4 resources, matching traffic solely on protocol and port without any HTTP-layer logic. In a separate structural change, experimental resources are being moved to a new API group, gateway.networking.x-k8s.io, to make their experimental status explicitly visible in manifests. Teams using v1alpha2 references in Helm charts, kustomizations, or GitOps pipelines should audit and migrate their manifests promptly to avoid future breakage.

0
ProgrammingDEV Community ·

7 Docker Compose Patterns DevOps Engineers Should Master for Production

Docker Compose has become a standard tool for managing multi-container applications, but configuring it correctly is critical for performance, security, and reliability. A multi-environment pattern allows engineers to maintain a single base compose file extended by environment-specific overrides for development and production, reducing duplication. The health check and dependency pattern ensures containers wait for dependent services to be fully ready before starting, preventing startup failures caused by uninitialized databases. Network segmentation patterns restrict inter-container communication so that sensitive services like databases are not unnecessarily exposed. Together, these patterns help teams build more robust, secure, and maintainable containerized application setups.

0
ProgrammingDEV Community ·

10 JavaScript Topics Frontend Engineers Should Master for Interviews

A developer preparing for frontend job interviews has compiled a list of 10 core JavaScript topics considered essential for demonstrating technical understanding. The list covers foundational concepts such as execution context, hoisting, closures, and the event loop, as well as practical skills like working with Promises and async/await. Additional topics include the 'this' keyword, recursion, array methods like map/filter/reduce, browser rendering, DOM event propagation, and memory management. Each topic is accompanied by code examples and links to resources from MDN, javascript.info, and other references. The guide is aimed at helping developers systematically prepare for technical interviews by reinforcing core JavaScript knowledge.

0
ProgrammingDEV Community ·

NockIt sends real-time push alerts from AI agents and scripts to your phone

A developer has released NockIt, a free and open-source notification utility designed to eliminate the need to manually monitor long-running AI agents or background scripts in the terminal. The tool hooks into local or remote execution pipelines and delivers real-time push alerts to a phone or desktop when key events occur, such as task completions, script failures, or prompts requiring human input. NockIt is powered by ntfy, a lightweight pub/sub messaging service, and requires minimal code to integrate into existing workflows. It can be set up with a single command via Node.js, making it accessible to developers without complex configuration. The project is publicly available at nockit.uk, and the creator is actively seeking community feedback to improve the tool.

0
ProgrammingDEV Community ·

Developer reveals three AT Protocol quirks that broke his Bluesky post queue

A developer building a Bluesky post queue bot encountered three underdocumented AT Protocol behaviors that caused failures only discovered through CI error logs. The platform enforces a rolling 1,666-operations-per-hour rate limit rather than a daily reset, meaning burst-posting from a backlog can trigger throttling unexpectedly. Image uploads and post creation are separate API calls, and a failed post after a successful blob upload leaves orphaned files with no built-in cleanup method. Additionally, the createdAt timestamp in posts is client-controlled, so passing a stale queue-entry time caused posts to appear hours or days old in followers' timelines. The developer resolved all three issues by maintaining a JSONL ledger that tracks rolling create counts, caches blob references, and always uses current wall-clock time when publishing.

0
ProgrammingDEV Community ·

OpenCost Offers Vendor-Neutral Kubernetes Cost Allocation Down to Workload Level

OpenCost is an open-source, CNCF Incubating project that allocates Kubernetes spending to specific namespaces, workloads, and teams — details that standard cloud invoices do not provide. The tool calculates workload cost using the maximum of requested versus actual resource usage, meaning a pod reserving capacity counts as a real cost even if it consumes little. Idle cluster cost — the gap between total node spend and allocated workload costs — is tracked separately, giving teams visibility into unused headroom they are still paying for. Shared infrastructure costs can be distributed across tenants uniformly, proportionally by consumption, or via a custom metric such as network egress. OpenCost installs via Helm alongside an existing Prometheus setup and exposes both an API and a UI, with a lightweight Prometheus-free mode also available.

0
ProgrammingDEV Community ·

Practical Testing Habits That Prevent Costly Production Bugs

A software developer writing for DEV Community shares testing strategies focused on maximizing return with minimal effort, drawing from a personal experience of a payment bug reaching production. The core advice is to prioritize tests for high-impact areas like authentication, pricing logic, and database-writing endpoints rather than chasing full code coverage. The article recommends balancing unit tests for isolated logic with a small number of integration tests for critical flows, while limiting slow and brittle end-to-end tests. Writing readable tests with descriptive names and reusable factory functions is emphasized to keep the test suite maintainable and easy to expand. Automating test runs via pre-commit hooks or CI pipelines, along with writing regression tests whenever a bug is found, are highlighted as habits that make testing a seamless part of the development workflow.

0
ProgrammingDEV Community ·

OpenCode Surpasses Claude Code on GitHub Stars With Model-Agnostic Terminal Agent

OpenCode is an open-source AI coding agent built in Go by the SST team, supporting over 75 LLM providers including Claude, GPT, Google, and local models via Ollama. By mid-2026, it had surpassed Claude Code with over 160,000 GitHub stars and was being used by more than 7.5 million developers monthly. Unlike Claude Code, OpenCode allows users to switch models mid-session without restarting and charges no software subscription fee, instead letting users pay model providers directly. The tool runs across terminal, desktop, and IDE environments through a client-server architecture, and offers optional plans starting as low as $10 per month covering several open models. However, in January 2026, Anthropic changed its OAuth policy to block third-party apps from authenticating via Claude.ai accounts, which disrupted OpenCode users who had relied on their Claude Pro credentials for access.

← NewerPage 33 of 1009Older →