re: How did you get out of the habit of copying/pasting code? VIEW POST

FULL DISCUSSION
 

I removed the Ctrl+V key.

Seriously though, copy/pasting code does not save time unless the thing you create is to be used once and thrown away.

Arguments like "saves time and does the job" are really bad. It conflicts with quality. If software is going to be used for other things and for a longer period (which is generally will) then quality is vital.

 

... be used once and thrown away.

May I know what you mean by the above statement?

I understand that quality is vital. I believe that the fastest way and ensuring that the software is functional first is more crucial especially when deadlines are due. But perhaps that's more of my newbie mindset kicking in. Still a lot to learn here :)

 

Prototypes, for example, are used once and thrown away. You use it to prove something is possible (or not), then you throw it away to make a actual solution. Other examples are code/scripts to perform a one-off automation of a task.

It is software which you are not going to maintain. Because it will no longer exist after it has been used.

code of conduct - report abuse