SShortSingh.

Programming

0
ProgrammingHacker News ·

pkgsrc: The Cross-Platform Package Manager Worth Knowing About

pkgsrc is a cross-platform package management system originally developed by the NetBSD project. It allows users to install and manage software across a wide range of operating systems, not just BSD variants. The system is valued for its portability and consistency across different Unix-like environments. A 2021 blog post resurfaced on Hacker News highlighting its practical advantages for developers and system administrators. Despite limited discussion, the post drew attention to pkgsrc as an underappreciated tool in the open-source ecosystem.

0
ProgrammingDEV Community ·

Developer Launches SeedSQL to Auto-Generate Relational SQL Test Data with Key Integrity

A developer has built SeedSQL, a free web tool designed to simplify the creation of realistic mock data for complex relational database schemas. The tool addresses common pain points such as foreign key mismatches, format errors, and the time-consuming task of writing manual seed scripts. SeedSQL automatically maps parent-child table dependencies, ensuring referential integrity across linked tables like users, orders, and payments. Users can export generated data as SQL insert scripts or CSV files compatible with PostgreSQL and MySQL. The free tier supports up to 1,000 rows and includes localization features for country-specific data formats.

0
ProgrammingDEV Community ·

AI Agents Can Help Automate Shopify, But Production Failures Are Costly

A developer and e-commerce consultant shares hard-won lessons from deploying AI agents on Shopify, warning that real-world results often fall short of the marketing promise. One client spent $5,000 in LLM credits on a product description agent that repeatedly hallucinated features unrelated to their store. In a separate case, an inventory automation agent misread Shopify's API and accidentally zeroed out stock across entire product categories. Customer service bots built with frameworks like CrewAI have also been observed entering endless clarification loops, burning API costs while failing to resolve basic refund requests. The author concludes that AI works best for repetitive, low-stakes tasks like drafting bulk product descriptions, but requires strict guardrails, human review, and robust error-handling before it can be trusted in production.

0
ProgrammingDEV Community ·

Five Common Data Leakage Traps That Make ML Models Look Better Than They Are

Data leakage is one of the most frequent reasons machine learning results appear stronger than they actually are, yet few practitioners check for it systematically. The five main culprits include duplicate or near-duplicate rows shared across training and test sets, temporal look-ahead leakage from random splits on time-series data, and features that inadvertently encode the target variable. A real-world demonstration using the EEG Eye State dataset showed a model's AUC score collapsing from 0.971 to 0.546 simply by switching from a random split to a time-respecting one. To address this, the author developed two open-source Python tools — LeakHound, which detects all five leak types and reports honest versus inflated scores, and safesplit, which prevents leakage by enabling group-aware, time-aware, and sequence-aware data splitting.

0
ProgrammingDEV Community ·

Why AI Agent Reports Are Not Proof: The Case for Independent Artifact Verification

A software engineering post argues that session reports generated by AI agents are self-descriptions, not independently verifiable evidence. The author contends that approving a report — even with multiple reviewers — only means one observation has been read multiple times, not independently confirmed. The post cites a real example where a test suite was reported stable and approved twice, yet a fresh rerun against the actual files on disk revealed two failures in sixteen runs. The recommended practice is to check the exact worktree, read the actual diff, run the declared command, and preserve its output for others to inspect. The core principle is that a report serves as a map to the artifact, not a substitute for re-running and directly observing it.

0
ProgrammingDEV Community ·

Dev Builds 5 Vanilla JS Browser Games, Documents the Bugs That Taught Him Most

A developer created a free browser game center hosted on GitHub Pages using only vanilla JavaScript, HTML, and a CDN-loaded Three.js library — no frameworks, no build tools, and no backend. The project was designed so anyone, including children on school laptops, could play without creating accounts or installing software. To comply with ad network policies, three games were split into separate wrapper and raw canvas pages using iframes, ensuring ads only appeared alongside publisher content. For a 3D real-time strategy game, a switch to instanced mesh rendering reduced draw calls from hundreds to just five, regardless of the number of on-screen tanks. The developer also discovered that headless Chrome uses a software rasteriser that silently fails shadow rendering, a debugging lesson that cost significant time before the root cause was identified.

0
ProgrammingDEV Community ·

MarkoMetrics Built a Python Script to Auto-Audit Google Business Profiles Across Markets

SEO agency MarkoMetrics developed a lightweight Python-based audit tool to automatically detect data inconsistencies in Google Business Profiles (GBP) for B2B SaaS clients operating across the UK and Southeast Asian markets including Singapore, Malaysia, Indonesia, and the Philippines. The script uses the Google Business Profile API to pull live listing data and compare it against a canonical source of truth, typically exported from a CRM. It flags issues such as category mismatches, invalid or missing phone numbers, unverified location statuses, and absent business hours. The tool was built to replace manual weekly checks, which the team found unscalable across multiple regional profiles. MarkoMetrics has shared the full script and setup instructions publicly so other teams can adapt it for their own multi-location SEO workflows.

