Master’s Thesis Presentation • Software Engineering — A Study on the Effects of Exception Usage in Open-Source C++ SystemsExport this event to calendar

Friday, May 10, 2019 — 11:00 AM EDT

Kirsten Bradley, Master’s candidate
David R. Cheriton School of Computer Science

Exception handling (EH) is a feature common to many modern programming languages, including C++, Java, and Python, that allows error handling in client code to be performed in a way that is both systematic and largely detached from the implementation of the main functionality. However, C++ developers sometimes choose not to use EH, as they feel that its use increases complexity of the resulting code; new control flow paths are added to the code, “stack unwinding” adds extra responsibilities for the developer to worry about, and EH arguably detracts from the modular design of the system.

In this thesis, we perform an exploratory empirical study the effects of exceptions in 2721 open source C++ systems taken from GitHub. We observed that the number of edges in an augmented call graph increases, on average, by 22% when edges for exception flow are added to a graph. Additionally, about 8 out of 9 functions that may throw an exception do not initiate that exception. These results suggest that, in practice, the use of C++ EH can add complexity to the design of the system that developers must strive to be aware of.

Location 
DC - William G. Davis Computer Research Centre
3102
200 University Avenue West

Waterloo, ON N2L 3G1
Canada

S M T W T F S
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
  1. 2019 (213)
    1. December (1)
    2. November (4)
    3. October (15)
    4. September (20)
    5. August (18)
    6. July (12)
    7. June (23)
    8. May (23)
    9. April (32)
    10. March (25)
    11. February (16)
    12. January (24)
  2. 2018 (220)
    1. December (16)
    2. November (19)
    3. October (26)
    4. September (22)
    5. August (17)
    6. July (20)
    7. June (13)
    8. May (25)
    9. April (34)
    10. March (24)
    11. February (3)
    12. January (1)
  3. 2017 (36)
  4. 2016 (21)
  5. 2015 (36)
  6. 2014 (33)
  7. 2013 (23)
  8. 2012 (4)
  9. 2011 (1)
  10. 2010 (1)
  11. 2009 (1)
  12. 2008 (1)