Software code is written to be read by both computers and humans. With a new $1.2-million three-year project funded by the U.S. National Science Foundation, a group of software engineers and social scientists at UC Davis will leverage this bimodality to develop tools that make writing, reading, and maintaining code easier, improving software tools and the programming experience in the process.
Making code easy for people to read is a critical part of programming. Humans write, edit, check and maintain code, and the best way to catch potentially catastrophic errors is code review, a proofreading-like process where a second person reads through code and explains what it's doing. The team plans to train an algorithm that can re-write code so it's easier to read without changing the computational meaning.
Their goal is to train an algorithm that can read through code to give it a score for readability. The program can then re-write the code until the readability score improves as much as possible. Improving readability will help coders and code reviewers parse through software and easily find and fix potential errors.
From University of California, Davis
View Full Article
No entries found