SShortSingh.

Programming

0
ProgrammingHacker News ·

Researcher Seeks Businesses Still Running Critical Operations on DOS-Era Hardware

A researcher is surveying professionals who rely on legacy DOS-based systems to keep their businesses running. The inquiry covers outdated database environments such as dBase and Clipper, as well as industrial equipment like CNC mills and spectrometers controlled by older ISA cards. Hardware-locked software using parallel port dongles is also among the systems of interest. The researcher's goal is to explore ways of keeping these aging setups functional on modern hardware. The call for responses was posted on Hacker News, with the researcher inviting direct contact via email.

0
ProgrammingDEV Community ·

Guide to Gradient Descent Optimization Algorithms Used in Machine Learning

Gradient descent is a widely used first-order iterative optimization algorithm that minimizes a differentiable function by repeatedly moving in the direction opposite to its gradient. It plays a central role in training machine learning and AI models by reducing cost or loss functions. Three main variants exist — batch, stochastic, and mini-batch gradient descent — each differing in how much training data is used per parameter update. Batch gradient descent computes gradients over the entire dataset before updating parameters, guaranteeing convergence but proving slow for large datasets. Stochastic gradient descent, by contrast, updates parameters for each individual training example, making it faster and suitable for online learning but prone to high variance in the objective function.

0
ProgrammingDEV Community ·

How One Developer Built a Clinically Accurate Mental Health Screener for the Web

A developer building Ask.Dr, a free psychology self-assessment platform with over 240 tools, chose to implement only published, validated clinical instruments such as the PHQ-9 depression questionnaire rather than informal quizzes. The PHQ-9 uses a fixed 0–3 response scale across nine items, yielding a total score of 0–27 mapped to five severity bands from Minimal to Severe. The implementation enforces that all questions must be answered before a score is calculated, preventing skipped items from being silently treated as zero. Safety-flagged items — such as those related to self-harm — trigger a prominent warning displayed above the results, not hidden behind additional clicks. The project also follows strict disclosure rules, showing the instrument's citation, clarifying that results are not a diagnosis, and recommending professional consultation for moderate or higher scores.

0
ProgrammingDEV Community ·

Why Distributed Computing Is Harder Than Just Adding More Machines

Distributed systems are built by connecting independent computers to handle scale, availability, and geographic reach — but this creates fundamental challenges beyond simply expanding a single machine. Unlike parallel systems that share resources tightly, distributed systems require machines to communicate via messages across a network rather than accessing shared memory directly. This introduces three core complications identified in computer science literature: concurrency, independent failures, and the absence of a global clock. Engineers often design these systems with hidden assumptions — that the network is reliable, latency is negligible, and bandwidth is unlimited — which frequently leads to fragile architectures. The central design tension lies in making autonomous, independent machines appear to users as a single coherent system, a goal that is far more difficult than it sounds.

0
ProgrammingDEV Community ·

Dev team builds browser proxy extension, uncovers silent tunnel reuse bug in Firefox and Edge

A pay-as-you-go proxy service has launched a browser extension for Firefox and Microsoft Edge, replacing a cumbersome manual setup process with a simple popup interface. The extension allows users to select a country, IP type, and toggle the proxy on or off with ease. During development, engineers discovered that both browsers silently reuse authenticated proxy tunnels, causing country-switching to have no visible effect without a browser restart. To work around the issue, the team implemented a technique of generating a unique hostname per configuration change, forcing each browser to treat it as a new proxy connection with a fresh authentication cache. A single wildcard DNS record routes all generated hostnames to the same gateway, making the fix transparent on the server side while resolving the caching behaviour in both browsers.

0
ProgrammingHacker News ·

Supreme Court allows states to access federal SAVE database for voter citizenship checks

The US Supreme Court has ruled that states may use the federal SAVE (Systematic Alien Verification for Entitlements) database to verify the citizenship status of voters. The decision marks a significant shift in how states can conduct eligibility checks during voter registration processes. SAVE is a Department of Homeland Security database traditionally used to confirm immigration status for benefit eligibility purposes. The ruling opens the door for broader state-level use of federal immigration data in election administration. Supporters argue it strengthens election integrity, while critics warn it could lead to eligible voters being wrongly flagged or removed from rolls.

0
ProgrammingHacker News ·

VSCode Bug Causes Unwanted Border Radius in Editor UI

