SShortSingh.

Programming

0
ProgrammingHacker News ·

Why Taxi Drivers Have Lower Alzheimer's Risk, Explained

Research suggests that taxi drivers experience unusually low rates of Alzheimer's disease compared to the general population. Scientists attribute this to the constant use of complex mental mapping and spatial reasoning required by the profession. Regularly navigating cities without GPS is thought to strengthen hippocampal activity, the brain region most affected by Alzheimer's. The findings indicate that cognitively demanding work involving spatial memory may offer a protective effect against neurodegeneration. Researchers believe these insights could inform broader strategies for reducing dementia risk through targeted mental exercise.

0
ProgrammingDEV Community ·

Building a Voice AI Phone Agent: Why Microphone Timing Is the Hard Part

Developers building real-time voice agents on Twilio Media Streams often encounter a critical feedback loop where the agent's own speech is picked up by its speech-to-text system, causing the bot to respond to itself. The root cause is premature microphone reopening — triggered when the audio stream ends on the server side, not when the caller actually hears the last word. Twilio's mark frame feature offers a reliable fix by signaling the exact moment playback reaches the caller's ear, allowing the microphone gate to open only then. Beyond that single condition, a production-ready system requires four additional checks — including an empty speech queue, no active TTS stream, and a non-generating LLM — to prevent race conditions and cut-off sentences. The author, running this system on a live German phone line, notes that these bugs rarely surface in local testing and only appear on real mobile networks with higher latency.

0
ProgrammingHacker News ·

Windows 11 Weather App Found to Consume Over 1 GB of RAM

Microsoft's built-in Weather app on Windows 11 has been found to consume more than 1 gigabyte of RAM, raising concerns about resource efficiency. The issue was reported by NotebookCheck, highlighting what appears to be excessive memory usage for a simple utility application. Such high RAM consumption from a stock app can noticeably impact system performance, particularly on devices with limited memory. The finding has drawn attention from the tech community, with users questioning Microsoft's optimization of its bundled applications.

0
ProgrammingDEV Community ·

How to Architect a Multi-Vendor Home Services Marketplace Using Laravel

Building a multi-vendor home services marketplace with Laravel requires careful separation of three distinct user roles: customers, service providers, and administrators, each with different permissions and workflows. The core challenge is not just creating a basic application but designing interconnected systems covering bookings, payments, schedules, locations, and notifications in a maintainable way. Laravel's authorization layer plays a critical role in ensuring that providers can never access each other's bookings, pricing, or financial data. Developers are advised to map the domain model first — defining relationships between users, services, bookings, and categories — before writing controllers or application logic. This upfront architectural planning helps avoid costly refactoring as the marketplace scales with more providers, services, and transactions.

0
ProgrammingHacker News ·

Engineer builds trebuchet that breaks sound barrier using only gravity

British engineer and YouTuber Tom Stanton has designed and built a trebuchet capable of launching a projectile past the speed of sound using no external power source. The device relies entirely on gravitational potential energy, making the achievement a remarkable feat of mechanical engineering. Stanton documented the project and shared it online, where it attracted significant attention from the engineering and maker communities. The build demonstrates how classical siege weapon mechanics can be pushed to extreme modern performance limits. Details of the project are available on his YouTube channel and were highlighted on tech blogs and Hacker News.

0
ProgrammingDEV Community ·

Programmatic SEO in 2026 Must Combine Role-Based Pages and Proprietary Data for AI Search

Traditional programmatic SEO built on thousands of thin, templated pages is losing effectiveness as AI-powered search engines like Google AI Overviews, Perplexity, and ChatGPT Search increasingly filter out low-value content. The new approach involves building a matrix of pages organised by user roles and geographic markets, enriched with proprietary data sourced from government APIs, niche forums, and industry databases. Effective geo-targeting in 2026 now requires pages to reference local regulatory frameworks, cultural nuances, and region-specific search intent rather than simple translations or currency swaps. Structured data markup, particularly JSON-LD schema, plays a critical role in helping AI engines identify and cite these pages in generated answers. The strategy aims to position brand content as a citable, authoritative source in a search landscape increasingly dominated by zero-click AI responses.

0
ProgrammingDEV Community ·

Building for Kenya Taught This Developer What Web Performance Really Means

A web developer building products for businesses in Kenya has shared how real-world network conditions expose the flaws in mainstream web performance advice. Many users in Kenya access the internet on 2G or 3G connections using older budget Android phones, making standard optimization benchmarks largely irrelevant. The developer found that large JavaScript bundles, unoptimized hero images, and micro-animations — often overlooked in high-bandwidth markets — cause severe load delays and user drop-off on slower connections. Losing form data during brief network interruptions also proved a critical usability issue, prompting the adoption of local data persistence as a standard practice. The developer argues that what is often dismissed as over-engineering is, in fact, basic consideration for the majority of the world's internet users.

