Shop OBEX P1 Docs P2 Docs Learn Events
Did you write any code last month? — Parallax Forums

Did you write any code last month?

Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
edited 2011-12-23 19:13 in General Discussion
Or the month before? Well, if so, you'd better take another look at it. According to this article, code written in October and November tends to be buggier than programs written in other months of the year.

-Phil

Comments

  • ercoerco Posts: 20,259
    edited 2011-12-20 18:59
    I resemble that remark. My buggy code is equally flawed year-round!
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2011-12-20 19:03
    Hmmm, are there 26 weeks in each of those months or is it just me, the question is rhetorical.

    Jeff T.
  • doggiedocdoggiedoc Posts: 2,245
    edited 2011-12-20 19:04
    erco wrote: »
    I resemble that remark. My buggy code is equally flawed year-round!
    Hey!! That's what was going to say!!!
  • ElectricAyeElectricAye Posts: 4,561
    edited 2011-12-20 19:09
    ... code written in October and November tends to be buggier than programs written in other months of the year....

    Probably a result of meeting deadlines, the end of their fiscal years, etc. But it does raise the question: could it be some sort of seasonal affective disorder, diminished sunshine? Well, it's grey in Seattle almost all year round - maybe that explains a lot about what's always happening with Windows.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2011-12-20 19:18
    ... could it be some sort of seasonal affective disorder, diminished sunshine?
    That's exactly where my thoughts were headed.
    Well, it's grey in Seattle almost all year round - maybe that explains a lot about what's always happening with Windows.
    LOL! But, you know, their software was a lot better when they were located in New Mexico!

    Oh, wait. I'm a Washingtonian, too. I don't know about my software quality as the result of gloom, but I do know that my productivity declines between July and September, due to the distraction of good weather and long days.

    -Phil
  • Martin_HMartin_H Posts: 4,051
    edited 2011-12-20 19:28
    I'm always skeptical of software metrics. In theory measuring code quality would be bugs measured per line of code. But organizational politics encourages gaming the metrics.

    I've seen QA pad their bug counts by reporting the same bug more than once, just have a separate set of steps which converge on the same screen.

    Conversely how do you define a line of code? Good code is often more compact than bad code, so a single bug has a higher ratio than multi module ramblings. Second once you measure and reward a behavior some people will change their behavior to match it.

    Setting all this aside, I think planning cycles often follow the calendar year, so the schedule crunch is probably a contributing factor.
  • ElectricAyeElectricAye Posts: 4,561
    edited 2011-12-20 19:44
    ... I do know that my productivity declines... due to the distraction of good weather and long days...

    Then vee must keep you chained in zee gloomy brick-lined vork vroom where you will be most productive! Back to vork!

    john-hurt-1984-big-brother.jpg
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-12-22 12:51
    I always thought code announced or delivered on April 1 was the most suspect ;)
  • ercoerco Posts: 20,259
    edited 2011-12-22 13:43
    Actually, here's some code I wrote in November: http://www.youtube.com/watch?v=TftZYLkJcyU

    It's not buggy, just quite useless. Inspired by the "you suck if you use GOTOs" crowd.
  • PublisonPublison Posts: 12,366
    edited 2011-12-22 14:29
    I think Bruce has been chained to the vork vroom and has been most productive. :)

    Bruce-Bruce.jpg
    250 x 125 - 11K
  • ElectricAyeElectricAye Posts: 4,561
    edited 2011-12-22 15:11
    Publison wrote: »
    I think Bruce has been chained to the vork vroom and has been most productive....

    The resemblance is striking.
  • TorTor Posts: 2,010
    edited 2011-12-23 03:02
    I've never seen any such trends in the code I've written over the last +30 years.. although code I write at the end of December tend to be better, simply because I can work when nobody else is at work and thus I get more peace to stay 'in the flow' (if you're a dedicated programmer you may be familiar with what that is).

    More relevant is maybe that these days I'm also involved in keeping track of all bug reports for all the software written in-house.. and I see no negative (as in "more bugs") trend for code written in October and November. I can already say that a lot of the code that was produced in-house in those two months for this year is especially good.

    -Tor
  • stamptrolstamptrol Posts: 1,731
    edited 2011-12-23 03:54
    I'm with Tor on this one.

    I think there is a direct relationship between buggy code and the number of interruptions per hour that the programmer is subject to.

    The science shows that there is no "one minute" interruption. It can take many minutes to get back in the groove after even a simple break in concentration.

    Also, I always found early morning programming (as in 7 am, not 3 am!) vastly superior to pulling all-nighters.

    Cheers and Merry Christmas to all!
  • lanternfishlanternfish Posts: 366
    edited 2011-12-23 19:13
    erco wrote: »
    I resemble that remark. My buggy code is equally flawed year-round!

    Hear, hear! What would code be if it wasn't flawed?
Sign In or Register to comment.