I'm consistently surprised by the lack of depth in programming psychology work. Search Google Scholar for "program readability", see all top-cited work. Consistently, the only methodology: literally ask people whether they think code is readable, and check for agreement.
-
Show this thread
-
Studies have consistently shown no "significant relationships between perceived readability and... reading time and performance on a simple cloze test." https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7404062 …
1 reply 0 retweets 0 likesShow this thread -
"Our results demonstrate that none of the (existing and new) metrics we considered is able to capture code understandability, not even the ones assumed to assess quality attributes strongly related with it, such as code readability and complexity." https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=8115654 …
1 reply 1 retweet 0 likesShow this thread -
You would get laughed out of the field presenting this stuff at a psychology conference instead of ICSE. Imagine, "To analyze racism in job hiring, we surveyed a group of managers to ask 'do you think you're racist?'" You have to validate with external measures...
1 reply 3 retweets 4 likesShow this thread -
Replying to @wcrichton
Love this thread! Question: what's the external measure that Harry Potter is readable? It seems to me like the way to test code comprehensibility is simply to give it to new people and see how quickly they can comprehend it
1 reply 0 retweets 1 like -
Replying to @stevekrouse
The challenge is measuring comprehension. This ranges from standard assessment (multiple choice) to memory tests (cloze tests, free recall). Your results are as believable as your test design.
1 reply 0 retweets 1 like -
Replying to @wcrichton
Neither of those tests measure what matters. The test needs to measure how quickly I can make changes
1 reply 0 retweets 1 like -
Replying to @stevekrouse
That seems like an overstatement. I can think of plenty of languages, APIs, libraries I've read to check my understanding and find bugs, not to change their source code. However, I do agree that the ability to make a change is a useful test of comprehension.
1 reply 0 retweets 0 likes
Some of the really good early work in protocol analysis for programming asked experts to talk aloud while modifying a foreign codebase. https://www.sciencedirect.com/science/article/pii/016412128790032X?via%3Dihub …
-
-
Replying to @wcrichton
Interesting! I personally find it impossible to read code unless I have a specific change in mind
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD