SShortSingh.

Programming

0
ProgrammingDEV Community ·

Data from 2,066 habits shows why missing twice matters most — but recovery is always possible

A developer analysed 2,066 real habits tracked by 1,006 users on the app Loggd to test James Clear's popular 'never miss twice' rule from Atomic Habits. The data shows that after one missed day, people return to a habit 80.9% of the time, but that rate drops sharply by about 10 percentage points after a second consecutive miss — the steepest single-day decline in the dataset. Beyond day two, the return rate continues to fall steadily, reaching 42.2% at seven days and 26.7% at fourteen, with no dramatic cliff at any point. The findings confirm that the second missed day is the most critical decision point, lending real-world support to the rule's core logic. However, the data also challenges the all-or-nothing framing often attached to the rule, since even after two weeks of missed days, roughly one in four habits is eventually resumed.

0
ProgrammingDEV Community ·

Developers Build AI Tool Using YOLOv10 to Detect Drug Interactions and Expiry Dates

A tutorial published on DEV Community outlines how to build an AI-powered medicine safety checker using YOLOv10 object detection, Tesseract OCR, and a local SQLite database. The system works by capturing an image of a medicine box, detecting it via YOLOv10, and using OpenCV preprocessing to improve text readability before passing it to Tesseract OCR. Extracted data such as drug name and expiration date are then cross-referenced against a pharmacopeia database to flag expired medicines or dangerous drug-to-drug interactions. YOLOv10's NMS-free architecture is highlighted as a key advantage, enabling faster inference suitable for edge devices and smartphones. The guide is aimed at developers looking to prototype a real-time, on-device medication safety tool using open-source components.

0
ProgrammingHacker News ·

Researchers Propose Recurrent Looped Transformer Architecture for AI Models

A new neural network design called the Recurrent Looped Transformer has been introduced by researchers. The architecture explores combining recurrent processing with transformer models by looping computations through the same layers repeatedly. This approach aims to improve efficiency and reasoning depth without significantly increasing model parameters. The work has been shared publicly via a dedicated research page and is drawing early attention in the AI research community.

0
ProgrammingDEV Community ·

Advanced Server-Side Caching Patterns for Next.js 14 Production Apps

A technical guide published on tamiz.pro explores advanced server-side caching strategies in Next.js 14 for developers building high-throughput applications. The article argues that Next.js App Router's default caching flags — force-cache and no-store — are too binary to handle real-time, user-specific data needs. It introduces fine-grained memoization using Next.js's unstable_cache utility, which caches individual data slices rather than entire HTTP responses. This approach helps avoid common pitfalls like N+1 database query problems and stale data delivery in B2B dashboards or SaaS platforms. The guide also covers hybrid rendering strategies and explicit cache lifetime management to prevent memory leaks within the Node.js runtime.

0
ProgrammingDEV Community ·

How to Keep Microservices Loosely Coupled Without Over-Engineering Them

A software engineer argues that the real goal of loose coupling is not eliminating dependencies but ensuring that services only change together when it makes sense. Stable contracts between services — such as defined data types and versioned API payloads — prevent consumers from depending on a producer's internal implementation details. Async messaging via events can decouple service availability, though it introduces trade-offs like the need for idempotency and more complex debugging. Shared databases are identified as the most common source of hidden coupling, preventing independent deployment, scaling, and ownership. The author cautions against over-engineering, noting that a well-structured monolith or a simple function call is often preferable to unnecessary abstractions and message brokers.

0
ProgrammingDEV Community ·

Kamal 2 Offers Developers a Low-Cost Alternative to PaaS for Laravel Deployments

Kamal 2, a deployment tool built by 37signals, enables developers to deploy containerized Laravel applications to any virtual private server without complex orchestration platforms like Kubernetes. The tool uses an SSH-based workflow and supports zero-downtime deployments on providers such as Hetzner or DigitalOcean. As PaaS costs can escalate sharply with application growth, Kamal 2 positions itself as a cost-effective middle ground between managed platforms and manual server configuration. A production setup requires containerizing the Laravel app via Docker and configuring a deploy.yml file that defines servers, container registries, and environment variables. Sensitive credentials are managed securely by having Kamal read from a local .env file and inject secrets directly into the running container at deployment time.

0
ProgrammingDEV Community ·

EU Digital Sovereignty: Why European Firms Must Rethink Cloud Infrastructure Now

European businesses increasingly rely on cloud infrastructure hosted by US-based providers, meaning their data falls under US legal jurisdiction regardless of where servers are physically located. The US CLOUD Act allows American authorities to compel US cloud providers to hand over data, even if that data is stored in European data centres, posing serious compliance risks for EU companies. IT professionals argue that true digital sovereignty requires owning and controlling hardware directly, rather than depending on foreign hyperscalers. Self-hosting alternatives such as Nextcloud on locally managed servers offer greater independence, but come with significant operational challenges around maintenance, redundancy, and scalability. The article calls on European decision-makers to move beyond treating digital sovereignty as political rhetoric and treat it as a concrete architectural priority.

