In computer programming, boilerplate refers to sections of code that have to be included in program on many places with minor or no alteration. It is more often used when referring to languages which are considered verbose, i.e. the programmer must write a lot of code to do minimal jobs. The need for boilerplate can be reduced through high-level mechanisms such as Metaprogramming (which has the computer automatically write the needed boilerplate text) and Convention over Configuration (which provides good defaults values, reducing the need to specify program details in every project).
For Example various library functions defined in C or C++ like "strcat", "strcmp" may be used repeatedly, but they are defined only once in their corresponding library.
No comments:
Post a Comment