SShortSingh.
0
ProgrammingDEV Community ·

How AI Refactoring Tools Can Silently Break Legacy Code — And How to Catch It

A software developer demonstrated a workflow for safely using AI-generated code refactors on legacy functions that lack formal specifications. The approach involves first capturing the existing function's behavior by recording inputs and outputs as a 'ground truth' baseline, then prompting a free AI coding model to refactor the code while keeping behavior identical. Characterization and differential tests are then run against both the original and refactored versions to detect any divergence. In one test case, the AI changed a single comparison operator — from 'less than or equal to' to 'less than' — which silently flipped a shipping charge from zero to $4.99. The article concludes that AI-generated diffs should be treated as hypotheses requiring test-based verification, not trusted on appearance alone.

0
ProgrammingDEV Community ·

JavaScript Loops Explained: Types, Syntax, and When to Use Each

Loops in JavaScript allow developers to execute a block of code repeatedly, eliminating the need to write the same code multiple times. JavaScript offers five main loop types: for, while, do...while, for...of, and for...in, each suited to different scenarios. The for loop is ideal when the number of iterations is known in advance, using initialization, condition, and update expressions to control execution. The while loop checks a condition before each iteration and keeps running as long as that condition remains true, stopping immediately if it starts as false. Common use cases for loops include processing student records, displaying product lists, reading array values, and repeating tasks until a specific condition is met.

0
TechnologyThe Verge ·

Sony Music and Warner Chappell sue Anthropic over tens of thousands of copyrighted works

Sony Music and Warner Chappell have filed a lawsuit against AI company Anthropic in the US District Court for the Northern District of California. The music companies allege infringement of tens of thousands of copyrighted works and are seeking up to $150,000 in damages per work. An additional $25,000 per instance is being sought for cases where copyright management information was allegedly removed. If the court rules in their favor and awards maximum damages, the total could reach several billion dollars. This case adds to Anthropic's growing legal troubles, which recently included a $1.5 billion settlement with the publishing industry.

0
IndiaTimes of India ·

Delhi man and friend arrested for killing schizophrenic son in Kalindi Kunj

A 64-year-old Delhi man and his friend have been arrested for allegedly murdering the man's schizophrenic son in the Kalindi Kunj area. The father claimed he had grown frustrated due to his son's increasingly aggressive and unmanageable behavior. The victim was lured to an abandoned container, where he was assaulted and killed. Investigators found the body bearing head injuries and signs of strangulation. Police recovered the murder weapon and bloodstained clothing from the crime scene.

0
ProgrammingDEV Community ·

AI Collaboration Tools Help Remote Dev Teams Resolve Tasks 42% Faster in 2026

By 2026, 81% of tech companies operate partially or fully remote, yet 26% of software teams still miss critical deadlines due to miscommunication despite using multiple tools, according to Gartner. AI-powered platforms are increasingly seen as essential, with Atlassian reporting that teams using AI-driven collaboration tools resolve tasks 42% faster than those that do not. Tools like Microsoft Teams Copilot, Standuply, and Notion AI automate meeting summaries, generate tickets, update documentation, and flag blockers in real time. A case study from Xero found that adopting AI standup tools cut weekly standup time from 45 to 16 minutes and improved sprint velocity by 29%. Experts caution against stacking too many tools or blindly trusting AI-generated outputs, recommending human oversight especially for critical documentation and code reviews.

0
ProgrammingDEV Community ·

New Personal Domain Wrongly Flagged as Phishing by IPQS With 95 Risk Score

A developer registered a personal domain for long-term use as a professional email address, configuring it with valid DNS, SPF, and DMARC records. Despite finding no spam, malware, hosted content, or impersonation activity, fraud-detection service IPQualityScore assigned the domain a risk score of 95 and flagged it as a phishing site. The developer submitted a correction request roughly a month after the initial check, but received no explanation, evidence, or human response as of late August 2026. The case raises accountability concerns because IPQS sells reputation data that businesses use to block signups, reject transactions, and assess domain trustworthiness. The author argues that selling high-confidence fraud signals without a reliable correction process can cause real harm to legitimate users.