0
ProgrammingDEV Community ·

How to Rotate Production API Keys in Node.js CI/CD Without Downtime

Rotating production API keys in CI/CD pipelines requires a structured approach to avoid service disruptions and security risks. The recommended method involves issuing two narrowly scoped keys, activating the new one explicitly, and revoking the old key only after logs confirm a successful cutover. A key control plane should map credentials to a specific service identity and billing owner, preventing attribution problems common with shared CI secrets. Developers are advised to think across four stages — issue, distribute, observe, and retire — ensuring each key carries the least privilege necessary for its task. When API providers do not support overlapping credentials, a manual change window is acceptable only as a temporary constraint, not a long-term rotation strategy.

0
ProgrammingDEV Community ·

Researcher Finds OpenSea Undocumented Server Leaking API Keys and Usernames

A security researcher discovered an undocumented MCP server at mcp.opensea.io/mcp while manually exploring OpenSea's internal tooling. Two exposed endpoints allowed anyone to generate a valid API key without authentication and then resolve any Ethereum wallet address linked to an OpenSea profile to its owner's username. The flaw raised serious privacy concerns, as pseudonymous wallet holders could potentially be identified and targeted through phishing or doxxing. Sensitive tools on the same server, such as order cancellation, were properly protected behind a wallet JWT, suggesting the exposure was limited to the discovery layer rather than a systemic architectural failure. The researcher reported the issue to OpenSea's Bugcrowd bug bounty program, where it currently awaits official severity triage.

0
ProgrammingHacker News ·

AgentsDock Launches IDE Built Specifically for Agentic AI Research

AgentsDock is a newly introduced integrated development environment designed specifically for agentic AI research. The platform aims to provide researchers and developers with specialized tools tailored to building and experimenting with autonomous AI agents. It was shared on Hacker News, where it garnered initial community attention. The project is accessible via its official website at agentsdock.net. Details about its full feature set and development team remain limited at this stage.

0
ProgrammingHacker News ·

Atlantic hurricane season hits 60-year low with no storms by September 12

The 2025 Atlantic hurricane season has set an unusual record by producing no hurricanes through September 12, breaking a streak that dates back over 60 years. This marks one of the quietest starts to a hurricane season in modern meteorological records. The absence of storms is particularly notable given that September is historically the most active month of the Atlantic hurricane season. Meteorologists and weather trackers have flagged the anomaly as statistically significant, though the season still has weeks remaining. AccuWeather reported the milestone, noting it defies earlier forecasts that had predicted an active season.

0
ProgrammingHacker News ·

TailTalk Brings AppleTalk Networking Back via Rust and Tokio

A developer has released TailTalk, an open-source project that reimplements the classic AppleTalk networking protocol as a modern asynchronous stack. The project is built using Rust and the Tokio asynchronous runtime, running entirely in user space rather than at the kernel level. TailTalk is hosted on GitHub under the FeralFirmware account and appears to be in early stages, having attracted modest attention on Hacker News. The project aims to modernize a protocol originally developed by Apple in the 1980s for local area networking between Apple devices.

0
ProgrammingDEV Community ·

Adding LLM Descriptions to 1,245 Database Tables Made Search Retrieval Worse

A developer catalogued a 1,245-object database schema by generating LLM descriptions for every table, expecting improved search retrieval, but instead saw recall drop significantly. The problem stemmed from BM25 scoring mechanics: when a term like 'contact' appears in over 1,000 of 1,245 documents, its inverse document frequency collapses to near zero, stripping it of ranking power. Compounding this, BM25's length normalisation penalised the most important tables — which naturally have the most columns — pushing them further down rankings. Attempts to fix this by down-weighting prose fields helped marginally but sacrificed retrieval of rare, valuable terms like obscure view names. The author's solution was to maintain three separate BM25 indexes — one for identifiers, one for prose descriptions, and one combined — then fuse their rankings using reciprocal rank fusion.

0
ProgrammingDEV Community ·

Study finds all major text-to-SQL benchmarks ignore role-based access control

A new research paper titled 'Benchmarking Text-to-SQL under Role-Based Access Control' by Yang Fei and colleagues reveals that widely used benchmarks like Spider, BIRD, and LiveSQLBench evaluate AI systems without any user permission constraints. The researchers built a dataset spanning 53 databases, 399 tables, and over 21,500 role-annotated query instances with access policies defined at the individual column level. Testing existing text-to-SQL systems against this dataset showed significant performance degradation, with many generating SQL queries that are technically correct but violate access control rules — a category the paper terms 'RBAC-rejected' queries. The core problem identified is that standard AI pipelines apply database access controls only at query execution, meaning restricted tables and columns are still visible to the model during SQL generation. The paper argues that access control must be enforced earlier, at the schema-selection stage, so that restricted objects are never presented to the model at all.

