Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Crost41084yIt is code you write that does not directly address the business problem, but you have to write in order to use some kind of tooling, and the tooling helps to address the business problem.
-
Mc-Lovin584yBoiler plate code is repetitive code which you end up using as is in a lot of places.
-
"Could the compiler sensibly generate this code for me?"
If yes, it's boilerplate.
In Java for instance (kind of famous for boilerplate) - getters, setters, equals, hashcode, tostring etc. would all come under this category. It's not doing anything clever, it's just repetitive, bog standard code you have to spit out before getting started with the "real" work. -
int setpoint=100 + altoffset;
while(heating){
int temp = readtemp();
int error = setpoint - temp;
setoutput(error);
}
Could be prone to oscillation, does not account for time.
Related Rants
What exactly is boilerplate code?
question
sap
abap