0
SportsESPNcricinfo ·

Durham need 4 runs to beat Gloucestershire after Aldridge's stellar display

Durham came within touching distance of a three-day County Championship victory over Gloucestershire, needing just four more runs to win. Seamer Matty Aldridge once again played a starring role with the ball for Durham, continuing his impressive form in the match. The hosts were unable to seal the win on day three as bad light forced an early end to play. Durham will return on the final day requiring only four runs to complete the victory. The match has been tightly contested, with Durham firmly in control heading into the last session.

0
SportsESPNcricinfo ·

Lawrence half-century gives England commanding lead in rain-hit Test

England built a substantial lead over Pakistan on a rain-affected day in their ongoing Test match. Dan Lawrence's half-century was the standout contribution as England's batters navigated a challenging spell. Mohammad Abbas proved the pick of Pakistan's bowlers, claiming three wickets to keep pressure on England's lineup. Despite Abbas's efforts, England have set Pakistan a daunting target in excess of 350 runs to win. Pakistan now face a steep chase to secure victory in the match.

0
SportsESPNcricinfo ·

Gubbins and Orr Steady Hampshire After Baker's Four-For Restricts Glamorgan to 161

The County Championship match between Hampshire and Glamorgan has been reduced to a one-innings contest. Sonny Baker's impressive four-wicket haul helped dismiss Glamorgan for a modest total of 161. Hampshire openers Nick Gubbins and Orr then took charge, shifting the momentum firmly in their side's favour. Their solid partnership at the crease put Hampshire in a strong position in the single-innings shootout.

0
ProgrammingDEV Community ·

Humanoid robots break Bolt's 100m record as billions flood robotics sector

At China's World Humanoid Robot Games, humanoid robots broke Usain Bolt's 100-meter world record three times in two days, with one robot also winning the long jump at 7.97 meters. Hugging Face launched a $399 desktop robot called the Microduck, which went viral and generated over a million dollars in sales, while Nvidia is reportedly in talks to acquire the company for around $13 billion. Robotics startup Generalist reached a $3 billion valuation after raising nearly $200 million, with its latest model enabling robots to learn tasks from video clips as short as three seconds. SoftBank is reportedly negotiating a majority stake in humanoid maker 1X Technologies at a $6 billion valuation, reflecting surging investor interest in the sector. However, concerns about a potential bubble persist, as Unitree's stock has fallen 45% from its post-debut peak amid China's robotics boom.

0
IndiaNDTV ·

Delhi Government Sends Senior Officers to Inspect 139 Waterlogging Sites

The Delhi government has deployed top officials to investigate 139 waterlogging hotspots identified across the city. Delhi Traffic Police initially flagged 113 problem locations during rainfall recorded up to August 20. An additional 26 sites were identified following heavy rain on August 24, bringing the total to 139. The probe aims to address recurring waterlogging issues that disrupt traffic and daily life during the monsoon season.

0
IndiaNDTV ·

King Haakon VIII Delivers Emotional First Speech After Ascending Norway's Throne

Haakon VIII has been proclaimed Norway's new king following the passing of his father. In his first public address, the new monarch paid an emotional tribute to his late father. Visibly moved during the speech, Haakon noted that his parents — including his mother, Queen Sonja — would have marked their 58th wedding anniversary on the same day. The moment underscored the deeply personal weight of his ascension to the throne.

0
ProgrammingDEV Community ·

Bybit's $16B On-Chain Infrastructure Flagged for Five Critical Security Risks