A bug has been reported in Microsoft's VSCode editor where border radius styling is incorrectly appearing in the editor interface. The issue was filed on the official VSCode GitHub repository, suggesting it is a visual rendering defect affecting the editor's appearance. The problem appears to stem from unintended CSS styling being applied where it should not be. The report has gained some traction in the developer community, drawing early discussion on Hacker News.

0
ProgrammingHacker News ·

Letterboxd Reportedly Up for Sale With A24, Sony, and NYT Among Bidders

Letterboxd, the popular social film-logging platform, has reportedly been put up for sale. Major media and entertainment companies including A24, Sony, and The New York Times are said to be among the interested bidders. The news has drawn significant attention given Letterboxd's strong and engaged community of film enthusiasts. No deal has been confirmed publicly, and terms of the potential acquisition remain undisclosed.

0
ProgrammingDEV Community ·

5 Key Questions to Ask Operations Teams Before Building ML Models

A structured framework suggests that data scientists should ask operations teams five critical questions before developing machine learning models. These questions cover when the model will be used in a workflow, what output format is needed, and how frequently predictions must be generated. Understanding the prediction point is essential to prevent data leakage, while knowing the output format helps determine whether the problem requires classification or regression. Clarifying the specific decision the model supports ties the technical work to real business outcomes. Finally, establishing a baseline metric — such as an existing rule-based system — allows teams to measure whether the model delivers genuine improvement.

0
ProgrammingDEV Community ·

How to Build a Daily Challenge Feature Without Any Backend or Database

A developer behind Classroom Games, a free learning platform for teachers, has shared a technique for powering daily rotating challenges using only client-side JavaScript. The approach uses a deterministic hash function applied to the local date string, ensuring every user on the same calendar day sees the same category pick without any server calls. To avoid the same category appearing on consecutive days, the algorithm checks the previous day's result and steps forward one index if a collision is detected. Player progress is stored in localStorage under a date key, with error handling included for school-managed browsers that may restrict or clear site data. The method requires no accounts, no cron jobs, and no API, making it lightweight enough to reset automatically at each user's local midnight.

0
ProgrammingDEV Community ·

Agentic AI PCs Aim to Cut Cloud Token Costs for Enterprise Workloads

A new category of high-performance AI PCs is emerging to help businesses reduce the recurring costs of cloud-based large language models by running complex AI tasks locally on device. HP's ZBook Ultra G3a, powered by an AMD Ryzen AI Max Pro processor, is among the first enterprise-focused machines designed for this purpose, with other manufacturers preparing laptops featuring Nvidia's RTX Spark Blackwell GPU. These devices can run AI agents, generate video, and write code using billion-parameter models without an internet connection, also strengthening data security and compliance. Nvidia executive Gerardo Delgado highlighted that the new PCs combine sufficient memory, compute power, and accelerated tools to handle intensive AI applications in one integrated system. Analyst Jack Gold of J. Gold Research projects that 20–25% of high-end AI workloads will shift from pure cloud environments to AI PCs within the next two to three years.

0
ProgrammingDEV Community ·

Infleqtion Achieves 30 Entangled Logical Qubits on Commercial Quantum Platform

Quantum computing firm Infleqtion has reached 30 entangled logical qubits on its Sqale platform using just 80 physical qubits, claiming a first among neutral-atom quantum computing companies on a commercial system. The milestone is part of the company's 2026 roadmap and supports its broader goal of delivering 100 logical qubits by 2028. A key enabler was an AI-assisted discovery using GPT 5.6 Sol, which identified a novel logical operation that halved the number of physical gates required for a critical step. The experiment involved roughly 1,000 physical operations and produced a signal about 1,000 times stronger than background noise, confirming the stability of the implementation. Infleqtion currently serves three customers on the Sqale platform, including a collaboration under the Wellcome Leap Q4Bio program focused on biomarker discovery.

0
ProgrammingDEV Community ·

Aspiring Developer Commits to Structured Frontend Learning Journey

A self-taught developer has announced a renewed and more disciplined approach to learning software engineering after years of inconsistent study. The writer is currently focused on frontend technologies including JavaScript, TypeScript, React, Next.js, and Tailwind CSS. Rather than simply completing tutorials, the goal is to build a deeper understanding of how tools work and to develop real-world projects. The developer plans to eventually expand into backend development once comfortable with the frontend stack. They joined DEV Community to document their progress and reflect on lessons learned along the way.

0
ProgrammingDEV Community ·

Why Chasing Speed in Software Development Often Makes Projects Slower

