This application claims priority to European Patent Application No. 10172123.1, filed Aug. 6, 2010, the disclosure of which is incorporated herein by reference.
Various aspects of the present invention relate to the field of analysis of code repositories, In particular, aspects of the invention relate to analysis of code repository entries by individual developers.
Managers and team leaders in the field of computer code development often have little understanding of their development team's coding habits and profiles. Developers work in various different ways and a certain developer's habits may or may not be suitable for the specific project that the certain developer is working on. Accordingly, trying to determine how a member of a team fits in with the chosen development methodology can be difficult.
A developer that is not suited to a specific development style and role can lead to wasted time, lower productivity and inefficient processes. Therefore, a person in a position of management looks for a developer who best fits with the current development team and whose style of work would easily merge and contribute positively to a project. A manager must also ensure current team members are working to the best of their abilities and working alongside the other team members. As such, a goal of management is to ensure the developers are in the correct role, and that there is the correct mix of people within a team to make it balanced and successful.
According to aspects of the present invention, an automated analysis of a code developer's profile comprises gathering data relating to code repository updates by a developer and analyzing the gathered data to determine profile attributes of the developer to provide a behavior analysis of the developer. The automated analysis also comprises analyzing the profile attributes of the developer with respect to role descriptions. The automated analysis may be implemented, for instance, as a method or as a computer readable storage medium with an executable program stored thereon, wherein the program instructs a microprocessor to perform the above recitations. Moreover, according to further aspects of the present invention, the automated analysis of a code developer's profile may be implemented to provide a service to a customer over a network.
Aspects of the invention may best be understood by reference to the following detailed description when read with the accompanying drawings in which:
It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numbers may be repeated among the figures to indicate corresponding or analogous features,
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be understood by those skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the present invention.
A method, computer program product and system are described for the automated analysis of code repository information to analyze code developers' behavior to generate profiles. Analysis is carried out of discrete numerical and textual information which is already collected and stored in code repositories, A code repository centrally stores code that the development team works on. The code repository also tracks discrete information for its own records when each user adds their changes. This concept has widespread use by small and major development teams.
When a developer commits his or her work to a central repository, information for audit and general repository core processes (such as being able to back track to a previous version of code), is collected. Examples of such data include: the comment a developer entered for his changes, the time that the code was submitted, the number of lines which have been changed, and the specific changes themselves.
Using this data, an extension to a code repository is distributed, which allows the automated analysis of this discrete data to derive meaningful information over a period of time about a specific developer.
This analysis is then used to gain insightful information on the profile of an individual developer. For example, a profile may use information on a developer's behavior and habits, working hours, nature of commit comments, number of times a developer commits per day, how any conflicting changes made by multiple developers on a team were resolved, determining how the developer resolves team problems, etc.
After collection of such data, the output of the analysis details a profile analysis including, in particular, a relevant role or characteristic of a role within a team, which would be suitable for the developer. For example, based upon the profile statistics, a developer may suit a particular form of development process environment.
Referring to
The gathered data relating to a specific developer is analyzed 104 for a given period of time or for a number of committed updates from the developer.
A profile of the specific developer is generated 105 and analyzed 106 with respect to role characteristics Or role descriptions. Moreover, the profile may be compared 107 to other developer's profiles. A report is generated 108 including recommendations for one or more of a developer's role, a developer's profile style, a developer's compatibility with other developers, a developer's efficiency, etc. The report may be generated for multiple developers, for example, to assess a team of developers' efficiency.
Referring to
Profile attributes of a developer are defined 201. For example, profile attributes may include: the size of the code change made, the percentage of conflicting changes made, an update commit frequency, the range of working hours, the regularity of events, the nature of comments on updates, etc.
Algorithms for defining profile attributes are defined 202. For example, for a size of code change attribute, a determination may be made as to how many blocks of code have changed. As another example, for an update commit frequency, a determination may be made as to the time since the last commit and this may be added to a running average frequency of commits.
Role descriptions are defined 203 from the profile attributes of a developer. Role descriptions can use profile attributes to determine a developers aptitude for a given role description. As an example, a role description may be an “agile” role requiring a high commit regularity of small changes, with small depth of comments, flexible working hours. As another example, a role description may be an “iterative” role requiring a low commit regularity with deep comment and high magnitude of changes.
Comparison requirements are defined 204 to define parameters requiring comparison between developers.
Content of a report is defined 205 to enable a manger to obtain the information required by him. A report can contain the raw data of the profile attributes, the assessment of some profile attributes, the role descriptions the developer has aptitude for, comparisons with other developers, etc. A report can be generated for a single developer or a group of developers.
Referring to
An update is made 301 to a code repository by a developer. A determination is made 302 as to whether changes are made in the update. If no changes are made, the update count is incremented 303 by 1 and the next update is awaited. If changes are made, the changes in the update are obtained 304. Defined profile attributes are updated 305 using the defined profile attribute algorithms.
if analysis is carried out after each update or if a predetermined number of updates have taken place or a time period elapsed, the method proceeds 306 to the analysis step. If not, the update count is incremented by 1 and the method loops to await further updates 301.
Analysis of the profile attributes of a developer is carried out 307. Correlation between profile attributes and a defined role description is considered 308. Comparison with other developer's profile attributes may optionally be carried out 309. Analysis of a group of developers may be optionally carried out 310.
A report is output 311 including one or more of profile attributes, derived statistics, described role suitability, etc. The report may be generated for one or a group of developers.
According to further aspects of the present invention, a system for automated analysis of a code developer's profile comprises a central code repository for receiving code repository updates from multiple developers and a microprocessor coupled to a memory. The microprocessor is programmed to evaluate search results by implementing a data collector for collecting data on code repository updates and a developer analysis component. The developer analysis component includes a data gathering component for gathering data relating to code repository updates by a developer, a profile attribute updater component for determining profile attributes of the developer and a correlation component to analyze profile attributes of the developer with respect to role descriptions.
Referring to
A central code repository 410 is provided which stores code updates 411 generated by one or more developers 401-403. Developers 401-403 commit their work as updates 411 to the central code repository 410.
A data collector 420 mines and collects data 421 on the updates 411. This data 421 is generally used for audits and repository core processes. The data 421 may include comments by a developer 401-403 for his update 411, the time of submission of the update 411, the number of lines of code changed in the update 411, and the specific changes to the code made in the update 411.
The described system 400 includes a developer analysis component 430. This may be provided as an extension to the code repository 410 or to the data collector 420.
The developer analysis component 430 includes a definitions component 440 in which a manager can define required definitions for the analysis. The definitions component 440 includes an input for definitions of profile attributes 441, algorithms for the profile attributes 442, role descriptions 443, comparison criteria 444, and report content 445.
The developer analysis component 430 further includes a data gathering component 431 for gathering data relating to a developer 401-403 after each update by the developer to the central code repository 410 or after a given number of updates, or over a given time period. A profile attribute updater 432 updates the profile attributes 441 for a developer using the defined profile attribute algorithms 442.
A profile analysis component 433 analyzes the profile attributes for the developer 401-403 to determine the behavior of the developer. The data analysis component 433 includes a correlation component 434 fitting profile attributes of a developer 401-403 to defined role descriptions 443. The data analysis component 433 may also include a comparison component 435 for comparing analyzed profile attributes of more than one developer 401-403, The data analysis component 433 may also include a group analysis component 436 for analyzing a group of developers 401-403, for example that form a team.
An output component 437 outputs a report relating to suitable roles, profiles, key attributes, generalizations of techniques or habits, etc. The report may be for a single developer 401-403 or multiple developers 401-403.
Referring to
The memory elements may include system memory 502 in the form of read only memory (ROM) 504 and random access memory (RAM) 505. A basic input/output system (BIOS) 506 may be stored in ROM 504. System software 507 may be stored in RAM 505 including operating system software 508, Software applications 510 may also be stored in RAM 505.
The system 500 may also include primary storage 511 such as a magnetic hard disk drive and secondary storage 512 such as a magnetic disc drive and an optical disc drive. The drives and their associated computer-readable media provide non-volatile storage of computer-executable instructions, data structures, program modules and other data for the system 500. Software applications may be stored on the primary and secondary storage 511, 512 as well as the system memory 502,
The computing system 500 may operate in a networked environment using logical connections to one or more remote computers via a network adapter 516,
Input/output devices 513 can be coupled to the system either directly or through intervening I/O controllers, A user may enter commands and information into the system 500 through input devices such as a keyboard, pointing device, or other input devices (for example, microphone, joy stick, game pad, satellite dish, scanner, or the like). Output devices may include speakers, printers, etc. A display device 514 is also connected to system bus 503 via an interface, such as video adapter 515.
An example embodiment for automated analysis of a developer over a given time period is described.
A developer's profile attributes may be defined as including:
If a change has occurred in an update to the code, the following algorithms are carried out with reference to the profile attributes above:
Determine how many blocks of code have changed.
Determine the number of tines per block.
Determine the average magnitude of change per block(*1),
Add new z value to running average of profile_ChangeMagnitude value.
Determine if a conflict occurred during the commit.
Determine if this was resolved (*2).
Update value of profile_ConflictRegularity with s.
Determine time of commit.
Determine time since last commit and commit frequency (*3).
Add new c value to running average of profile_CommitFrequency value.
Increment profile_RangeWorkingHours map entry for this hour of work by 1.
Determine regularity of repository interaction (*4).
Replace profile_EventRegularity value with g.
Determine if a comment was entered.
Determine details about the comment (*5).
Add new 1 value to profile_CommentRegularity field.
Increment profile_CommentDepth map entry for result of o.
Determine conclusion report for user profile (*6).
Otherwise:
Increase profile_updates+1
(*1):
x=The number of characters which changed per line on average as a percentage.
y=The number of Hocks which had changes in them.
z=The magnitude of change value y/x (The lower the value the larger the magnitude of change).
(*2):
(*3):
(*4):
(*5):
(*6):
Output all raw fields of updated user profile to a report.
In addition, analyzed fields are added to the report,
The report may include the following analysis:
The above definitions are certain interpretations of a view of how development styles can be defines such as “agile” and “iterative” development styles. This could easily be modified to suit any other interpretation or coding methodology.
Other additions to this report could easily be developed under a management's interpretation of the profile attributes.
In conclusion, a method, computer program product and system are described for assessing the habits and understanding a developer's coding style and general day to day cycle that automates the process of estimating the relevant role of development this developer would suit. This contributes to any assessment of a member of a coding team's suitability to a project and the current efforts of team members already in place. For instance, a determination can be made as to whether a developer is suited to a specific development style and role in a specific project. This could lead to teams becoming more efficient, productive and delivering faster with better code. It could also lead to happier developers working on more appropriate projects.
The approaches described more fully herein, avoid wasted time with ineffective developers, thus increasing productivity and efficiency of processes. The approaches described more fully herein, may also result in building a balanced, accurate understanding of developer(s). The approaches set out more fully herein also avoid the problems of having to rely upon assessing a person for their suitability to a development methodology solely by interview, appraisal or study of their previous work, which is a very time consuming process for management to undertake. For instance, there may be many candidates to evaluate and such manual processes can result in a heavy burden on time, accuracy of results and money.
The described method and system provide a number of advantages over existing assessment techniques. As an example, a small agile development team may require frequent synchronization between developers and the central repository, and not require change commentary for code submissions. The user profile for a possible addition to the team could be studied and very quickly a conclusion could be drawn about the specific persons coding style and whether it suits the current team and the team's requirements. This conclusion is based upon the described algorithms and study of the appropriate data.
In addition, current team members' contributions could be assessed by management to determine where modifications to the development process could be made to increase efficiency or productivity and to help create solutions to problems within the development process.
An automated analysis system for code developers may be provided as a service to a customer over a network.
The invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of a computer program product accessible from a. computer-usable or computer-readable medium (or mediums) providing program code for use by or in connection with a computer or any instruction execution system. Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A a computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device). Examples of a computer-readable storage medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read only memory (ROM), a rigid magnetic disk and an optical disk, Current examples of optical disks include compact disk read only memory (CD-ROM), compact disk read/write (CD-R/W), and DVD. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device,
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or Hock diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Improvements and modifications can be made to the foregoing without departing from the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
10172123.1 | Aug 2010 | EP | regional |