0
ProgrammingDEV Community ·

Cheap AI Model Beats Frontier Model on Complex Task Using Recursive Query Method

Researchers rebuilt a Recursive Language Model (RLM) system using only OpenAI's budget-tier gpt-4.5-mini, testing it against a direct call to the more powerful frontier model gpt-5.6-sol. The task involved analyzing a 308,367-character context of 3,182 general-knowledge questions to identify the least-common answer category without any labels provided. The frontier model answered incorrectly, while the mini-only RLM arrived at the correct answer by breaking the problem into smaller chunks and processing them recursively through at least 238 model calls over roughly 102 minutes. Although the cheaper model made notable classification errors at the row level, it still reached the right final answer because the true minimum category had a large enough margin to absorb those mistakes. The experiment suggests that structured decomposition — rather than raw model capability — can be the deciding factor in complex analytical tasks.

0
ProgrammingDEV Community ·

Developer Builds NovaCloud22, a Secure File Workspace With Granular Sharing Controls

A developer has built NovaCloud22, a secure file workspace designed to give users greater control over files after they are shared. The platform allows users to upload, organize, and share files via protected links featuring password protection, expiration dates, download limits, and access tracking. A file-request feature lets external users upload files directly to a workspace without needing a NovaCloud22 account. The developer notes that the most complex challenge was engineering the full file lifecycle — from upload and encryption through to storage, sharing, and analytics. The project was motivated by a gap the developer identified in mainstream tools like Google Drive and Dropbox, which prioritize storage and collaboration but offer limited post-share control.

0
ProgrammingDEV Community ·

Developer builds Linux kernel rootkit PoC to study detection, not just attack techniques

A developer built RVBBIT, an educational Linux kernel rootkit proof-of-concept, to understand how multiple attack techniques behave when implemented together rather than studied in isolation. The project covered process hiding, DKOM manipulation, syscall interception, kernel module hiding, and filesystem and network visibility filtering. Through the build process, the developer observed that these techniques do not truly erase system objects but instead alter how they are observed through kernel interfaces. This distinction — between actual system state and reported state — gradually shifted the project's focus from offensive implementation toward understanding detection. The source code has been published on GitHub as an open educational resource.

0
ProgrammingDEV Community ·

Developer Builds Git-Based CI/CD Pipeline to Sync 74 n8n Workflows Across Environments

A solo developer building CoreAutoCRM, a WhatsApp-based auto repair shop SaaS, faced a critical challenge managing workflow consistency across staging and production n8n servers. Since n8n stores workflows in a database rather than as files, there was no native way to track changes, compare versions, or safely deploy updates across 74 workflows. The developer built a custom synchronization system using n8n's REST API to export workflows as JSON files, version them in Git, and automate deployments via a CI/CD pipeline. This gave the project standard software engineering discipline — branching, diffs, and full deployment traceability — while retaining the speed of n8n's visual editor. The solution not only resolved the sync problem but also produced a fully versioned, machine-readable copy of the entire product backend as a byproduct.

0
ProgrammingDEV Community ·

Vaya AI Loan Advisor Assesses Borrowers' Real-Life Affordability

A developer named Mike has built an AI-powered loan advisor called Vaya. The tool goes beyond standard loan eligibility checks by evaluating whether borrowers can still afford their day-to-day living expenses after repayments. Vaya was built using Next.js and leverages AI to provide more holistic financial guidance. The project was shared on DEV Community on August 9 as part of the ShowDev showcase for developers.

0
ProgrammingDEV Community ·

Vaya AI Advisor Tells Vietnamese Borrowers If They Can Afford a Loan

A new AI-powered loan advisory tool called Vaya has been launched, targeting borrowers in Vietnam who want to know whether a loan is financially survivable, not just competitively priced. The platform compares real loan products from over 20 Vietnamese banks, displaying rates, terms, and repayment schedules side by side. Its core feature is a 'survival score' generated by a Monte Carlo simulation that calculates the probability a loan will push a borrower into financial distress, while also flagging safer alternatives. Vaya also includes a reverse marketplace where borrowers post anonymous requests and banks submit competing offers, shown alongside each bank's publicly listed rate. The tool supports English, Vietnamese, and Chinese, requires no sign-up, and is accessible via a live demo at vaya-project.vercel.app.

0
ProgrammingDEV Community ·

On-Call Culture Costs More Than Companies Admit, Engineers Argue

A software industry perspective published on DEV Community argues that the true cost of on-call duty begins long before any incident alert fires, encompassing disrupted evenings, missed social plans, and constant low-level anxiety. The author contends that businesses routinely underprice this burden by treating on-call as a default job responsibility rather than a genuine sacrifice. Follow-the-sun models, where responsibility rotates across global time zones, are presented as the fairest solution but remain out of reach for most smaller organisations. For companies without that scale, splitting support into tiered layers with regional partners is suggested as a partial workaround. The piece warns that jumping straight to a rota without deliberate design work shifts hidden human costs onto engineers while keeping them invisible to the business.

