Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Hey guys. Do you know any studies about the quantity of boiler plate code in different project types? I don't seem to find any actual numbers. I know this is subjective and relative to the language, project type and frameworks used, but there must be an actual study somewhere that covers at least a niche. Thanks!

share|improve this question
I think this belongs on programmers.stackexchange.com... – Jim Garrison Jan 11 '11 at 15:05

migrated from stackoverflow.com Jan 11 '11 at 16:07

2 Answers

In order to do a study about quantities of boilerplate code, you'd first need a definition of boilerplate. If you want the study to be completed during your lifetime, the definition will need to be something that can be checked by a computer. You'd also need access to a lot of code. However, not all code is publicly available, so there's a possibility of selection bias. Finally, what would be the benefit of the study to justify the cost?

That said, I would think the amount of boilerplate code would be more tightly correlated to the programming language used than the type of project. A website created using Lisp, for example, would have a lot less code than a website created using COBOL.

share|improve this answer
1  
What you're saying is correct. I was just curious. Often different frameworks brag that they reduce boilerplate code by N%, but since there are no real numbers I was wondering how they could make those statements. – Cristian Vrabie Jan 13 '11 at 22:44

IMO, Boilerplate code is a symptom of a poorly written application. Why not factor out that boilerplate code, instead of repeating it everywhere? If that's impossible, then it is a symptom of a poorly designed programming language.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.