0
ProgrammingDEV Community ·

Free browser tool checks EU CRA Article 14 compliance via dependency lockfiles

A developer has released a free, browser-based tool at cra.toledotechnologies.com/check that lets users check software dependencies for EU Cyber Resilience Act Article 14 obligations by pasting common lockfiles or SBOMs. Under Article 14, enforceable from 11 September 2026, companies must notify their national CSIRT and ENISA within 24 hours if a vulnerability in their EU-market product is being actively exploited. The tool cross-references declared dependencies against the OSV.dev advisory database and CISA's Known Exploited Vulnerabilities catalogue, with all processing done locally in the browser and no file contents sent to the developer's servers. A companion GitHub Action, cra-watch, is also available for automated CI pipeline checks across twelve lockfile formats. The developer cautions that a KEV match does not automatically trigger a reporting obligation, and that reachability of the vulnerable code path remains a key factor under the European Commission's July 2026 guidance.

0
ProgrammingDEV Community ·

Developer Fine-Tunes 7B LLM for Khattak Pashto Dialect Using LoRA and Unsloth

A developer fine-tuned a Qwen2.5-7B large language model to adapt it toward the Khattak Pashto regional dialect, using a technique called LoRA (Low-Rank Adaptation) alongside the Unsloth training framework. LoRA works by keeping the original model weights frozen and training only a small set of additional parameters, making the process far less resource-intensive than full fine-tuning. Unsloth complemented this by reducing memory usage and speeding up training, making the experiment feasible without access to large GPU clusters. Over the course of training, the model's loss dropped significantly from 3.44 to 0.22, though the developer noted that real-world evaluation remains essential beyond training metrics alone. The project, documented as Khatta-ka-LLM, highlights how parameter-efficient fine-tuning techniques are lowering the barrier to LLM experimentation for developers with limited infrastructure.

0
ProgrammingDEV Community ·

435 Directory Submissions Reveal What Launch Guides Never Tell You

A software team tracked every detail from 435 directory and launch platform submissions made across multiple product launches, publishing findings in September 2026. More than half of directories required a badge or backlink on the submitter's site before granting a listing or a followed link, making footer space a practical pre-launch necessity. Three out of four submissions also required creating an account before the form was even accessible, adding significant hidden time to each entry. Of listings that went live, 106 out of 150 carried followed links — better than expected, but the team cautions that link attributes can change and should be verified directly on live pages. Based on these insights, the team built a tailored launch checklist tool covering 47 core items across eight phases, with additional items that appear only for the specific product type being launched.

0
ProgrammingDEV Community ·

Strategy Pattern in PHP and Laravel: A Fix for Bloated if-else Logic

As Laravel applications grow, shipping calculators and similar features often devolve into deeply nested if-else blocks that become hard to read, test, and extend. The Strategy Pattern addresses this by extracting each algorithm or behavior variant into its own dedicated class behind a shared interface. This approach allows behaviors to be swapped at runtime without modifying existing code, upholding the Open/Closed Principle. A shipping calculator spanning multiple countries, methods, and discount tiers can produce hundreds of conditional combinations, all of which the pattern helps isolate and manage. The GPS navigation system serves as a practical analogy, where each route type becomes its own strategy class rather than a branch in a monolithic function.

0
ProgrammingDEV Community ·

Debouncing Explained: How Developers Prevent Code From Running Too Often

Debouncing is a programming technique that delays the execution of a function until a specified period of inactivity has passed since its last trigger. It is commonly used in web development to handle high-frequency user actions, such as typing in a search bar or resizing a browser window. Without debouncing, an application might fire a server request on every single keystroke, straining infrastructure and wasting bandwidth. A simple JavaScript implementation uses setTimeout and clearTimeout to reset a timer each time the function is called, executing the task only after the user pauses. The core principle is not about reducing work, but about timing it correctly to align system responses with actual user intent.

0
ProgrammingDEV Community ·

Minke: Open-Source Desktop Workspace Unifies AI Agent, Files, and Terminal

Developer lencx, known for creating a popular open-source ChatGPT desktop client, has released Minke, a local-first desktop workspace designed to streamline AI agent workflows. The Electron-based app integrates conversations, project files, terminals, and browser tabs into a single environment, addressing the fragmented context problem developers face when working with coding agents. Minke runs on DeepSeek Harness but is not locked to it, and all workspace data remains on the user's machine with no cloud dependency. The project is independently developed and not affiliated with DeepSeek, currently carrying 637 GitHub stars and an Apache-2.0 license. It remains under active development, and the README cautions that features and data schemas may still change significantly.

