What is the difference between a template and a framework in computer science?

666 views

So I know both of them are skeletons, meaning they are basically already written code to make a programmer’s life easier so they don’t have to start from scratch. So what exactly is the difference?

In: Engineering

3 Answers

Anonymous 0 Comments

A template is when they give you a bunch of code as a starting point, and you change it to make the thing you want.

A framework is where you fill in the gaps in someone else’s code but don’t change it. Usually you don’t see the code in the framework, same as with a library. In fact from the computer’s point of view, frameworks and libraries are the same thing – the difference is the programming style.

Note that “template” means something different in C++

You are viewing 1 out of 3 answers, click here to view all answers.