KEMBAR78
Lecture 2 | PDF | Software Framework | Library (Computing)
0% found this document useful (0 votes)
5 views9 pages

Lecture 2

The document explains the concepts of libraries and frameworks in programming, highlighting that libraries are collections of reusable code, while frameworks provide a structure for user-written code. It discusses the pros and cons of using frameworks, including efficiency, security, and potential limitations. Additionally, it outlines when to use frameworks and offers guidance on choosing the appropriate one for a project.

Uploaded by

trq.islm0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views9 pages

Lecture 2

The document explains the concepts of libraries and frameworks in programming, highlighting that libraries are collections of reusable code, while frameworks provide a structure for user-written code. It discusses the pros and cons of using frameworks, including efficiency, security, and potential limitations. Additionally, it outlines when to use frameworks and offers guidance on choosing the appropriate one for a project.

Uploaded by

trq.islm0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Framework and Libraries

Understanding the concept and beyond Software


Pro ject III
Libraries
❝Your Code calls the library, not the other way around❞

What is Library?
• A library is a collection of objects, functions, and
methods (depending on the language) which can be
reused and shared among multiple applications. A
library performs specific, well-defined operations.

• A library is usually created when a problem of a


certain domain starts to be frequently encountered
in programming.

Software 2
p ro j ec t I I I
Frameworks
❝You serve the framework, not the other way around❞

What is Framework?
• Frameworks are a kind of programming abstraction
that holds together the user-written code.
• Frameworks are usually consists of many libraries

Software 3
p ro j ec t I I I
Difference Between Framework and Library?
Library servers you and your code serves the framework. We are all servant here…..

Software 4
p ro j ec t I I I
Pros
• Efficiency: Tasks that usually would take you hours
and hundreds of lines of code to write, can now be
done in minutes with pre-built functions.

• Security: A widely used framework has big security


implementations.

• Cost : Most popular frameworks are free, and since it

Pros and Cons


also helps the developer to code faster, the cost for
the final client will be smaller.

• Support: Frameworks are usually come with


documentation, a support team, or big community Pros and Cons of Using a Framework?
forums where anyone can obtain quick answers.

Software 5
p ro j ec t I I I
Cons
• Poor Development: Some developer learns the
framework, not the language. Just because you are
expert in a framework doesn't mean you are
expert in programming.

• Limitation: The framework’s core behavior can’t be


modified, meaning that when you use a
framework, you are forced to respect its limits and
work the way it is required. Make sure you choose
a framework that suits your needs.

• Code is public: Since the framework is available to


Pros and Cons
everyone, it is also available to people with bad
intentions. It can be studied in order to know how Pros and Cons of Using a Framework?
things work and to find flaws that can be used
against you.

Software 6
p ro j ec t I I I
When to and when not to use a
Framework?

• Frameworks are great for prototyping


• Frameworks are handy when you’re against tight
deadlines
• Framework should be avoided if it involves
unnecessary complexity
• Framework should be avoided if you don't know
the architectural design
• Framework should be avoided if it's not well
To or NotTo?
maintained When should we use a framework and when
we shouldn’t?

Software 7
p ro j ec t I I I
Choosing the best framework
How to choose a framework for a certain project?

Software 8
p ro j ec t I I I
ThankYou
Iftieaq Murshed
+88 01756 395455
iftieaq.cse0305.c@diu.edu.bd

Software 9
p ro j ec t I I I

You might also like