PDA

View Full Version : Modeling How Programmers Read Code


sl4shd0t
07-07-2013, 08:30 PM
An anonymous reader writes "Following up on an experiment from December, Michael Hansen has recorded video of programmers of varying skill levels as the read and evaluate short programs written in Python. An eye tracker checks 300 times per second to show what they look at as they mentally digest the script. You can see some interesting differences between experts and beginners: 'First, Eric's eye movements are precise and directed from the beginning. He quickly finds the first print statement and jumps back to comprehend the between function. The novice, on the other hand, spends time skimming the whole program first before tackling the first print. This is in line with expectations, of course, but it's cool to see it come out in the data. Another thing that stands out is the pronounced effect of learning in both videos. As Eric pointed out, it appears that he "compiled" the between function in his head, since his second encounter with it doesn't require a lengthy stop back at the definition. The novice received an inline version of the same program, where the functions were not present. Nevertheless, we can see a sharp transition in reading style around 1:30 when the pattern has been recognized.'" http://a.fsdn.com/sd/twitter_icon_large.png (http://twitter.com/home?status=Modeling+How+Programmers+Read+Code%3A+ http%3A%2F%2Fbit.ly%2F10GmFm6) http://a.fsdn.com/sd/facebook_icon_large.png (http://www.facebook.com/sharer.php?u=http%3A%2F%2Fdevelopers.slashdot.org% 2Fstory%2F13%2F07%2F07%2F017249%2Fmodeling-how-programmers-read-code%3Futm_source%3Dslashdot%26utm_medium%3Dfacebo ok) http://www.gstatic.com/images/icons/gplus-16.png (http://plus.google.com/share?url=http://developers.slashdot.org/story/13/07/07/017249/modeling-how-programmers-read-code?utm_source=slashdot&utm_medium=googleplus)

Read more of this story (http://developers.slashdot.org/story/13/07/07/017249/modeling-how-programmers-read-code?utm_source=rss1.0moreanon&utm_medium=feed) at Slashdot.
http://slashdot.feedsportal.com/c/35028/f/647376/s/2e4ec51d/mf.gif

http://da.feedsportal.com/r/165665833633/u/49/f/647376/c/35028/s/2e4ec51d/a2.img (http://da.feedsportal.com/r/165665833633/u/49/f/647376/c/35028/s/2e4ec51d/a2.htm)http://pi.feedsportal.com/r/165665833633/u/49/f/647376/c/35028/s/2e4ec51d/a2t.imghttp://feeds.feedburner.com/~r/Slashdot/slashdotDevelopers/~4/_XKAye1iPjs

More... (http://rss.slashdot.org/~r/Slashdot/slashdotDevelopers/~3/_XKAye1iPjs/story01.htm)