What Is a Framework, and Why Would I Use One?

0
0
Asked By MellowPine42 On

I'm new to programming and trying to understand what a framework actually is. Why would I use one instead of writing everything from scratch? Could you explain the benefits and drawbacks in beginner-friendly terms, including when it makes sense to learn the basics without a framework first?

2 Answers

Answered By CobaltRiver7 On

A framework is a coordinated collection of libraries, tools, and conventions for building a certain kind of application. It often provides common features such as authentication, database access, error handling, testing, or a standard project structure. You can build these pieces yourself, but using a framework saves time and gives your project patterns that other developers already understand.

Answered By SunnyQuill18 On

You don't have to use a framework, especially for small programs or while you're learning. The main advantage is avoiding repetitive plumbing. For example, if you're making a website with user accounts, a framework may already handle sessions, password hashing, permissions, and related security concerns. That lets you focus on the parts that are unique to your project.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.