subject

According to programming best practices, how should you handle code that needs to be repeated several times in a program? Store the code on a website and reference the website when it is needed.

Store the code only in a code library, not in the actual app's code.

Have the code appear only once in the program and reference it when it is needed.

Copy the code as many times as needed so that each usage is separate.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Write a function so that the main program below can be replaced by the simpler code that calls function original main program: miles_per_hour = float( minutes_traveled = float( hours_traveled = minutes_traveled / 60.0 miles_traveled = hours_traveled * miles_per_hour print('miles: %f' % miles_traveled) sample output with inputs: 70.0 100.0 miles: 116.666667
Answers: 3
question
Computers and Technology, 22.06.2019 11:50
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
You know the right answer?
According to programming best practices, how should you handle code that needs to be repeated severa...
Questions
question
Mathematics, 09.02.2021 22:10
question
Mathematics, 09.02.2021 22:10
question
Biology, 09.02.2021 22:10
Questions on the website: 13722363