0
ProgrammingDEV Community ·

Claude Code's allowed-tools grants per-turn permission, not a persistent sandbox

Claude Code's allowed-tools field in skill frontmatter only pre-approves listed tools for the single turn that invokes the skill, not for the entire session. Once the user sends a follow-up message, the permission grant clears and Claude will prompt again, even if the same skill is active. The field also does not restrict other tools — it merely skips prompts for the listed ones, while all other tools remain accessible under normal permission rules. To block a tool from a skill entirely, developers should use the separate disallowed-tools field instead. For permissions that need to persist across a session or project, the recommended approach is to configure allow or deny rules in the project's permission settings.

0
ProgrammingDEV Community ·

Developer Reflects on How 'Leave It Better' Philosophy Extends Beyond Code to People

A software developer who built their professional identity around the Boy Scout Rule — 'leave the campsite better than you found it' — argues the principle is far broader than clean code. Writing on DEV Community, the author contends the real barrier to improvement in engineering teams is not willingness but confidence, especially under deadline pressure. They warn against over-applying the rule, noting that endlessly chasing improvements can undermine the very goal it serves. Most significantly, the author concludes that the rule's deepest application is to people — mentoring colleagues and helping them grow. The piece was originally published on phpboyscout.uk on 18 June 2026.

0
ProgrammingDEV Community ·

HyperFrames lets developers render MP4 videos from plain HTML files without a video editor

HyperFrames, an open-source tool by HeyGen, converts plain HTML files into MP4 videos using headless Chrome and FFmpeg, requiring no build step or JavaScript framework. A developer demonstrated the workflow by generating a 13-second vertical short about Dota 2 inventory items entirely from an HTML file. Animations can be authored using familiar libraries such as GSAP, CSS animations, Lottie, or Three.js, with timing controlled via data attributes. The tool is positioned as particularly well-suited for AI agents, since it works with plain readable files rather than compiled component trees, unlike React-based alternatives such as Remotion. The developer also flagged key pitfalls including silent CDN failures in render containers and audio sync issues, recommending local asset hosting and precise audio duration measurement with ffprobe.

0
ProgrammingDEV Community ·

Developer Debugs E-Commerce Site Bug That AI Repeatedly Failed to Solve

A developer building a custom handcrafted-goods e-commerce platform encountered persistent styling and layout issues after routing the site through Cloudflare. The site appeared fully functional in local development but broke when accessed via a Cloudflare tunnel, with featured product cards and CSS styles failing to load correctly. AI tools initially pointed to Cloudflare's caching behavior — which was overriding the server's Cache-Control headers and serving stale assets for up to four hours — but clearing caches and following AI suggestions did not resolve the problem. Further investigation revealed Cloudflare was also modifying HTML through its Email Obfuscation feature, complicating diagnosis. Despite multiple AI-assisted attempts, the root cause required hands-on manual debugging rather than AI-generated fixes.

0
ProgrammingDEV Community ·

Developer Uses Sentry to Diagnose and Fix 4-Second Page Load on Personal Site

A developer connected their personal website to Sentry's performance monitoring tool and discovered a 4,229ms page load time, with the server taking over two seconds just to begin sending a response. The primary bottleneck was a backend call to the DEV.to articles API, which averaged 361ms but spiked to 1.37 seconds at the 95th percentile. Using Sentry's AI assistant Seer, the developer identified that fetching and caching the DEV.to API response server-side, rather than on every client request, would remove the call from the critical page load path. An nginx caching strategy using proxy_cache_background_update was implemented, ensuring returning visitors receive a cached response while the cache refreshes silently in the background. Performance data from the following week showed approximately a 60% improvement in median load time, dropping from 3.3 seconds on August 4 to 1.3 seconds on August 5.

0
ProgrammingDEV Community ·

Developer Builds 15 Logic Gates from Scratch Using Only NAND in Nand2Tetris

A developer has shared progress on the Nand2Tetris course, successfully implementing 15 logic gates — including NOT, AND, OR, XOR, MUX, and DMUX variants — using only NAND gates and Hardware Description Language (HDL). The approach involved deriving boolean expressions from truth tables using Sum of Products, then simplifying them via De Morgan's law and double negation to express everything in terms of NAND. A key insight was that NAND(a, a) is equivalent to NOT(a), which made building subsequent gates feel intuitive and sequential. More complex gates like MUX4WAY16 and DMUX4WAY proved challenging due to unfamiliarity, but were completed by composing already-built simpler gates. The developer now plans to tackle the next chapter, which covers arithmetic components including a Half Adder, Full Adder, and ALU.

← NewerPage 275 of 1351Older →