SShortSingh.
Back to feed

Study: 13 of 14 AI Models Produce More Complex Code Than Human Developers

0
·3 views

A study by the team behind Python analyzer pyscn tested 14 AI models against 500 real bugs from SWE-bench, an open-source benchmark of closed Python issues with verified human fixes. Researchers measured changes in cyclomatic complexity and dead code before and after each patch was applied, comparing AI-generated fixes directly to the human commits that resolved the same bugs. Thirteen of the fourteen models regressed on code quality more often than the human developer who fixed the identical bug, while one tied and none performed better. The probability of this 13-out-of-14 outcome occurring by chance is approximately 0.00024, and twelve models individually cleared a p-value threshold of 0.05. Only patches that passed their respective test suites were included, and all result sets have been committed publicly for independent verification.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Next.js 16 Form Component Brings Built-In Progressive Enhancement by Default

Next.js 16 introduced a first-party Form component designed to replace the custom wrapper components many development teams have been building themselves. The component adopts a server-first approach, meaning forms function through standard browser submission even when JavaScript fails to load or runs slowly. It natively handles navigation state, prevents double submissions, and manages scroll restoration without requiring client-side framework code. When JavaScript is available, the experience is progressively enhanced with faster feedback and optimistic updates. Teams migrating to the component are advised to move validation logic to server actions and remove client-side submission handlers that bypass native form behaviour.

0
ProgrammingDEV Community ·

Developer Seeks Community Feedback on MERN Stack Anime Website

A developer named Ayush Gawali has built a full-stack anime website using the MERN stack, comprising MongoDB, Express.js, React.js, and Node.js. The platform is designed to help anime fans explore titles and discover related information through a clean, user-friendly interface. The project is currently live and includes features such as anime search functionality. Gawali is actively seeking constructive feedback from the developer community, particularly on UI/UX and overall usability. Future plans include adding more features, improving the interface, and optimizing site performance.

0
ProgrammingDEV Community ·

CP vs AP: How Distributed Systems Handle Network Failures

The CAP theorem describes a fundamental trade-off in distributed systems: when a network partition occurs, a system must choose between Consistency (CP) and Availability (AP). A CP system halts or delays responses during a partition to prevent stale or incorrect data from being served, making it suitable for financial transactions and payment systems. An AP system keeps responding even when nodes are out of sync, accepting temporary inconsistencies — a reasonable approach for features like shopping carts or social media counters. In practice, since network partitions are unavoidable in real distributed environments, the CA combination is not a viable option, leaving CP and AP as the two practical design choices. Developers are advised to focus less on labeling databases and more on deciding upfront whether their system should prioritize correctness or continued availability during failures.