Code Cloning

by Robert L
Frequently change in requirements, tight delivery deadline and complex application architecture slow down web applications development and encourage code cloning. Web application frameworks mainly support developers to speed up development by providing libraries for database access, session management, and they often promote code reuse. In this paper, we provide a systematic study of cloning in six (6) Web Applications of different sizes, developed using Classic ASP.NET and ASP.NET MVC framework to find out whether there is any relation between frameworks and code cloning. The contribution of our study is: 1) the study results shows which framework in .NET technology can be chosen to avoid cloning in development of web application; 2) the cloning metrics that we have calculated and applied in our study may be useful in other similar studies.

I found this an interesting article on how with streamlined server languages such as, different websites will choose to cut and paste code from a central data hub. This Re-using has been sighted on about one-quarter of all websites observed by this report. This seems to represent the mindset of many developers that the World Wide Web is a maintenance era of its Life Cycle, as it its is simpler to instead figuring out new methodologies of writing a website, it is much simpler to clone’s another developers’ templates and modify it accordingly.



Islam, M.R.; Islam, M.R.; Islam, M.M.; Halim, T.; , “A study of code cloning in server pages of web applications developed using classic ASP.NET and ASP.NET MVC framework,” Computer and Information Technology (ICCIT), 2011 14th International Conference on , vol., no., pp.497-502, 22-24 Dec. 2011
doi: 10.1109/ICCITechn.2011.6164840

One thought on “ Code Cloning

  • June 3, 2012 at 11:37 pm

    This is very right. We all like the idea of creating a website from scratch, but in the end templates are the same and even codes are the same. We understand what we have to do, but it’s better to just get people’s templates and change it accordingly. It’ll be a lot simpler and work gets done faster. I’m not saying cheat and copy code, but that’s how it’s always going to be.

Comments are closed.