<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ayaan Kazerouni on Medium]]></title>
        <description><![CDATA[Stories by Ayaan Kazerouni on Medium]]></description>
        <link>https://medium.com/@ayaankazerouni?source=rss-c6f8a00bad49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QNuMZGClvQpvgD1pq_zUDw.jpeg</url>
            <title>Stories by Ayaan Kazerouni on Medium</title>
            <link>https://medium.com/@ayaankazerouni?source=rss-c6f8a00bad49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 01:44:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayaankazerouni/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What makes CS students seek or avoid academic help?]]></title>
            <link>https://ayaankazerouni.medium.com/what-makes-cs-students-seek-or-avoid-academic-help-ce5b1651041a?source=rss-c6f8a00bad49------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce5b1651041a</guid>
            <category><![CDATA[computing-education]]></category>
            <dc:creator><![CDATA[Ayaan Kazerouni]]></dc:creator>
            <pubDate>Sun, 14 Nov 2021 01:06:17 GMT</pubDate>
            <atom:updated>2021-11-17T17:41:22.348Z</atom:updated>
            <content:encoded><![CDATA[<h3>What makes CS students seek or avoid academic help resources?</h3><p>This is an overview of the paper <a href="https://ayaankazerouni.github.io/publications#koli2021help-seeking"><em>Patterns of Academic Help-Seeking in Undergraduate Computing Students</em></a>, appearing at the 2021 <a href="https://www.kolicalling.fi/">Koli Calling</a> conference on computing education research. It was written by my student collaborator Augie Doebling and myself.</p><p>Help-seeking is an expected phase in learning or problem-solving. The process involves a fair bit of self-regulatory skill; a learner must recognise that a problem or difficulty exists, assess whether they need help to surmount it, identify a help resource, and finally seek and process help.</p><p>Undergraduate students tend to have a variety of academic help resources at their disposal. For example, taking <a href="https://www.calpoly.edu/">Cal Poly</a> as a typical example, students can seek help with their coursework from online sources, their peers, instructors, or the departmental peer tutoring centre.</p><p>Much has been written about how students use individual resources, such as <a href="https://dl.acm.org/doi/10.1145/3291279.3339418">TA office hours</a> or <a href="https://dl.acm.org/doi/10.1145/3017680.3017745">Piazza</a>. But what we know holistically about how computing students navigate this array of resources is largely anecdotal. What resources do they tend to use most frequently? Does this differ for different demographic groups? What influences students to approach or avoid certain resources?</p><p>We conducted a mixed-methods study to better understand the help-seeking behaviours of students in the CSSE department at Cal Poly.</p><p>We obtained information about students&#39; help-seeking in two ways:</p><ul><li><strong>Survey: </strong>Distributed in a wide variety of Cal Poly CS courses, asking students about the frequency with which they accessed various help resources.</li><li><strong>Interviews: </strong>A series of one-on-one interviews with students to learn the factors that influence their help-seeking decisions.</li></ul><p>We discussed the following resources (acronyms are for the figure that follows):</p><ul><li>The instructor — in office hours (IN-OH), in class (IN-CL), or online (IN-OC)</li><li>The TA — in class (TA-CL) or online (TA-OC)</li><li>Peers — enrolled in the same class (PEC) or other classes (OP)</li><li>The peer tutoring centre (CSTC)</li><li>Online materials — specific to the course (OM-SC) or not specific to the course (OM-NSC)</li></ul><h3>Frequency of help-seeking</h3><p>We received 138 survey responses about the frequency with which students accessed various help resources.</p><figure><img alt="A bar for each help resource, showing reported frequencies of accessing that resource. The figure indicates that online sources were most frequently used, peers (in the same class) were a close second, followed by the instructor during class hours. Instructor office hours were used less frequently. TAs and the tutoring centre were lease frequently used." src="https://cdn-images-1.medium.com/max/922/1*cQPYcCnrKDTe3Ewon6g4JQ.png" /><figcaption>Frequency of accessing various help resources.</figcaption></figure><p>Students most frequently relied on <strong>online sources</strong>, followed closely by their <strong>peers in class</strong>. They reported modest reliance on the <strong>instructor </strong>for help, preferring to ask questions in class or online rather than going to office hours.</p><p>Students did not report much use of <strong>course TAs</strong> or the <strong>peer tutoring centre</strong>. The former may be because TAs at Cal Poly do not hold office hours like they might at other universities — there is typically much more contact with instructors than with TAs.</p><h3>Trends by student demographics</h3><p>There was no difference in the overall frequency of help-seeking (across all resources) between men and women. However, women reported turning to the “social” help resources more often than men did: they attended instructor office hours and accepted help from peers roughly <em>Once a Week</em> compared to men’s <em>Every Few Weeks</em>.</p><p><strong>Why might this be?</strong> <a href="https://bera-journals.onlinelibrary.wiley.com/doi/10.1002/rev3.3196">Previous research</a> has suggested that women tend to have a better attitude toward help-seeking than men do, viewing it more as a learning strategy and less as a sign of dependence. It’s possible that students who are less inclined to seek help from social sources perceive some level of threat to their self-esteem from the act of seeking help.</p><p>Finally, computing majors reported relying on their peers and online sources more often than did non-computing majors. No other notable patterns were observed for other resources and demographic groups (e.g., ethnicity, prior experience with computing, or academic progress).</p><h3>What makes students approach or avoid help resources?</h3><p>Having discovered trends and correlations regarding frequency of accessing help resources, we turned to interviews to understand why students make the help-seeking decisions that they do.</p><p>We asked students about the primary resources they turn to for academic help, the resources that they tend to avoid, and their reasons for both. A number of themes emerged from our qualitative analysis of interview transcripts.</p><p>First, students tended to progress from informal to formal sources of help: a frequently reported pattern was the progression from<em> online sources </em>to<em> peers</em> t<em>o instructors</em>, where students only progressed to the next resource if the previous resource did not help surmount a problem.</p><p>Below, I describe students’ reasons for <em>using</em> or <em>not using</em> different sources of academic help.</p><h4>Online sources</h4><p>Reasons for using:</p><ul><li><em>Ease of access</em>: Just a few button presses away.</li><li><em>Concrete examples</em>: Sites like StackOverflow were reported as being useful when one is trying to “get the ball rolling” with a new language or API, but less useful for obtaining concept knowledge about a topic.</li></ul><p>Reasons for not using:</p><ul><li><em>Low signal-to-noise ratio</em>: It takes experience and expertise to sort through the wealth of information available through a simple Google search. Students reported that online resources became more useful to them as they became more experienced programmers, but were overwhelming when they were first learning programming.</li></ul><p>Interestingly, some students did not report online sources in their help-seeking process until specifically asked about them; they did not view it as seeking help, but rather viewed it as helping themselves.</p><h4>Peers</h4><p>Reasons for using:</p><ul><li><em>Ease of access: </em>Peers are just a text message away.</li><li><em>Stress-free help: </em>Peers tend to not judge one’s lack of knowledge. There is less (perceived or actual) “threat” from seeking help from a peer than there is from, say, course staff.</li></ul><p>Reasons for not using:</p><ul><li><em>Lack of a peer network: </em>First-year students, transfer students, or students from historically minoritised groups may not have access to a solid network of peers.</li><li><em>Fear of academic dishonesty</em>: Students worried about accidentally breaking rules related to academic dishonesty if they worked too closely with peers. For example, they reported being hesitant to speak in detail about (or ask others about) their programming projects.</li></ul><h4>Instructors</h4><p>Reasons for using:</p><ul><li><em>Depth of content knowledge: </em>Instructors are knowledgeable about their subject matter, and often provide the definitive help needed to surmount a problem.</li><li><em>Depth of pedagogical content knowledge: </em>Instructors have seen many of the common bugs, pitfalls, and strategies used for their assignments, and are best suited to help when a student is struggling.</li><li><em>Forming a connection</em>: Synchronous office hours helped some students form connections with their instructors, making help-seeking and learning a stress-free experience.</li></ul><p>Reasons for not using:</p><ul><li><em>Tacit knowledge: </em>Instructors often have an “expert blind spot”, and the help they give often assumes knowledge that the student (1) doesn’t have, or (2) can’t automatically transfer to their current problem.</li><li><em>Approachability:</em> Students reported that instructors could often be intimidating (or worse, demeaning) when they were asked for help. Importantly, many students reported that poor experiences with one instructor made them less likely to seek help from <em>any </em>instructors in the future.</li></ul><h3>Recommendations for CS instructors or departments</h3><p>Based on students’ responses, we close with some recommendations for reducing the barriers to seeking academic help.</p><ul><li><strong>Online sources —</strong><em>In early courses, model a process for finding information online and identifying high-quality sources.</em> This need not be limited to StackOverflow answers; it can also include official documentation for programming languages or APIs.</li><li><strong>Peers — </strong><em>Feature collaborative work more prominently in early courses.</em> This could include team projects as well as teaching practices like peer instruction or think-pair-share. Featuring more collaborative work in earlier courses would provide students access to peers to work with “legally”, and would help them form peer networks that could last into future courses.</li><li><strong>Instructors — </strong><em>Ensure that classrooms and office hours are welcoming spaces. </em>Instructors play a <em>massive</em> role in shaping the overall climate of a classroom or department. Being cognizant of this outsized impact and taking steps to ensure a welcoming atmosphere could have huge positive implications for student success.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce5b1651041a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fast and Accurate Incremental Feedback for Students’ Software Tests Using Selective Mutation…]]></title>
            <link>https://ayaankazerouni.medium.com/fast-and-accurate-incremental-feedback-for-students-software-tests-using-selective-mutation-674bb2fc009c?source=rss-c6f8a00bad49------2</link>
            <guid isPermaLink="false">https://medium.com/p/674bb2fc009c</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[mutation-testing]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[computing-education]]></category>
            <dc:creator><![CDATA[Ayaan Kazerouni]]></dc:creator>
            <pubDate>Thu, 18 Mar 2021 05:20:53 GMT</pubDate>
            <atom:updated>2021-06-21T21:37:20.712Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fast and Accurate Incremental Feedback for Students’ Software Tests Using Selective Mutation Analysis</h3><p>This is an overview of the paper <em>Fast and Accurate Incremental Feedback for Students’ Software Tests Using Selective Mutation Analysis</em>, published in the Journal of Systems and Software. The paper is <a href="https://www.sciencedirect.com/science/article/pii/S0164121221000029">freely available</a>. My co-authors were <a href="https://davisjam.github.io/">Jamie Davis</a>, <a href="https://arinjoy-basak.github.io/">Arinjoy Basak</a>, <a href="https://people.cs.vt.edu/shaffer">Cliff Shaffer</a>, <a href="https://people.cs.vt.edu/fservant">Francisco Servant</a>, and <a href="https://people.cs.vt.edu/edwards/">Steve Edwards</a>.</p><p>TL;DR: Use the <a href="http://pitest.org/quickstart/mutators/#REMOVE_CONDITIONALS">RemoveConditionals</a> and arithmetic operator deletion (<a href="http://pitest.org/quickstart/mutators/#EXPERIMENTAL_AOD">AOD</a>) mutation operators for fast and reliable mutation analysis.</p><h3>Summary</h3><p>Feedback about students’ software tests is often generated using code coverage criteria (like statement or condition coverage). These can be unreliable given that code coverage is satisfied simply by the execution of the code-under-test, and not by the actual assertions in the tests.</p><p><em>Mutation analysis </em>is a stronger but much more costly criterion for measuring the adequacy of software tests. In this paper, we evaluated the feasibility of existing approaches to mutation analysis for producing automated feedback for student-written software tests. After finding that existing approaches were infeasible, we proposed new approaches for fast and accurate mutation analysis. Finally, we evaluated our proposed approaches for validity on an external dataset of open-source codebases, and report that our results may be generalisable beyond our educational context.</p><p>This post is of interest to Computer Science educators interested in giving students useful feedback about their software testing, and to software engineers interested in using mutation analysis to help them write stronger software tests.</p><h3>Background</h3><p>Software testing is important. As it is increasingly incorporated into undergraduate programming courses, teachers are giving students feedback not only about the correctness of their programs, but also about the quality of their software tests.</p><p>Much of this feedback is based on assessments of test adequacy, most commonly <em>code coverage criteria.</em></p><p>Code coverage criteria are satisfied when structural elements (statements, conditions, etc.) of a program are exercised by a test suite at least once. For example, under <em>statement coverage</em>, the test suite’s adequacy is measured as the percentage of program constructs that are executed by the tests. Code coverage is <strong>fast to compute</strong> and <strong>amenable to incremental feedback.</strong> But it can be <strong>unreliable</strong>, because the criterion is not bound to the <em>assertions </em>in software tests, just to the underlying code that is executed.</p><p><a href="https://en.wikipedia.org/wiki/Mutation_testing"><em>Mutation analysis</em></a> is a far more reliable option. Small changes (<em>mutations</em>) are made to the target program, creating incorrect variants called <em>mutants</em>. The test suite is run against these mutants, and its adequacy is measured as the percentage of mutants that are detected by the test suite (i.e., by a failing test). The different kinds of mutations you could make are called <em>mutation operators.</em></p><p><a href="https://cs.gmu.edu/media/techreports/ISSE-TR-96-01.pdf">Mutation analysis <em>subsumes </em>code coverage as a test adequacy criterion</a>, and has been shown to be a <strong>reliable measurement of test adequacy. </strong>It can also be used to produce <strong>incremental feedback: </strong>I don’t need a student to have finished a project to give them feedback about their tests.</p><h4>Reducing the cost of mutation analysis</h4><p>Unfortunately, mutation analysis can be <strong>prohibitively expensive </strong>computationally.<strong> </strong>The number of mutants produced for even a moderately sized project (~1 KLoC) can reach well into the thousands. Running the test suite for each of these mutants can take several minutes, sometimes hours.</p><p>Significant research effort has been devoted to reducing this cost. One such approach is <em>selective mutation. </em>The main idea behind selective mutation is to select a subset of mutation operators that give you the best “bang for your buck”. That is, out of the <strong>Full </strong>set of mutation operators (all available operators) you want a subset that gives you a reliable test adequacy score — one that is close to the “true” thoroughness of your tests — while producing a small number of mutants.</p><p>Numerous such operator subsets have been proposed. One key example is the <a href="https://ieeexplore.ieee.org/document/6823861"><strong>Deletion</strong></a><strong> </strong>set, originally proposed by Roland Untch and reified by Delamaro et al.</p><p>Deletion operators create mutants by systematically deleting program constructs. This simple mutation scheme results in significantly fewer mutants. For example, if we were to remove the arithmetic operator in the expression a + b, we just create two mutants: a and b. This is in contrast to the <em>four</em> mutants that would be created by arithmetic operator <strong>replacement</strong><em>: </em>a — b, a / b, a * b, a % b.</p><p>We used the mutation analysis system <a href="http://pitest.org/">PIT</a>, which is built for speed and scalability. We approximated the Deletion set in PIT to be:</p><ul><li><strong>RemoveConditionals</strong>, which replaces conditional statements with boolean literals, i.e., true (forcing the execution of the “if” branch) or false (forcing execution of the “else” branch)</li><li><strong>Arithmetic operator deletion (AOD). </strong>E.g., the expression a + b would produce the mutants a and b, removing the arithmetic operator (and one operand) entirely.</li><li><strong>NonVoidMethodCalls,</strong> which replaces calls to non-void methods with the default values for the specific return type. That is, int-returning method calls would be replaced with 0, Object-returning method calls would be replaced with null, etc.</li><li><strong>VoidMethodCalls,</strong> which simply removes calls to methods that do not return anything.</li><li><strong>MemberVariable,</strong> which removes assignments to instance variables.</li><li><strong>ConstructorCalls,</strong> which replaces calls to constructors with null.</li></ul><h3>Fast and accurate mutation-based feedback</h3><p>Students in our courses are allowed and encouraged to make many incremental submissions to the auto-grader to help them ensure they’re on the right track. As deadlines approach, this can result in bursty traffic placing enormous load on the server.</p><p>We ran mutation analysis on 1389 submissions in two courses in the CS program at Virginia Tech: a second year course on Software Design and Data Structures, and a third-year course on Data Structures and Algorithms. Projects were implemented in Java, and students were required to turn in <a href="http://junit.org/">JUnit</a> test suites with their project submissions.</p><p>Analysis was conducted on a machine with similar specifications as the one serving our auto-grading infrastructure, <a href="https://web-cat.github.io/">Web-CAT.</a> We did not eliminate <em>equivalent mutants </em>from our data-set. These cannot be automatically identified, which makes eliminating them from our corpus a daunting prospect.</p><p>We grouped submissions by source lines of code (SLoC), ranging from ~150 LoC to ~1200 LoC.</p><figure><img alt="A histogram showing project groupings. Group 1, with submissions smaller than 341 lines of code, contains 672 submissions. Group 2, with submissions smaller than 666 lines of code, contains 353 submissions. Group 3, with submissions smaller than 1097 lines of code, contains 245 submissions. Group 4, with the largest submissions, contains 119 lines of code." src="https://cdn-images-1.medium.com/max/679/1*apSNE-rg9c4jk1mNcZYMJA.png" /><figcaption>Groups of submissions based on source lines of code (SLoC). Dashed lines indicate group boundaries.</figcaption></figure><p>For each operator subset, we looked at</p><ul><li><strong>Computational cost: </strong>the running time in seconds (i.e., how long would a student spend twiddling their thumbs waiting for feedback?) and the number of mutants produced per thousand lines of code</li><li><strong>Accuracy</strong> at predicting coverage under the Full set. That is, if mutants under a given subset are killed by the test suite, how likely is it that the test suite will also kill mutants under the Full<strong> </strong>set?</li></ul><p>Preliminary results showed that comprehensive mutation (i.e., using all available mutation operators) was certainly too slow for our purposes. For submissions in the larger submissions groups, even the Deletion set took too long (nearly a minute) to produce feedback.</p><p>That said, the Deletion set showed promise. As Delamaro and friends reported, it produces a remarkably good approximation of mutation adequacy at a fraction of the computational cost of comprehensive mutation.</p><p>Can we reduce this cost further?</p><h4>Reducing the cost of the Deletion set</h4><p><em>Do we need all six Deletion operators to make a useful approximation of mutation adequacy?</em></p><p>We used forward selection to determine an appropriate ordering of Deletion operators, set up as follows:</p><ul><li><strong>Dependent variable: </strong>Mutation coverage using all available operators</li><li><strong>Independent variables: </strong>Mutation coverage under each individual Deletion operator</li><li><strong>Procedure: </strong>Starting from an empty set of operators, we iteratively added the single operator that most improved a model predicting comprehensive mutation coverage, stopping when all Deletion operators were included or when the model could no longer improve.</li></ul><p>All Deletion operators were included, in the following order: RemoveConditionals, AOD, NonVoidMethodCalls, VoidMethodCalls, MemberVariable, ConstructorCalls</p><p>Then, we examined the cost and effectiveness of incremental slices of this ordering:</p><ul><li><strong>1-operator subset, </strong>containing only RemoveConditionals</li><li><strong>2-operator subset, </strong>containing RemoveConditionals and AOD</li><li><strong>3-operator subset,</strong> containing RemoveConditionals, AOD, and NonVoidMethodCalls</li><li>…continued until the entire Deletion set is included</li></ul><p><strong>Result</strong></p><p>We found that most of the Deletion set’s effectiveness comes from the first two operators, i.e., RemoveConditionals and AOD. Inclusion of additional operators drives up the cost, but with little improvement to accuracy.</p><figure><img alt="Four subplots, each with four box plots showing operator subset cost, and line plots showing operator subset accuracy." src="https://cdn-images-1.medium.com/max/1024/1*6r6eJDuY8VyVL8_7c9UoJA.png" /><figcaption>The cost and accuracy of our proposed incremental subsets of operators. For each subplot, the left axis represents cost (# mutants per KSLoC) and the right axis represents accuracy (Adjusted R² predicting Full coverage) Y-axes are shared across subplots. Inline text at the bottom of the charts indicates the median running time on our server.</figcaption></figure><p>In the figure above,</p><ul><li>Each column represents a single submission group,</li><li>Each box plot represents the cost distribution of a subset for that submission group, in mutations-per-thousand-LoC,</li><li>Each blue dot represents the percent of variance in comprehensive mutation that is explained by that subset for the given submission group</li></ul><p>We can see that for submission groups 2–4, the cost drops precipitously from Deletion → 3-op → 2-op → 1-op, while the accuracy stays more or less the same. For the smaller submissions in group 1, it’s possible that they simply do not provide enough opportunities for mutation to take place, so accuracy takes a huge hit for each mutation operator that is excluded.</p><p>Some key takeaways:</p><p><strong>The </strong><strong>RemoveConditionals operator, by itself, is enormously effective</strong> for the larger, more complex submissions, pushing 90% adjusted <em>R</em>² for group 4 submissions (see the 1-op box plot in the rightmost subplot). For groups 2 and 3, it still does pretty well, but requires the inclusion of AOD operator to cross the 90% threshold.</p><p><strong>Which operators are most useful seems tied to the project itself. </strong>It is no surprise thatRemoveConditionals does not do so well for the group 1 submissions: they are of minimal cyclomatic complexity, meaning they contain few conditional statements. Including AOD substantially improves the approximation, because these projects tend to focus more on arithmetic operations and less on data structure implementations (in contrast to the submissions found in the Data Structures and Algorithms course).</p><h3>Validating our results</h3><p>At this point, it looks like mutation analysis using RemoveConditionals or RemoveConditionals+AOD are feasible options for giving our students fast and reliable feedback about their test suites.</p><p>The question now is: are these results generally useful? Or are they specific to submissions produced by students in our courses?</p><p>We turn to a <a href="http://pages.cs.aueb.gr/~kintism/papers/scam2016/">data-set</a> released by Marinos Kintis and colleagues containing programs, mutants, and mutation-adequate test suites, drawn from 6 open-source Java projects.</p><p>Using this dataset, we evaluated the cost and effectiveness of the Deletion, 3-op, 2-op, and 1-op subsets.</p><p>For each subset, we examined:</p><ul><li><strong>Reliability</strong>, measured by creating a <em>subset-adequate test suite</em>, and seeing how it held up using <em>all possible mutants</em>. In other words, if a developer stopped testing when they satisfied a subset, how thorough would their test suite be under comprehensive mutation?</li><li><strong>Cost, </strong>measured as the percentage of all possible mutants that were created by the subset.</li></ul><p>Kintis et al. also hand-marked equivalent mutants in their published data-set. This gives us an opportunity to test our operator subsets in the absence of these mutants, addressing a limitation present in our analysis of our students’ submissions.</p><h4>Result</h4><p>Results were largely in agreement with the study described above.</p><p>In terms of <strong>reliability</strong>, it appeared that the incremental subsets were nearly as effective as the entire Deletion set, with the 3-op subset (NonVoidMethodCalls and beyond) bringing diminishing returns. This is similar to our original results.</p><figure><img alt="Four box-plots shows the Mutation score of the Deletion, 3-op, 2-op, and 1-op subsets. The median mutation scores are 0.95, 0.95, 0.95, and 0.9, respectively." src="https://cdn-images-1.medium.com/max/542/1*6zdVBGNqRxMrEwmsByWcHg.png" /><figcaption>Mutation coverage: Proportion of Full mutants detected by the subset-adequate test suite.</figcaption></figure><p>The <strong>cost</strong> naturally decreases in the order Deletion → 3-op → 2-op → 1-op.</p><figure><img alt="The cost in terms of the proportion of mutants produced by the Deletion, 3-op, 2-op, and 1-op subsets. The median proportions are around 0.155, 0.148, 0.110, 0.060, respectively." src="https://cdn-images-1.medium.com/max/541/1*HUpf9uZAljDY-bdMFLziHA.png" /><figcaption>Computational cost: Number of mutants produced by each subset, expressed as a proportion of the Full number of mutants.</figcaption></figure><h3>Final remarks</h3><p>These results suggest that the RemoveConditionals operator is a feasible option for fast and accurate mutation analysis. And this makes sense, because RemoveConditionals can be thought of as a stronger form of condition coverage—only instead of simply requiring that all conditions evaluate to true and false at least once, it is satisfied when the tests <em>depend on </em>the conditions evaluating to true or false at least once. The difference is subtle, but results in much more thorough tests when used as a basis for measuring test adequacy.</p><p>Including the AOD operator provides an even stronger criterion, and it especially useful when the code-under-test has few logical branches. Including further Deletion operators drives up the cost but without improvements in effectiveness.</p><p>It remains to be seen whether mutation-based testing feedback using one or both of these operators helps students to produce stronger test suites. Future work should involve evaluating mutation analysis for its utility as a device for practice and feedback with software testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=674bb2fc009c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Explicit Milestones on Intermediate Software Projects are Pretty Not Bad]]></title>
            <link>https://ayaankazerouni.medium.com/explicit-milestones-on-intermediate-software-projects-are-pretty-not-bad-efc9fd8fd1fe?source=rss-c6f8a00bad49------2</link>
            <guid isPermaLink="false">https://medium.com/p/efc9fd8fd1fe</guid>
            <category><![CDATA[procrastination]]></category>
            <category><![CDATA[computing-education]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Ayaan Kazerouni]]></dc:creator>
            <pubDate>Thu, 15 Oct 2020 02:35:04 GMT</pubDate>
            <atom:updated>2021-01-16T22:20:53.435Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is an overview of the research paper “</em><a href="https://ayaankazerouni.github.io/publications#sigcse2021milestones"><strong><em>The Impact of Programming Project Milestones on Procrastination, Project Outcomes, and Course Outcomes</em></strong></a><strong><em>” </em></strong><em>by </em><a href="https://people.cs.vt.edu/~shaffer"><em>Cliff Shaffer</em></a><em> and myself, to appear at </em><a href="http://sigcse2021.sigcse.org/"><em>SIGCSE 2021</em></a><em>.</em></p><h3>Summary</h3><p>Undergraduate CS students often lack experience working on large, un-scaffolded, and long-running software projects. When they encounter such projects for the first time in intermediate programming courses, they do so without any procedural knowledge for how to go about tackling them. As a result, many of them struggle to complete these projects on time or correctly. As educators, we can do a better job supporting students as they approach these projects.</p><p>In the programming projects in the third-year Data Structures course at Virginia Tech, we started giving students <em>explicit project milestones </em>with intermediate deadlines, along with the project requirements. The goal is to give students guided practice with project decomposition, time management, and successful project completion.</p><p>In a quasi-experiment to determine the impact that milestones had on timeliness, project correctness, and course outcomes, we found that:</p><ul><li>Milestones had a considerably strong effect on timeliness, reducing the rate of late submissions by nearly 30%</li><li>Students with milestones produced projects with slightly higher correctness than students without milestones</li><li>Milestones had little effect on frequencies of course outcomes, with its positive effects limited to the “students in the middle”. Unfortunately, just as many students failed the course, and just as many students withdrew from the course , with or without milestones.</li></ul><p>Read on for more information.</p><h3>Background</h3><p>Students in intermediate programming courses often work on large, un-scaffolded, and relatively long-running software projects. These tend to be larger and more complex than projects they have worked on in the past, and consequentially bring with them a set of self-regulatory challenges that the students may be ill-equipped to deal with. No longer are assignment specifications given as easy-to-approach bullet-lists of requirements. Instead, students are presented with a “wall of prose” from which they must extract requirements, plan their development, and get to work.</p><p>An expert software developer has the domain-specific self-regulatory skills to tackle such a project. She can decompose such a project into sub-goals and budget the time needed to tackle each one. Novices, however, are often unable to do this decomposition themselves, and are famously poor at estimating the time needed for a development task [1]. So instead, they are left facing the project with no clear place to start, low self-efficacy regarding their ability to finish, and not much prior experience from which to draw strategies or confidence.</p><p>A common manifestation of students’ ill-preparedness to approach these projects is <em>procrastination</em>, the “quintessential self-regulatory failure” [2]. According to <strong>Science</strong>, there are many reasons for procrastination. Chief among them are <em>task-related</em> reasons. For example, we know that people are more likely to procrastinate:</p><ul><li>when the task’s outcome is expected farther in the future [3],</li><li>when they have low expectancy of successfully completing the task [3], and</li><li>when the task offers numerous junctures for decision-making (e.g., the student doesn’t know where to start) [4]</li></ul><p>Can we use this knowledge to reduce the frequency of procrastination on these projects and ameliorate its negative effects? I <a href="https://medium.com/@ayaankazerouni/developing-procrastination-feedback-for-student-software-developers-1652de60db7f?source=friends_link&amp;sk=8edaed4ec522c1c3e9c56c9825bae4fc">previously wrote</a> about the pervasive and pernicious nature of procrastination in this context—students start late, work late, and finish late, often resulting in degraded project outcomes.</p><p>In this post, I describe a simple classroom intervention that helped reduce the rate of late submissions on programming projects by about 30%, and helped improve class performance in the intermediate Data Structures and Algorithms (DSA) course at Virginia Tech.</p><h3>Explicit project milestones</h3><p>Our intermediate DSA course involves three to four programming projects, each of which is worked on for about a month. Each project requires students to build one or more interacting data structures—for example, a hash table or a PR quad-tree. Projects are un-scaffolded (no starter code) and students are free to design their own solutions. They are allowed to make as many submissions as they like to our auto-grader, which tests their solutions using acceptance tests written by the course staff.</p><p>Unfortunately, these projects usually have distressingly high rates of late submissions and failing grades, and about 25–30% of students either fail or withdraw from the course.</p><p>We believe that poor self-regulation and project management (often manifesting as procrastination) may be a significant contributor to these poor outcomes. Therefore, we instituted <em>explicit project milestones—</em>we broke down projects into sub-tasks that students needed to complete by intermediate deadlines. We expected to observe reduced procrastination stemming from</p><ul><li>outcomes that are too far in the future to be valued in the present,</li><li>students not being able to decompose a large engineering task into manageable sub-tasks, and</li><li>low expectancy of success, because completing each successive sub-task is likely to increase the student’s self-efficacy regarding the larger overarching task</li></ul><p>The milestones themselves were pretty straightforward, and checkable using our auto-grading infrastructure. For any given data structure (or database made up of interacting data structures), they were as follows:</p><ul><li><strong>Milestone 1: </strong>Make a first submission to the auto-grader<strong> </strong>(speaking as a former instructor for this course, this was surprisingly effective at making students start thinking about the project early)</li><li><strong>Milestone 2: </strong>Complete the <em>insertion</em> operation</li><li><strong>Milestone 3: </strong>Complete the <em>search </em>and<em> update </em>operations</li><li><strong>Final submission</strong>: Complete the <em>removal</em> operation</li></ul><p>Done in that order, the <em>removal</em> operation is completed last. This is good because removal is often the hardest-to-implement operation in many data structures, involving complex structural rearrangements (e.g., re-ordering a binary search tree, or re-balancing a B+ tree). Our hope is that the experience of successfully completing the other, simpler operations a week or two earlier helps build the student’s self-efficacy regarding the more difficult sub-task ahead.</p><h3>How helpful were the milestones?</h3><p>We instituted Milestones in the Spring of 2016. We are interested in knowing if the milestones had any impact on procrastination, project outcomes, or course outcomes. So we compared outcomes in the “milestones semester” (Spring 2016) with outcomes in a “no milestones semester”—Fall 2013. In both semesters, the course was taught by the same instructor (Cliff), and the projects were of comparable difficulty. In terms of LoC and cyclomatic complexity, there were no differences between project submissions in the two semesters.</p><p>We measured differences in terms of <em>timeliness</em>, <em>project correctness, </em>and <em>course outcomes. </em>I present a high-level overview of our results below.<em> </em>More details can be found in the <a href="https://ayaankazerouni.github.io/publications#sigcse2021milestones">paper</a>.</p><h4>Timeliness</h4><p>Milestones were pretty effective! We measured the <em>rate of late submissions</em> and the <em>time of project completion</em> for the two semesters. We checked for differences between the two semesters as well as differences within the milestones semester based on the number of milestones completed.</p><ul><li>The rate of late submissions dropped from 41% with milestones to 12% without milestones</li><li>Within the treatment semester, students who completed 0 or 1 milestones tended to finish on the day of or after the deadline, while students who completed 2 or 3 milestones tended to finish their projects a day or more before the deadline</li></ul><p>Results are summarised in the figure below.</p><figure><img alt="Two plots showing that students who completed more milestones finished their projects earlier than those who didn’t." src="https://cdn-images-1.medium.com/max/503/1*6YCzRngPnVRkJUkb7RJ22Q.png" /><figcaption>Completion times (in terms of hours before or after the deadline) with and without milestones. Whiskers are the 10th and 90th percentiles. Outliers beyond these percentiles are omitted.</figcaption></figure><h4>Project correctness</h4><p>As I stated above, a lack of self-efficacy or discipline-specific procedural knowledge may be contributing to students’ poor outcomes on these projects. In addition to late submissions, students are prone to submitting incorrect or inadequately tested solutions. So we checked to see if milestones had any impact on project correctness.</p><p>Project correctness was defined as the percentage of instructor-written acceptance tests that the student’s submission passed. We checked for differences in correctness between submissions in the two semesters, and differences within the milestones semester based on the number of milestones completed.</p><ul><li>The mean correctness score increased slightly, from 72% (sd = 20%) without milestones to 76% (sd = 21%) with milestones</li><li>Students who completed 2 or more milestones tended to produce projects with higher correctness than those who completed fewer milestones</li></ul><figure><img alt="Two plots showing that students who completed more milestones produced projects with higher correctness than those who didn’t" src="https://cdn-images-1.medium.com/max/511/1*7tthJkb4ir-9eoxxgLM9wg.png" /><figcaption>Correctness scores with and without milestones.</figcaption></figure><h4>Course outcomes</h4><p>Having seen that milestones had a positive impact on timeliness and correctness, we now turn to course outcomes.</p><p><strong>First</strong>, we examine the <em>pass</em>, <em>fail</em>, and <em>withdrawal</em> rates in the course.</p><p>Students at our institution tend to find this course challenging, and it is common to see 25–30% of students withdraw from the course or fail to achieve a grade that will let them progress on to subsequent courses.<br>Success in the course is largely driven by success on the projects, and students may be withdrawing from the course based on early bad outcomes. So did milestones help to brighten this gloomy picture?</p><p>Sadly, no.</p><p>We first checked for differences in the frequency of the following course outcomes:</p><ul><li><em>Pass</em>, where the student achieved a grade that let them move on in the major</li><li><em>Fail</em>, where the student completed the course, but would need to take it again before moving on</li><li><em>Withdraw,</em> where the student did not complete the course¹</li></ul><p>We didn’t find any differences in these outcomes between the two semesters. This is apparent in the figure below.</p><figure><img alt="A bar chart showing no differences in pass, fail, and withdraw rates between the two semesters." src="https://cdn-images-1.medium.com/max/465/1*JDv8qxZWHJGjqxZePjSw7g.png" /><figcaption>Milestones seem not to have affected course Pass, Fail, and Withdraw rates.</figcaption></figure><p><strong>Next</strong>, we explored the impact that milestones had on frequencies of <em>final course grades</em>, which were a composite of project performance, exam performance, and performance on mastery-based homework assignments. Differences in these frequencies could indicate the specific groups of students who were helped or not helped by the milestones intervention.</p><p>We examined differences in the frequencies of <em>A, B, C, D, </em>and <em>F</em> grades between the two semesters. Results are in the figure below.</p><figure><img alt="Bar chart showing that the number A grades increased with the introduction of project milestones." src="https://cdn-images-1.medium.com/max/465/1*dlqO_XeU5-JjPhNX1_EX-A.png" /><figcaption>Final course grades with and without milestones.</figcaption></figure><p>More students received <em>A</em> grades in the milestones semester (54%) than in the semester without milestones (34%). In contrast, fewer students received <em>B</em> grades in the milestones semester (20%) than in the semester without milestones (38%). We found no other differences.</p><p>Taken together, the results above suggest that the positive effects of the milestones were more pronounced for the students “in the middle”: many <em>B-</em>level students became <em>A</em>-level students, but unfortunately the <em>C</em>-, <em>D-, </em>and <em>F</em>-level students continued to struggle in the course.</p><p>It seems as though this intervention, while helpful, failed to assist the most vulnerable students in the course. Other supports and instructional changes are needed to help those students.</p><h3>What did students think of the milestones?</h3><p>We included this question in an informal end-of-term survey:</p><p><em>How helpful did you find the Milestones in completing your programming projects on time? Please explain why you gave this response.</em></p><p>75% of students found the milestones to be <em>Helpful</em> or <em>Very helpful. </em>Students mentioned that milestones helped them avoid procrastination, encouraged them along the path to project completion, and helped them decompose the project.</p><p>15% of students were <em>Neutral</em> about the milestones. These students indicated that they were already on track without the milestones.</p><p>10% of students who found milestones to be <em>Not helpful</em> or <em>Not at all helpful, </em>and indicated that milestones were stressful and sometimes interfered with their existing project development plans.</p><p>We interpret the above to mean that perceptions of the milestones were largely positive, though some students found them to be unnecessary or stressful.</p><p>Note that this was just a single question in a survey — this is not a detailed qualitative analysis of students’ attitudes toward assigned project milestones.</p><blockquote>Aside: I’ve used milestones when teaching this course over the Summer session, and it may have been a blunder in that context. Summers tend to be intense, squeezing 15 weeks of material into 6 weeks of daily instruction. Month-long projects are 2-week projects. It’s hard to space out milestones appropriately in such a short timeframe (avoiding weekend deadlines, etc.). I had a student mention that they worked a job during the week, and did coursework on weekends. Milestones made this difficult.</blockquote><h3>Final Remarks</h3><p>A possible criticism of this work is that the ability to decompose and tackle an un-scaffolded programming project is a core competency that students are expected to learn during intermediate programming courses, and they will no longer do so because “we did it for them”.</p><p>Fundamentally, the problem with this is that we don’t really teach these skills at this stage in the curriculum. So we end up putting students through a “trial-by-fire” in these courses, and those who make it can continue on in the major. Ironically, these are the students who reach the later software engineering and capstone courses in which we <em>do</em> teach these skills.</p><p>Milestones are by no means perfect, but we believe they help students (1) by making them practice a successful approach to large programming projects, and (2) by giving them the experience of successfully completing these projects, that they can then draw on in later courses. Effects of explicit milestones going into later courses is an open question.</p><blockquote>I’d be surprised to learn that this is a novel practice. But I haven’t witnessed this at other institutions I’ve been affiliated with, and the literature review didn’t turn up anything in the context of intermediate project development. If your courses use milestones or something similar, how’s it going for you?</blockquote><h3>Footnotes</h3><p>¹ Withdrawing is not always a bad thing; maybe they just didn’t want to learn the subject. But computing faces a retention crisis due a variety of external and internal factors, and a student in a third-year course probably <em>did</em> want to complete the course. So here, we treat it as a Bad Thing™.</p><h3>References</h3><p>[1] <a href="https://dl.acm.org/doi/abs/10.1145/2591062.2591159?casa_token=1VhxKrPvgNEAAAAA:gBxtxnkz-FymyGmTz_eYpcm9W_NiT-3cqOVS-6dixXgZ7l4H5Udg1nkoAnl6-I6gNCi02R06dpHC">Investigating the Skill Gap between Graduating Students and Industry Expectations</a></p><p>[2] <a href="https://prism.ucalgary.ca/bitstream/handle/1880/47914/Steel_PsychBulletin_2007_Postprint.pdf?sequence=1">The Nature of Procrastination: A Meta-Analytic and Theoretical Review of Quintessential Self-Regulatory Failure</a></p><p>[3] <a href="https://onlinelibrary.wiley.com/doi/pdf/10.1002/j.2168-9830.2001.tb00599.x?casa_token=FlhyBHTP6skAAAAA:Ajf9yqCccKjcxPBjyQ1XfsoCWmpIuAa3nmF6ACHGlD-NodAG7ctPWTSBZL25569EWGP7ifAqNl490g">Understanding the Role of Self-Efficacy in Engineering Education</a></p><p>[4] <a href="https://ieeexplore.ieee.org/document/7017768">Expert vs. novice: Problem decomposition/recomposition in engineering design</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efc9fd8fd1fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Assessing Incremental Testing Practices and Their Impact on Project Outcomes]]></title>
            <link>https://ayaankazerouni.medium.com/assessing-incremental-testing-practices-a25a7cf9108?source=rss-c6f8a00bad49------2</link>
            <guid isPermaLink="false">https://medium.com/p/a25a7cf9108</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[computing-education]]></category>
            <category><![CDATA[research-summary]]></category>
            <dc:creator><![CDATA[Ayaan Kazerouni]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 04:04:55 GMT</pubDate>
            <atom:updated>2020-10-13T03:11:29.860Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a brief overview of the research paper “</em><a href="https://ayaankazerouni.github.io/publications#sigcse2019paper"><strong><em>Assessing Incremental Testing Practices and Their Impact on Project Outcomes</em></strong></a><em>”, published at </em><a href="https://doi.org/10.1145/3287324.3287366"><em>SIGCSE 2019</em></a><em>. My co-authors were </em><a href="http://people.cs.vt.edu/~shaffer/"><em>Cliff Shaffer</em></a><em>, </em><a href="https://scholar.google.com/citations?user=5pV6DQ4AAAAJ&amp;hl=en&amp;oi=sra"><em>Steve Edwards</em></a><em>, and </em><a href="http://people.cs.vt.edu/fservant/"><em>Francisco Servant</em></a><em>.</em></p><p>Software testing is the most common method of ensuring the correctness of software. As students work on relatively long-running software projects, we would like to know if they are engaging with testing consistently through the life-cycle. The long-term goal is to provide students with feedback about their testing habits <em>as they work on projects</em>.</p><p>This post is aimed at computing educators, researchers, and engineers.</p><p>We examined the programming effort applied by students during (unsupervised) programming sessions as they worked on projects, and measured the proportion of that effort that was devoted to writing tests. This measurement is useful because it lets us avoid the “test-first” or “test-last” dichotomy and allowed for varying styles and levels of engagement with testing over time. It can also be easily measured in real-time, facilitating automated and adaptive formative feedback.</p><h3>Summary</h3><p><strong>Goal</strong></p><ul><li>To assess a student’s software test<em>ing, </em>not just their software <em>tests</em></li><li>To understand how various levels of engagement with testing relate to project outcomes</li></ul><p><strong>Method</strong></p><ul><li>Collect high-resolution project snapshot histories from consenting students’ IDEs and mine them for insight about their testing habits</li><li>Test the relationships between students’ testing habits and their eventual project correctness and test suite quality</li></ul><p><strong>Findings</strong></p><p>Unsurprisingly, we found that when more of each session’s programming effort was devoted to testing, students produced solutions with higher correctness and test suites with higher condition coverage. We also found that project correctness was unrelated to whether students did their testing before or after writing the relevant solution code.</p><p>Our findings suggest that the <em>incremental</em> nature of testing was more important than whether the student practiced “test-first” or “test-last” styles of development. The within-subjects nature of our experimental design hints that these relationships may be causal.</p><h3>Motivation</h3><p>Students and new software engineering graduates often display poor testing ability and a disinclination to practice regular testing [1]. It is now common practice to require unit tests to be submitted along with project solutions. But it is unclear if students are writing these tests incrementally as they work toward a solution, or if they are following the less desirable “code a lot, test a little” style of development.</p><p>Learning a skill like incremental testing requires practice, and practice should be accompanied by feedback to maximise skill acquisition. But we cannot produce feedback about practice without observing it. We conducted a study in our third-year Data Structures &amp; Algorithms course to (1) measure students’ adherence to incremental test writing as they worked on large, complex programming projects, and (2) understand the impact that their test writing practices had on project outcomes.</p><p>We focused on addressing two challenges to the pedagogy of software testing:</p><p><strong><em>First</em>, </strong><em>existing testing feedback tends to focus on product rather than process.</em> That is, assessments tend to be driven by “post-mortem” measures like code coverage, all-pairs execution, or (rarely) mutation coverage achieved by students’ submissions. Students’ adherence to test-oriented development processes as they produce those submissions is largely ignored.</p><p>We addressed this by measuring the balance of students’ test writing vs. solution writing activities <em>as they worked on their projects. </em>If we can reliably measure students’ engagement with testing as they work on projects, we can provide formative feedback to help keep them on track in the short term, and help them form incremental testing habits in the long term.</p><p><strong><em>Second, </em></strong><em>there is a lack of agreement on what constitutes effective testing process. </em>Numerous researchers have presented (often conflicting [2,3]) evidence about the effectiveness of <em>test-driven development</em> (TDD) and <em>incremental test-last</em> (ITL) styles of development. But these findings may not generalise to students learning testing practices, and the conflicting evidence muddies the issue of <em>what exactly</em> we should teach or prescribe.</p><p>We addressed this by avoiding the “TDD or not” dichotomy. Students’ (and indeed, professionals’) engagement with testing does not stay consistent over time, either in kind or in volume [4,5]. Therefore, we didn’t attempt to classify student work as following TDD or not. Instead, we measured the extent to which they balanced their test writing and solution writing activities for increments of work over the course of their projects<em>. </em>This allowed us to more faithfully represent and study their varying levels of engagement with testing as they worked toward solutions.</p><h3>Measuring Incremental Test Writing</h3><h4>Context and data collection</h4><p>Students in our context are working on software projects that are larger and more complex than what they have encountered in previous courses. Success usually necessitates adherence to disciplined software process, including <a href="https://medium.com/@ayaankazerouni/developing-procrastination-feedback-for-student-software-developers-1652de60db7f">time management</a> and regular testing. We studied roughly 150 students working on 4 programming assignments over a semester (~3.5 month period).</p><p>We used an <a href="https://github.com/web-cat/eclipse-plugins-importer-exporter/tree/DevEventTrackerAddition">Eclipse plugin</a> to automatically collect frequent snapshots of students’ projects as they worked toward solutions. This snapshot history allowed us to paint a rich picture of a project’s evolution. In particular, it let us look at how the test code and solution code for a project emerged over time.</p><h4>Proposed measurements of testing effort</h4><p>Using these data, we measured the <em>balance</em> and <em>sequence</em> of students’ test writing effort with respect to their solution writing effort. I describe these measurements below.</p><p>Consider the following figure, which shows an example sequence of developer activity created from synthetic data. Colours indicate methods in the project; solid and shaded blocks are solution and test code, respectively; and groups of blocks indicate work sessions.</p><figure><img alt="Groups of adjacent blocks of different colours. Some blocks are solid and some are shaded." src="https://cdn-images-1.medium.com/max/1024/1*0bOVJm65T3N_XYzlmJ95Mw.png" /><figcaption>An example sequence of developer activity (synthetic data).</figcaption></figure><p>We can derive measurements of balance and sequence of testing with this synthetic data in mind. The measures are summarised in the next figure.</p><p>In terms of <strong>balance</strong>, we considered testing effort in terms of <em>space</em> (methods in the project), <em>time</em> (work sessions), both, or neither.</p><ul><li><strong>Neither: </strong>how much total testing took place over the course of the project and its lifecycle? (<em>POB</em> in the figure below)</li><li><strong>Space only:</strong> how much testing took place for each method in the project? (<em>MOB</em>)</li><li><strong>Time only: </strong>how much testing took place during each work session? (<em>PSB</em>)</li><li><strong>Both time and space: </strong>how much testing took place for each method during each work session? (<em>MSB</em>)</li></ul><p>Each measurement is a proportion, i.e., the proportion of all code — written <em>in a work session</em> or <em>for a method</em> or <em>on the entire project — </em>that was test code. So if a student wrote 100 LoC in a work session, and 20 of them were test code, the proportion for that work session would be 0.2.</p><p>In terms of <strong>sequence</strong>, we measured the extent to which students tended to write test code before finalising the solution code under test (<em>MOS </em>below). This was measured as the proportion of test code devoted to a method that was written <em>before</em> the method was finalised (i.e., before it was changed for the last time).</p><p>Note that this is different from measuring adherence to “TDD or not”. Instead of classifying a student’s work (in a work session, or on a method, etc.) as strictly test-first or test-last, we measure this concept on a continuous scale. This allows a more nuanced discussion of students’ tendencies to write test code earlier or later with respect to the solution code that is being tested.</p><p>Measurements are depicted in the figure below. All measurements were aggregated as medians for each project.</p><figure><img alt="Multiple rows of groups of adjacent blocks. Each row contains a different ordering of the blocks." src="https://cdn-images-1.medium.com/max/1024/1*GvlUoV5pscmgdv-2v9r9bg.png" /><figcaption>Measurements to be derived from a programming activity stream. Each row depicts a different way of aggregating the events from the figure above.</figcaption></figure><h3>Findings</h3><p>With these measurements in hand, we are able to examine students’ incremental testing practices and their impacts on project outcomes.</p><h4>To what extent did students practice incremental testing?</h4><p>Using the measurements we described, we can make observations about how students distributed their testing effort as they worked on projects.</p><p>The measurements are summarised in the figure below. The first four box-plots (in blue) represent measures of the balance of test writing effort<em>. </em>The fifth box-plot (in orange) represents proportion of test writing effort devoted before the relevant solution code was finalised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*yuFRpw0WLuKZygHM-jJ3yw.png" /><figcaption>Distributions of testing effort measurements described above.</figcaption></figure><p>Our findings were as follows.</p><p><strong>Balance of testing effort</strong></p><ul><li>Students tended to devote about 25% of their total code writing effort to writing test code (<em>POB</em>)</li><li>Within individual work sessions, a majority of students devoted less than 20% of their coding effort to writing tests (<em>PSB</em>)</li><li>The median method seemed to received a considerable amount of testing effort (<em>MOB, MSB</em>), possibly attributable to the way we tied solution methods and test methods together¹</li></ul><p>The lower proportions of testing effort observed per work session, relative to the total project testing effort, suggests that some sessions tend to see more testing effort than others. <a href="https://ayaankazerouni.github.io/assets/publications/quantifying-incremental-development-procrastination.pdf">Prior work</a> suggests that this increased testing tends to take place toward the end of the project life-cycle, to satisfy condition coverage requirements imposed on students as part of the programming assignments.</p><p><strong>Sequence of testing effort</strong></p><ul><li>In an overwhelming majority of submissions (85%), students tended to do their testing <em>after</em> the relevant solution methods were finalised (<em>MOS</em>)</li></ul><h4>How did project outcomes relate to the balance and sequence of test writing activities?</h4><p>We measured the relationship between the measurements described above and two outcomes of interest:</p><ul><li><em>Correctness</em>, measured by an instructor-written oracle of reference tests</li><li><em>Code coverage</em>, measured as the condition coverage achieved by the student’s own test suite</li></ul><p>We used linear mixed-effects models, with the outcome of interest as a dependent variable and the testing measurements as the independent variables. This allowed us to tease out the variance in project outcomes that was explained by traits inherent to individual students.</p><p>We found that</p><ul><li>Students produced higher quality solutions and tests when they devoted a higher proportion of their programming effort in each session to writing tests</li><li>Whether this testing occurred before or after the relevant solution code was written was irrelevant to project correctness</li></ul><p>We also found a <em>negative</em> relationship between doing more testing before finalising solution code and condition coverage scores. We do not think this means that <em>testing first is bad</em>—more likely this is an effect of students adding tests to nearly complete projects to drive up condition coverage, which made up part of their grade. Incentives beget behaviours!</p><p>Note that, after teasing out the variance explained by inherent variability in the students (<em>conditional R² </em>in the paper), our measurements explained an ultimately small percentage of variance in project correctness and condition coverage (<em>marginal R²</em> in the paper). More variance in outcomes can possibly be explained by any number of unaccounted-for factors. It is also possible that projects in the Data Structures course we studied didn’t “hit the right switches” in terms of depending on regular testing for success.</p><h3>Conclusions</h3><p>Our findings largely support the conventional wisdom about the virtues of regular software testing. We did not find support for the notion that writing tests first leads to better project outcomes.</p><p>Traits or situations inherent to individual students are unlikely to have affected our results. Students’ differing behaviours <em>and</em> outcomes could both be symptoms of some other unknown factors (e.g., prior programming experience, differing demands on time). Therefore, we used <em>within-subjects</em> comparisons — i.e., assignments served as repeated measures for each student. Each student’s work on a given project was compared to their own work on other projects, and differences in testing practices and project outcomes were observed.</p><p>The primary contribution of this work is that we are able to measure a student’s adherence to these practices with some lead time before final project deadlines. The short-term benefit of this is that we can provide feedback to students “before the damage is done”, i.e., before they face the consequences of poor testing practices that we have measured and observed.</p><p>In the long-term, we think that formative feedback about testing, delivered as students work on projects, can help them to form disciplined test-oriented development habits.</p><p>¹ Solution methods were tied to test methods if they were directly invoked in the test method. So whether or not an invoked method was the “focal method” of the test, it was treated as “being tested”. This could have inflated results for methods that were commonly used to set up test cases.</p><h3>References</h3><p>[1] <a href="https://dl.acm.org/doi/10.1145/2445196.2445351">Gaps Between Industry Expectations and the Abilities of Graduates</a></p><p>[2] <a href="https://ieeexplore.ieee.org/abstract/document/7592412?casa_token=EairhmqPPOgAAAAA:ag2Z44va8LgKn-K5NhAhDLFyn-nmTRksrVGQTMvB2qftTlfS94O1FZZyClPDUvT8qM011tfC_ls">A Dissection of the Test-Driven Development Process: Does It Really Matter to Test-First or to Test-Last?</a></p><p>[3] <a href="https://dl.acm.org/doi/10.1145/1159733.1159787">Evaluating the Efficacy of Test-Driven Development: Industrial Case Studies</a></p><p>[4] <a href="https://inventitech.com/assets/publications/2017_beller_gousios_panichella_amann_proksch_zaidman_developer_testing_in_the_ide_patterns_beliefs_and_behavior.pdf">Developer Testing in the IDE: Patterns, Beliefs, and Behaviours</a></p><p>[5] <a href="https://inventitech.com/assets/publications/2015_beller_gousios_zaidman_how_much_do_developers_test.pdf">How (Much) Do Developers Test?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a25a7cf9108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing Procrastination Feedback for Student Software Developers]]></title>
            <link>https://ayaankazerouni.medium.com/developing-procrastination-feedback-for-student-software-developers-1652de60db7f?source=rss-c6f8a00bad49------2</link>
            <guid isPermaLink="false">https://medium.com/p/1652de60db7f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[research-summary]]></category>
            <category><![CDATA[computing-education]]></category>
            <category><![CDATA[procrastination]]></category>
            <dc:creator><![CDATA[Ayaan Kazerouni]]></dc:creator>
            <pubDate>Sat, 18 Apr 2020 04:28:15 GMT</pubDate>
            <atom:updated>2020-10-13T03:13:02.844Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is a brief overview of the following research papers by myself, </em><a href="https://scholar.google.com/citations?user=5pV6DQ4AAAAJ&amp;hl=en&amp;oi=sra"><em>Steve Edwards</em></a><em>, and </em><a href="https://people.cs.vt.edu/shaffer"><em>Cliff Shaffer</em></a><em>:</em></p><ul><li><a href="https://ayaankazerouni.github.io/publications#iticse2017paper"><strong><em>DevEventTracker: Tracking Development Events to Assess Incremental Development and Procrastination</em></strong></a><em> (with </em><a href="http://people.cs.vt.edu/~ayaan/2020/03/20/linkedin.com/in/simin-hall-ph-d-b30a4419"><em>T. Simin Hall</em></a><em>), published at </em><a href="https://doi.org/10.1145/3059009.3059050"><em>ITiCSE 2017</em></a><em>, and</em></li><li><a href="https://ayaankazerouni.github.io/publications#icer2017paper"><strong><em>Quantifying Incremental Development Practices and Their Relationship to Procrastination</em></strong></a><em>, published at </em><a href="https://doi.org/10.1145/3105726.3106180"><em>ICER 2017</em></a></li></ul><p><em>I am summarising these papers together because they are closely related.</em></p><h3>Summary</h3><p>We would like to determine the effectiveness of the time management practices displayed by students as they work on large and complex programming projects for the first time. We used qualitative data (obtained from interviews with students) and quantitative data (obtained using IDE logging infrastructure) to characterise their software development habits, and we analysed their relationships with project outcomes like correctness, total time taken, and the project’s early or late status.</p><p>When students worked earlier and more often, they produced projects that:</p><ul><li>were more correct,</li><li>were completed earlier,</li><li>took no more or less time to complete</li></ul><p>So working earlier and more often doesn’t seem to be giving the student more time to complete projects, just more <em>constructive</em> time.</p><h3>Motivation</h3><p>Software development is a skill. Like any skill, it requires practice and feedback in order to develop. Ideally, this feedback should <em>formative</em> — delivered as students work on projects. However, in education contexts, assessments of software projects are driven by “after-the-fact” qualities like correctness, code coverage, code style, etc. In the papers listed above, my co-authors and I present methods to characterise students’ time management habits as they work on large and complex projects. The goal is to use this information to formulate formative feedback about their development practices.</p><h3>Observing the development process</h3><p>To properly assess a ~30-hour programming process, we need to be able to observe it. We developed an <a href="https://github.com/web-cat/eclipse-plugins-importer-exporter/tree/DevEventTrackerAddition"><strong>Eclipse plugin</strong></a> that emits events for various in-IDE actions, including:</p><ul><li>executions</li><li>compilations</li><li>file saves</li><li>line-level edits</li></ul><p>We use these data to capture, characterise, and determine the effectiveness of the software development process undertaken by students. This process involved ingesting a large (ish) volume of data and turning it into an objective measurement of some aspect of the programming process (in this case, procrastination).</p><h3>When do students work on software projects?</h3><p>We set out to quantitatively measure the extent to which <strong>procrastination</strong> manifests as students work on software projects. We look at the work done by students as a distribution of work days, from the first day the student worked on the project until the last day, typically the day of the project deadline. The value for each work day is the amount of observable “work” that was put in on the project — the number of character code edits. The mean of this distribution gives us the “average day” on which students tended to work on the project. If we measure this in terms of <em>days until the deadline</em>, then a higher number indicates that more work was done earlier, and a lower number indicates that more work was done closer to the deadline.</p><p>As an example, consider the figure below, which shows how a real student distributed their work across the days on which they worked on a project.</p><figure><img alt="A bar chart showing the amount of work put in by a student on each day from August 28 to September 14." src="https://cdn-images-1.medium.com/max/871/0*_PhG10Ck0NlUcZTe.png" /><figcaption>The mean edit time for a student, drawn from real data.</figcaption></figure><p>The red line on September 14 indicates the project deadline, and the black line on September 8 indicates the student’s “mean edit time”, which is 6 days before the deadline. A sizeable portion of work was done within the period of September 1 to September 8, and daily work was much higher during the last three days of the project lifecycle. This leads the mean edit time to be roughly in the middle of those time periods. The student’s score is therefore sensitive to not only the days on which was done, but also to the <em>amount</em> of work that was done on those days. Since this is simply a mean edit time, we can measure this with solution code, test code, or both.</p><p>We might also have measured the median edit time (i.e., on what day was half the work done on a project?). However, we opted for the mean since it is more sensitive to outliers, which are important when measuring procrastination (e.g., large amounts of code being written toward the end of a project timeline).</p><p>The figure below indicates distributions of the mean edit time for solution code and for test code, across all project implementations.</p><figure><img alt="Two box-and-whisker plots which show the mean edit times for solution code and test code." src="https://cdn-images-1.medium.com/max/641/0*Rvo_dEh2qMQz1ZZs.png" /><figcaption>On average, students tended to write code fewer than 10 days before the project deadline.</figcaption></figure><p>Figure 2 tells us that students tended to work rather close to the deadline, even though they were given about 30 days to work on projects. Similar distributions of mean times were observed for solution code (μ=8.48, σ=6.44), test code (μ=7.78, σ=7.04), program executions (μ=8.86, σ=8.82), and test executions (μ=7.09, σ=7.10). Test editing and launching tends to occur slightly closer to the project deadline, but this difference appears to be negligible.</p><h3>How valid is our measurement?</h3><p>The measurement described above is simple enough: it’s just a mean. Still, it is worth investigating whether it measures what we think it measures, i.e., the extent to which procrastination manifests on a software project. There is no readily-available “ground truth” against which one can test such a measurement. Therefore, we interviewed students in depth about their development experiences on two such assignments, and compared their responses with our measurements. Interviewees were given our measurements at the end of the interview, and we determined if they matched students’ expectations.</p><p>In general, students felt that our measurements were accurate. Additionally, students believed that feedback driven by a measure such as this could help them stay on track on future programming projects. They stated unconditionally that they would make more of an effort to improve their programming practice if they were given feedback about their process between assignments.</p><h3>Can this measurement explain differences in project outcomes?</h3><p>A primary thesis of these papers was that different software development habits can explain differences in software project outcomes for intermediate-to-advanced student software developers. With our measures and their qualitative evaluations in hand, we set out to quantitatively examine their relationships with the following project outcomes:</p><ul><li><strong>Project correctness</strong>, measured as the percentage of instructor-written reference tests passed,</li><li><strong>Time of completion</strong>, measured as the number of hours before the deadline the project was completed, and</li><li><strong>Total time spent</strong>, measured by adding up the lengths of all work sessions spent on the project</li></ul><p>We used within-subjects comparisons to make inferences, allowing us to control for traits unique to individual students. Different students’ behaviours <em>and</em> outcomes could be symptoms of some other unknown factor (e.g., differing course loads or prior experience), making such inferences weaker. To test for relationships with the outcome variables, we used an ANCOVA with repeated measures for each student. Students were subjects, and assignments served as repeated measures (with unequal variances), allowing within-subjects comparisons. In other words, each student’s software development habits were measured repeatedly (assignments), and differences in outcomes for the same student were analysed.</p><p>Results are summarised below.</p><p><strong>When students worked earlier and more often, they tended to produce programs with higher correctness.</strong> To illustrate this, we split the dataset roughly into half: those projects that had “solved” the assigned problem (53%), and those that had not (47%). The figure below shows the difference in edit mean times between these populations.</p><figure><img alt="Two box-and-whisker plots showing the mean edit time for solved and unsolved projects." src="https://cdn-images-1.medium.com/max/1024/0*yW8dnGvKVZJolNb7.png" /><figcaption>Comparison of solution edit times between projects that correctly solved an assignment, and those that did not.</figcaption></figure><p><strong>When students worked earlier and more often, they tended to finish their projects earlier.</strong> This is so intuitive, it’s almost tautological. It is encouraging that the measurement is able to discriminate between early and late project submissions.</p><figure><img alt="Two box-and-whisker plots showing the mean edit time for late and on-time submissions." src="https://cdn-images-1.medium.com/max/1024/0*7dX3HDPntLlOxW7J.png" /><figcaption>Comparison of solution edit times between on-time and late submissions.</figcaption></figure><p>Finally, <strong>there was no relationship between total amount of time spent on the project and the solution edit mean time.</strong></p><h3>Final Remarks</h3><p>The important takeaway from these papers is not the revelation that <em>procrastination = bad</em>. It is that we can reliably identify when procrastination is taking place on software projects. If we can do this during a project timeline, i.e., while the student is working on it, we may be able to intervene and help them adjust their programming behaviours before they face the consequences of procrastination.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1652de60db7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>