Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the disadvantages of using templates?

Some of the disadvantages would be

  1. its syntax is complex
  2. compiler generates extra code
like image 941
anish Avatar asked Apr 29 '10 05:04

anish


People also ask

What is a template and what are its disadvantages?

Using templates can make it more difficult to stand out from the crowd and can give the impression of unoriginality if your audience has seen the same format many times before.

What is a template and what are its advantages and disadvantages of using one?

Templates simplify the creation of documents. Templates can ease our workload and make us feel less stressed, and, at the same time, they increase efficiency. Templates increase the attention of the audience. They help in saving time and money. Templates improve clarity and customer satisfaction.

Which is not advantage of template?

Answer: When the template is instantiated, the compiler is the only one to notice mistakes. Sometimes, regardless of whether the remainder of the template is instantiated, mistakes in the methods of templates are only discovered when the member method is used. They are challenging to verify.


1 Answers

They are hard to validate. Template code which doesn't get used tends to be seldom compiled at all. Therefore good coverage of test cases is a must. But testing is time-consuming, and then it may turn out the code never needed to be robust in the first place.

like image 103
Potatoswatter Avatar answered Sep 27 '22 20:09

Potatoswatter