0
ProgrammingDEV Community ·

How to Audit CLAUDE.md Files Using Evidence-Based Classification

Developers using Claude Code often let their CLAUDE.md project instruction files grow cluttered with outdated, temporary, or unverified rules, which can mislead AI-assisted coding workflows. A structured audit method recommends classifying every line in the file under one of six labels — such as stable fact, verified command, boundary, or obsolete — based on actual repository evidence. Each instruction should pass a two-part test: it must remain true across different tasks and be independently verifiable by another contributor. Vague directives should be replaced with specific, path-linked, and prerequisite-aware guidance that has a clear failure mode if something changes. The goal is a leaner, testable file that separates permanent project knowledge from task-specific context, which belongs in a separate task brief.

0
ProgrammingDEV Community ·

YINI Syntax Highlighting Extension Hits v1.0.0 on VS Code Marketplace

The official YINI Syntax Highlighting extension for Visual Studio Code has reached version 1.0.0 and is now publicly available on the Visual Studio Marketplace. Published by yini-lang, the extension targets YINI Specification 1.0.0 RC 6 and brings syntax highlighting support for .yini configuration files within VS Code. It covers a range of syntax elements including sections, keys, values, strings, numbers, comments, lists, objects, and directives. Developers can install it directly from VS Code by searching for 'YINI Syntax Highlighting' in the extensions panel. The release is described as one part of the broader YINI ecosystem, aimed at making .yini files easier to read and work with during everyday development.

0
ProgrammingDEV Community ·

Decorator Pattern: How to Add Features to Objects Without Subclass Sprawl

The Decorator is a structural design pattern from the Gang of Four (GoF) catalog that lets developers add behavior to individual objects dynamically without modifying their source code or creating excessive subclasses. It works by wrapping the original object in additional layers that each contribute a single, focused responsibility, keeping code clean and modular. A DEV Community article explains the pattern using a Java example involving graphical components like buttons, borders, and shadows. The abstract decorator holds a reference to a base Component interface and calls the original behavior before appending new functionality, enabling runtime composition of behaviors. The pattern is recommended when inheritance feels too rigid and when multiple behavior combinations would otherwise require an unmanageable number of subclasses.

0
ProgrammingDEV Community ·

JQuickCurl XML Mode Lets Developers Manage API Configs Without Touching Java Code

JQuickCurl's XML configuration mode allows developers to store all API definitions in a separate XML file, keeping business logic free of annotations or HTTP-related imports. Each API request is declared in the XML catalog with a name and return type, and a factory class binds these entries to matching Java interface methods at runtime. Dynamic values can be injected into curl commands using #{...} placeholder syntax, with method parameters mapped via the @Param annotation from the XML module. Crucially, endpoint behavior can be changed — such as adding headers or switching providers — by editing only the XML file, with no need to recompile or modify Java code. This declarative separation of contract and implementation is the core design goal of JQuickCurl's XML mode.

0
ProgrammingDEV Community ·

Missing Row-Level Security Quietly Became One of the Biggest Database Breach Causes

Failing to enable Row-Level Security (RLS) on database tables has emerged as a leading cause of data breaches in 2025-2026, with encryption receiving far more attention than this more critical access-control gap. A May 2025 vulnerability (CVE-2025-48757) exposed data from 303 endpoints across 170 apps built with the AI tool Lovable, because Supabase RLS was never switched on. Security researchers have also identified hundreds to thousands of Supabase instances globally that can be queried using only a public anonymous key and a basic curl request. The problem is not new or platform-specific — a similar Firebase misconfiguration previously leaked sensitive data belonging to over 1.8 million users across more than 900 apps in health, finance, and education. Supabase has since enabled RLS by default on new tables, but experts warn the risk remains highest during database migrations, when access-control logic must be manually rebuilt from scratch under time pressure.

0
ProgrammingDEV Community ·

How to Build a Privacy-First Freelance Rate Calculator Using Plain HTML and JS

A tutorial published on DEV Community outlines how freelancers can build a dependency-free, browser-based hourly rate calculator using plain HTML and JavaScript. The guide argues that the common method of dividing desired income by working hours is flawed, as it ignores unbillable time, operating costs, and financial uncertainty. The proposed tool makes all assumptions transparent by displaying intermediate values such as billable hours, required monthly revenue, and contingency amounts alongside the final rate. Built as a static page, the calculator requires no server, framework, or user account, keeping sensitive financial inputs entirely within the browser. The article also recommends separating business logic from display code to make the calculator easier to test, extend, and adapt for related workflows like quotes or invoicing.

← NewerPage 1428 of 3357Older →