Study shows coding styles are pretty unique

Started by taxed, January 28, 2015, 02:57:57 PM

Previous topic - Next topic

taxed

I thought this was interesting.  Before I read the article I wasn't too sure about it, but come to think of it, I could always read through code and figure out what idiot wrote what, or what smart person wrote what.  Coders really do have their own styles, so I think there is something to this.  The more I thought about it, I am able to tell how experienced a coder is by their code.  Just thinking about it now, it's like when we can tell a young lib when he posts on this forum, versus an older person with a lot of experience.

http://developers.slashdot.org/story/15/01/28/1937252/anonymous-no-more-your-coding-style-can-give-you-away

QuoteResearchers from Drexel University, the University of Maryland, the University of Goettingen, and Princeton have developed a "code stylometry" that uses natural language processing and machine learning to determine the authors of source code based on coding style. To test how well their code stylometry works, the researchers gathered publicly available data from Google's Code Jam, an annual programming competition that attracts a wide range of programmers, from students to professionals to hobbyists. Looking at data from 250 coders over multiple years, averaging 630 lines of code per author their code stylometry achieved 95% accuracy in identifying the author of anonymous code. Using a dataset with fewer programmers (30) but more lines of code per person (1,900), the identification accuracy rate reached 97%.
#PureBlood #TrumpWon

walkstall

Quote from: taxed on January 28, 2015, 02:57:57 PM
I thought this was interesting.  Before I read the article I wasn't too sure about it, but come to think of it, I could always read through code and figure out what idiot wrote what, or what smart person wrote what.  Coders really do have their own styles, so I think there is something to this.  The more I thought about it, I am able to tell how experienced a coder is by their code.  Just thinking about it now, it's like when we can tell a young lib when he posts on this forum, versus an older person with a lot of experience.

http://developers.slashdot.org/story/15/01/28/1937252/anonymous-no-more-your-coding-style-can-give-you-away

I think we were talking about that some time back in CPF.  I think it was around the b o healthcare poor coding that they had to fix all the time.   Some of them were using twice the coding need to do the same job as others.
A politician thinks of the next election. A statesman, of the next generation.- James Freeman Clarke

Always remember "Feelings Aren't Facts."