Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
craig939393220834dIt 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-Lovin6234dBoiler plate code is repetitive code which you end up using as is in a lot of places.
example-user38934dA bunch of shit that keeps you from doing work
"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.
Demolishun967734dint setpoint=100 + altoffset;
int temp = readtemp();
int error = setpoint - temp;
Could be prone to oscillation, does not account for time.