K
K
kapai692015-03-07 09:57:30
PHP
kapai69, 2015-03-07 09:57:30

Is copying harmful in programming?

Actually, the question is the following: is it considered bad form to copy and paste, for example, long variable names, and so on. In screencasts, authors often type package names and build numbers into the composer by hand instead of contl.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Armenian Radio, 2015-03-07
@gbg

Copying can only be harmful if the copyer is learning speed blind typing.
And so, most IDEs have the function of hinting at the continuation of the name by the first characters, which is very convenient.
But it's really harmful to use gibberish instead of names like a, aaa, a1, a2, a3 and so on.

F
FanatPHP, 2015-03-07
@FanatPHP

The authors of screencasts, video tutorials and other easily digestible materials are mostly juvenile dolts. Who do not understand anything about the topic that they undertook to explain to others. So, if we talk about harmfulness for programming, these are screencasts. And the damage is fatal. There are a lot of screencast victims here on the toaster. A heartbreaking sight.

D
Denis, 2015-03-07
@dklokov

A good IDE as a compromise) I started writing like myself, but she already complements it. Typos 0, productivity on top)

M
Maxim Gavrilov, 2015-03-07
@thestump

Is it safe to use a calculator? If you are a student in grades 1-9 - yes, it’s harmful, if you are an accountant with 20 years of experience - no, it’s not harmful, if a cashier is in a store, no, it’s not harmful, etc. Also with programming. It will be difficult for you to remember the structure of the for statement if you are a beginner and constantly use copy-paste, and if you are a senior programmer, then the copy-paste of the loop operator (I’m sure that no senior will do this) from the neighboring class will save you a fraction of a second which will be aimed at thinking about algorithm, etc.

O
Oscar Django, 2015-03-07
@winordie

I believe that many people who have been programming for more than three days have such keyboard skills that it is much easier and faster for them to type a long name than to move their hand to the mouse, highlight the name, press ctrl + c, put the cursor in the right place, press ctrl + v.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question