A software developer reflects on lessons learned from Rapid Application Development (RAD), arguing that speed is a strategic priority rather than a byproduct of using the right tools or frameworks. When deadlines tighten, teams routinely sacrifice usability, performance, testing, and maintainability — a trade-off that feels practical but frequently backfires. True development speed, the author contends, actually breaks down into three distinct concerns: moving faster, managing risk, and making progress visible to stakeholders. Effective RAD strategy rests on four pillars — avoiding classic mistakes, applying development fundamentals, managing risk, and using schedule-oriented practices — none of which can be skipped without consequence. Treating any single tool or shortcut as a complete strategy, the author concludes, is the fastest way to make software slow.

0
ProgrammingDEV Community ·

CaptchaKit Lets React and Next.js Developers Run CAPTCHA Without Third-Party Services

A new open-source package called CaptchaKit has been released for React and Next.js applications. It allows developers to add CAPTCHA protection without depending on external services like Google reCAPTCHA. The package is available on npm and its source code is hosted publicly on GitHub. A live demo has been published on Netlify for developers to test the functionality before integrating it. Full setup instructions and technical documentation are provided alongside the package.

0
ProgrammingHacker News ·

Classic 2001 CMU Guide Offers Timeless Advice for New Graduate Students

A 2001 essay authored at Carnegie Mellon University offers guidance aimed at students beginning graduate studies in computer science. The piece has resurfaced on Hacker News, attracting community attention despite its age. It addresses foundational attitudes and habits that can shape a successful research career. The essay remains relevant to those entering academic research environments today.

0
ProgrammingDEV Community ·

Is Vim Still Relevant in the Age of AI-Assisted Coding?

Vim has long been valued not for raw typing speed but for its language-like editing commands that let developers express intent efficiently. With AI tools now generating much of the code, some argue the steep learning curve of Vim is no longer worth the payoff. However, a counterpoint emerges: the rise of AI coding tools like Claude Code and GitHub Copilot CLI has pushed developers back to the terminal, where Vim-style skills remain relevant. The debate is nuanced — while AI handles more code generation, developers still spend significant time reading, navigating, and modifying existing code. Ultimately, even if Vim as an editor fades, its motion-based editing philosophy may outlast the tool itself.

0
ProgrammingDEV Community ·

Claude Code's MultiEdit and Write Tools Cut Refactor Token Use by 85%

Claude Code's MultiEdit and Write tools allow developers to bundle multiple file edits into a single atomic transaction, eliminating the repeated confirmation round-trips that slow down large refactoring sessions. MultiEdit applies coordinated changes across multiple files simultaneously, aborting the entire batch if any single file fails, which prevents partial and broken states in a codebase. The Write tool complements this by replacing full file contents when granular patches become too complex or error-prone. Together, the two tools can reduce output token consumption by up to 85% compared to sequential editing approaches, while also cutting latency significantly. Developers are advised to group tightly coupled changes in one batch but separate unrelated edits to maintain clean rollback boundaries.

0
ProgrammingDEV Community ·

How unprepared management derailed a SaaS project and stalled a developer's career

A developer identified in the account as Maria spent seven months building a solid frontend from scratch for a SaaS overhaul at a small tech firm, only to have her work discarded when a newly hired senior developer convinced management to adopt a purchased template instead. The decision was made based on seniority rather than technical merit, setting a pattern where proven contributions were overridden without structured debate. When a core technology update caused the template to break four months before launch, neither the senior developer nor the team could resolve the incompatibility, forcing the project to be rebuilt on a third template. A project originally scoped for under one year stretched beyond two years with no clear completion date, accumulating technical debt at each restart. The account highlights how amateur project management — treating technology choices and deadlines as unrelated decisions — ultimately burdens frontline developers while shielding decision-makers from accountability.

0
ProgrammingDEV Community ·

Stored XSS Flaw Found in Next.js Demo Store via Malicious SVG Upload

A stored cross-site scripting (XSS) vulnerability was discovered in OopsSec Store, a deliberately vulnerable Next.js e-commerce app used for security training. An attacker with admin access could upload a malicious SVG file as a product image, embedding JavaScript that executes automatically for every visitor who views the product page. The flaw existed because the server trusted the client-supplied Content-Type header without inspecting actual file contents, and the app rendered SVGs using an img tag that allowed script execution. The vulnerability affected multiple endpoints, including the product page, admin preview, and the direct file URL. Recommended fixes include magic-byte file inspection, server-side SVG sanitization with DOMPurify, and strict Content-Security-Policy headers on the uploads directory.

← NewerPage 919 of 3182Older →