0
ProgrammingDEV Community ·

Developer builds browser-only MOV to MP4 converter that never uploads your file

A developer has released movconverter, an open-source TypeScript library that converts MOV files to MP4 entirely within the browser, with no server uploads or file size restrictions. The tool exploits the fact that MOV and MP4 share the same underlying file format ancestry, meaning iPhone and Mac footage — already encoded in compatible H.264/HEVC and AAC formats — can be converted by rewriting metadata rather than re-encoding media. For less common cases involving PCM audio or ProRes video, the library falls back to WebCodecs or lazily loaded WebAssembly for transcoding. A free web interface is available at movtomp4.net, where users can drop in a file and complete the conversion locally without leaving the browser tab. The library also performs a preflight check before conversion, informing users in advance whether their file will be processed losslessly in seconds or require a slower audio transcode.

0
ProgrammingDEV Community ·

Developer Builds Product Form Library Drawing on Surveys from Superhuman, Intercom and Airbnb

A developer has launched the Product Form Library, a curated collection of ready-to-use product forms inspired by research from teams including Superhuman, Intercom, Airbnb, and Chromium. The library aims to replace generic templates with carefully ordered questions and proven follow-ups drawn from published surveys and guidance. Forms cover a range of use cases including user feedback, onboarding, bug reports, feature adoption, and AI products. One highlighted example adapts Superhuman's product-market fit survey, which asks users how they would feel if they could no longer access the product. The creator is seeking community input on gaps in the collection and welcomes further feedback.

0
ProgrammingDEV Community ·

How to Build Screen-Reader-Friendly NBA Live Score Pages Using ARIA

A developer guide published on DEV Community outlines how to make real-time NBA scoreboards accessible to screen-reader users. The core challenge is that live basketball data — scores, clocks, and game status — updates constantly, but announcing every change would overwhelm assistive technology users with noise. The guide recommends using WAI-ARIA live regions, particularly role=status elements with implicit polite behavior, to deliver compact, meaningful announcements only when significant events occur, such as a score change or period end. Clock ticks should remain navigable but not auto-announced, since per MDN guidelines, not every real-time update warrants interruption. The article uses NBA Live Today, a Philippines-focused sports data platform, as a practical example, arguing that accessibility should be built into the live-data architecture from the start rather than added as an afterthought.

0
ProgrammingDEV Community ·

How to Handle Keyboard Focus Traps in Modals for Web Accessibility

Web accessibility requires that all interactive elements, including modals, be fully navigable using only a keyboard, as many users with visual or physical disabilities rely on it. A keyboard trap occurs when focus enters a section of a page and cannot be moved out using keyboard controls alone. For modals specifically, intentionally trapping focus inside is correct behavior — Tab should cycle only through elements within the modal, and pressing Esc or a close button must return focus to the element that triggered it. Without a keyboard-accessible exit, the modal becomes a true trap, rendering parts of the page unusable until a reload. The native HTML dialog element, governed by WCAG Success Criterion 2.1.2, handles all of this automatically, eliminating the need for custom keyboard management code.

0
ProgrammingDEV Community ·

Developer Builds PostNest to Help Writers Get Discovered Without SEO Hassles

A developer frustrated by low readership on self-published content has launched PostNest, a new open publishing platform aimed at developers, founders, students, and creators. The platform is designed to handle technical concerns like SEO and indexing automatically, so writers can focus solely on their content. Unlike many existing platforms, PostNest does not require readers to create an account or navigate a paywall to access articles. The platform supports rich-text and Markdown publishing, images, company profiles, and an API for programmatic publishing. The creator is currently seeking early users to test the platform and provide honest feedback to guide its development.

0
ProgrammingDEV Community ·

Why Google Sheets API Writes Don't Trigger onEdit or onChange Events

A common source of confusion for Google Apps Script developers is that writing data to a spreadsheet via the Sheets API does not fire onEdit or onChange event triggers, as these only activate on direct user interactions. The distinction matters because script executions and external API requests are treated separately from user-driven edits by Google's trigger system. Developers can verify this behavior using a test setup involving a bound Apps Script project with installed triggers for edits, changes, and form submissions. Running a script write and an API values.update call in controlled conditions will show that neither produces a trigger execution, unlike a manual cell edit. Understanding this separation is essential for correctly architecting automation workflows that rely on spreadsheet event handlers.

← NewerPage 1348 of 3311Older →