Think of Frameworks as shortcuts. Coding is all about not doing repetitive tasks. With Frameworks you cut the middle man out. It is like a bridge over a lake. You take the bridge and get their much faster than walking around the lake.
Popular types of Frameworks
- Ruby on Rails.
- ASP.NET MVC.
Think of a framework as a template. Remember that programming is all about not repeating ones self. So we make tamplates. If you have a basic website, no reason to make many different templates each time. If you have 100 pieces of blocked code to place, then it is much easier to make each one and use it over and over.
I guess we could say they are blocks of code we can use over and over while tweaking them, when we need too. This allows us to get to the nitty gritty of building websites and concentrate on the things that matter the most.
Their is basically two types of Frameworks. We have the backend and the frontend. Each is designed for it's sole purpose and reaching the end of web development in the fastest possible time.
Front end Frameworks are basically CSS Frameworks. They speed the process of making the front of the website usuable. Bootstrap is my most favorite front end Framework. Back end Frameworks are meant to work on the server side. Node.js is my favorite back end Framework.
The most important reason for the existence of Frameworks is speed. To build a complete dating site without the help of frameworks could take months doing it yourself. Using a popular framework will take hours. I built a complete dating site from scratch with a framework in only 60 hours. Compared to over a month of coding this is incredibly much faster.
If you use frameworks then you very often get better websites, as well as building them faster.