In computer programming, boilerplate is the term used to describe sections of code that have to be included in many places with little 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.
Questions tagged [boilerplate]
524 questions
17
votes
1 answer
Javascript, extending ES6 class setter will inheriting getter
In Javascript, with the following illustration code:
class Base {
constructor() { this._val = 1 }
get val() { return this._val }
}
class Xtnd extends Base {
set val(v) { this._val = v }
}
let x = new Xtnd();
x.val =…

codechimp
- 1,509
- 1
- 14
- 21
17
votes
3 answers
How to change boilerplate "Sent from my iPhone" text in MFMailViewController message body?
I'm using the MFMailComposeViewController to send an email from within an iPhone v3.0 application. I programmatically create the message body text and display it before showing the picker.
At the bottom of my message body text is the string "Sent…

billmaya
- 1,311
- 3
- 15
- 34
17
votes
3 answers
Wrapper to allow a module to work with AMD/CommonJs or script tags?
I just took a shot at wrapping one of our modules that is meant to be included via a