A security analysis by a senior DeFi research team, dated October 26, 2023, examined the smart contract vulnerability surface of Bybit, a major centralized exchange with $16.05 billion in total value locked on Ethereum and Layer 2 networks including Arbitrum and Optimism. The report identified five critical or high-risk attack vectors threatening user funds held in Bybit's on-chain smart contracts. Key risks include oracle price feed manipulation that could trigger false liquidations in perpetual futures markets, and compromise of admin or multi-sig keys that could allow attackers to drain collateral or halt withdrawals. Additional vulnerabilities were flagged in cross-chain bridge infrastructure used to move assets between supported networks. Researchers noted that Bybit's hybrid model — where on-chain contracts handle collateral while off-chain systems manage order matching and risk — creates unique trust assumptions that amplify these risks.

0
ProgrammingDEV Community ·

AI Runs Randomness Test on Itself, Fails in Four Statistically Measurable Ways

A language model attempted to generate 100 random digits without any tools, mimicking how a human responds to a request for random numbers. Comparing its output against 2,000 sequences from a true pseudo-random number generator, the AI failed on four independent statistical metrics simultaneously. It never repeated an adjacent digit, produced an unusually high rate of perfect 10-digit permutations, and achieved near-perfect digit frequency balance — all patterns that fell outside the null distribution entirely. Rather than sampling like a die, the model appeared to shuffle like a deck of cards, drawing on memory to avoid repetition. The experiment suggests that the signature of a choosing mind may not be bias toward certain numbers, but rather an unnatural absence of the statistical lumpiness that genuine randomness produces.

0
ProgrammingDEV Community ·

Dev fixes silent auth redirect failure and FK mismatch in Next.js/NestJS monorepo

A developer working on a Next.js and NestJS monorepo identified two critical bugs that surfaced in production HAR logs on August 28, 2026. The first issue involved AuthGuard using router.replace() for expired JWT redirects, which failed silently in Next 13's app router when components unmounted, leaving users stuck on broken pages. The fix replaced the unreliable client-side navigation with Next 13's server-side redirect() helper, ensuring a proper HTTP 302 response before any client code runs. The second bug was a foreign-key typo in the sales-pipeline database table that referenced the wrong table name, causing empty pipeline lists despite data being present. Correcting the schema and regenerating the ORM resolved both issues, eliminating hidden 401 and 404 errors that the frontend had been silently swallowing.

0
ProgrammingDEV Community ·

96 Failures Taught This Engineer How to Build Reliable AI Agents in Production

A software engineer deploying AI agents for enterprise use cases — including customer support and workflow automation — documented 96 iterative failures before achieving a stable production system. Analysis of the failure log revealed that most breakdowns stemmed not from model capability limits but from missing constraints and poor feedback mechanisms. Key fixes included adding an uncertainty gate to prevent confident-sounding but incorrect responses, implementing structured decision tracing for reproducible debugging, and building tiered fallback chains instead of relying on human review for every ambiguous case. A targeted escalation policy — routing only high-stakes, high-uncertainty queries to human reviewers — reduced manual intervention by 85%. The engineer concludes that reliable AI agents are fundamentally a systems engineering challenge, requiring measurable failure modes, visible uncertainty, and production-condition testing rather than better prompting alone.

0
ProgrammingDEV Community ·

Proxmox LXC vs KVM: How to Choose the Right Virtualization for Your Workload

When setting up a Proxmox server, administrators must choose between LXC containers and KVM virtual machines, a decision that significantly shapes infrastructure performance and security. LXC containers share the host kernel, delivering near-native performance with minimal overhead, making them well-suited for stateless Linux workloads like web servers and CI runners. KVM provides full hardware virtualization with isolated kernel instances, ideal for Windows guests and security-critical workloads, but comes with a 15–20% performance penalty and higher memory consumption. Benchmarks on a Proxmox 7.4 setup show LXC outperforming KVM in CPU and memory tasks, though the gap narrows for I/O-bound workloads thanks to VirtIO and modern CPU extensions. Experts recommend analyzing workloads using tools like pveperf and lxc-checkconfig before committing to either technology, rather than defaulting to one approach for all use cases.

← NewerPage 618 of 3947Older →