Saturday, September 7

Musical approach helps programmers catch bugs

also from new scientist: "Vickers and James Alty of Loughborough University developed a system that automatically converts computer program code written in Pascal into simple "music"... Vickers and Alty assigned particular musical phrases to different Pascal language constructs, such as conditional statements and loops. A synthesised chord, for example, represents conditional statements such as "IF TRUE". A loop could have an ascending string of synthesised notes associated with it. When different sections of code are put together, they should form a harmonious tune. But if a loop, for example, does not execute properly, the music would not ascend properly and the programmer should hear the error. Similarly, a duff statement would produce a different chord that would be immediately apparent."

0 Comments:

Post a Comment

<< Home

© Copyright Anne Galloway 2001-2008. This web site's content is licensed under a Creative Commons License. Some rights reserved. Powered by Blogger and hosted by Dreamhost.