• @OsrsNeedsF2P@lemmy.ml
    link
    fedilink
    41 year ago

    Absolutely hilarious

    These tests, combined with our visual analysis of the data yielded the result that repositories containing swearwords exhibit a statistically significant higher average code-quality (5.87) compared to our general population (5.41).

    The scores here (5.87 and 5.41) are from 0-10 based on SoftWipe. For a general idea on what that feels like when you look at the code, referring to this article in Nature (a highly reputable journal outlet):

    sumo has a rate of 7.7 bugs per 1000 LoC (SoftWipe score: 3.7), llvm-openmp has a rate of 4.0 bugs per 1000 LoC (SoftWipe score: 5.2), and llvm-pstl has a rate of 0.8 bugs per 1000 LoC (SoftWipe score: 7.4)

    Naively assuming a linear correlation (y = -0.6x +8, where x is the number of bugs in 1000 lines of code and y is the SoftWipe score), we can extrapolate that:

    Swearing Not Swearing
    5.87 = -0.6x + 8 5.41 x -0.6x + 8
    x = 3.55 x = 4.31

    Therefore code with swearwords has about 1 less bug per 1,000 lines of code than code without it.

    although we have a statistically significant difference between the groups, it could be caused by other underlying factors […] This means that swearing will not automatically improve the quality of your code

    Absolutely hilarious.