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
Crost3480325dIt 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-Lovin59325dBoiler plate code is repetitive code which you end up using as is in a lot of places.
example-user372325dA bunch of shit that keeps you from doing work
AlmondSauce14883325d"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.
Demolishun13473324dint setpoint=100 + altoffset;
int temp = readtemp();
int error = setpoint - temp;
Could be prone to oscillation, does not account for time.