top of page
Writer's pictureKristen

Sloppy and paste

Updated: Mar 14, 2021


I have used this one for years and years and years. I coined this one back in the days of object-oriented development being a "new thing." My effort at that time was to stop the habits of developers copying and pasting the same code to different areas, instead of taking the time to design an object or piece of functionality for reuse.


If you've ever had to take on a legacy system, you've seen this. It is so common that there is a tool built-in to Visual Studio that analyzes solutions for "Code clones."


Fun fact: One of the current code bases that I am assisting in redesigning actually crashes with memory errors when you try to run this tool, as there are so many that my laptop cannot cache the information with the default settings.


At the advent of C#, we had such an issue with this practice that we actually moved our entire code base to C# from VB to make it NOT POSSIBLE to copy and paste code in this way anymore.


From those experiences, I started referring to this as "sloppy and paste," as it is a practice of sloppy development and will always come back to haunt you.

Comments


© 2018-2023 By Kristen Swearingen - swearingen.me | MiddleChild Tech | eruditeMETA. All rights reserved.

This publication may not be reproduced or distributed in any form with the author's prior written permission. It consists of opinions of the author's research and experience, which should not be construed as statements of fact. While the information contained in this publication has been created and cited where obtained from sources believed to be reliable, the author disclaims all warranties as to the accuracy, completeness, or adequacy of such information. Although this post and cited research may address legal and financial issues, the author does not provide legal or investment advice and its publication should not be construed as such. Your access and use of this publication is governed by the Usage Policy for swearingen.me | MiddleChild Tech | eruditeMETA,, respectively. The author prides his/her/their self on his/her/their reputation for independence and objectivity. The research and publication(s) are produced independently by its authors and organization without input or influence from any third party. For further information, see the Guiding Principles on Independence and Objectivity.

bottom of page