O QUE SÃO FRAMEWORKS E BIBLIOTECAS? QUAIS AS DIFERENÇAS?
Summary
TLDRIn this educational video, Rafaela Ballerini explains the difference between a Framework and a Library in the context of software development. She uses the analogy of a library being a collection of functions and classes that can be directly used in one's code, such as the math functions in C's 'math.h'. In contrast, a Framework provides a more structured skeleton for building an application, where developers must follow a predefined workflow and integrate their code within it. Rafaela emphasizes the importance of choosing updated and well-supported frameworks and libraries to avoid obsolescence and bugs. She concludes by stating that the choice between a Framework and a Library depends on the specific needs and context of the project.
Takeaways
- 📚 Rafaela Ballerini introduces the difference between a Framework and a Library in her video.
- 🤔 She recalls her initial confusion between the terms during her early college days, as they were often used interchangeably.
- 🛠️ A Library is described as a set of implementations, such as functions, classes, and procedures, used to perform common tasks.
- 📈 An example of a widely used library is 'math.h' in the C programming language, which provides mathematical functions like sine, cosine, and logarithms.
- ⚠️ She warns about the potential difficulty in debugging if a library has a bug, as it can be hard to find and fix.
- 🏗️ A Framework is explained as a skeleton that you build upon, with predefined workflows and structures.
- 🌐 It's compared to a giant planet with various functions, methods, and classes that you can use to construct your application.
- 🔄 The difference between a Library and a Framework is highlighted: a Library is something you pull into your code, while a Framework is something your code is built upon.
- 🛑 She emphasizes the importance of choosing a Framework that is up-to-date and has community support to avoid obsolescence.
- 🔑 The video concludes with the simple yet profound distinction: 'A library is what we use in our code, a Framework is what uses our code.'
- 👍 Rafaela invites viewers to share which libraries and frameworks they use in the comments and encourages likes and subscriptions.
Q & A
What is the main topic of Rafaela Ballerini's video?
-The main topic of Rafaela Ballerini's video is explaining the difference between a framework and a library in the context of programming.
Why did Rafaela create a 'words' section in her videos?
-Rafaela created a 'words' section in her videos to clarify terms she heard at the beginning of her college education but didn't understand, such as 'framework' and 'library'.
What is the basic definition of a library according to the video?
-A library is defined as a set of implementations, which can be functions, classes, or procedures, that you can use to perform common tasks.
What is an example of a library mentioned in the video?
-An example of a library mentioned in the video is 'math.h', which is commonly used in C programming language for mathematical operations.
What are some potential issues with using libraries?
-Some potential issues with using libraries include difficulty in finding and fixing bugs within the library, and the responsibility of ensuring the library is up-to-date and suitable for the application.
What is the basic definition of a framework according to the video?
-A framework is defined as a skeleton that you build your application upon, with pre-defined structures and workflows that you must follow.
How does a framework differ from a library?
-A framework differs from a library in that it provides a broader structure with various functions, methods, classes, and objects that you utilize in your application development, whereas a library is more about pulling in specific functions or classes as needed.
What is an important consideration when choosing a framework for your project?
-An important consideration when choosing a framework is ensuring it is up-to-date, well-supported, and not likely to become obsolete, as this can affect the longevity and maintainability of your application.
What is the general advice given in the video regarding the choice between a framework and a library?
-The general advice given in the video is that the choice between a framework and a library depends on the specific needs and context of the application you are developing.
Can you provide some examples of frameworks mentioned in the video?
-Some examples of frameworks mentioned in the video are Angular for JavaScript, Spring for Java, Ruby on Rails for Ruby, Laravel for PHP, and ASP.NET for C#.
What is the final message from Rafaela to her viewers in the video?
-Rafaela's final message to her viewers is a reminder to comment on the video with the libraries and frameworks they use, to like the video, subscribe to the channel, and stay tuned for a future video demonstrating the practical use of a framework and a library.
Outlines
📚 Introduction to Frameworks and Libraries
In this video, Rafaela Ballerini introduces the topic of frameworks and libraries, explaining their differences. She recalls a previous video about front-end and back-end development, where she created a segment about terms she encountered in university that she didn't initially understand. The video aims to clarify these concepts as they are often confused. Rafaela mentions that technologies like .NET, Bootstrap, and Angular are examples of frameworks and libraries used in programming, not programming languages themselves.
🔍 Understanding Libraries
Rafaela explains that a library is a collection of implementations, such as functions, classes, and procedures, used to perform common tasks. Using the example of the math.h library in C, she describes how it provides numerous mathematical functions like sine, cosine, square root, and logarithm, which save programmers from having to implement these from scratch. She also cautions about potential bugs in libraries and the importance of ensuring they are updated and fit for the intended purpose.
🏗️ The Role of Frameworks
A framework provides a skeleton structure for building applications, requiring developers to follow predefined workflows and structures. It includes numerous functions, methods, classes, and objects, acting as a large, comprehensive system into which developers can insert their own code. This contrasts with libraries, where the code pulls in specific functionalities as needed. Frameworks often include multiple libraries and require careful selection to avoid obsolescence and ensure community support and updates.
📊 Choosing Between Frameworks and Libraries
Rafaela discusses the decision-making process when choosing between using a framework or a library. She emphasizes that each technology is suited to different situations and applications. Frameworks provide a ready-made structure, reducing the amount of original logic developers need to write but also limiting their coding freedom. Libraries, while requiring more initial coding effort, offer greater flexibility. She lists examples of popular frameworks and libraries for various programming languages, such as Next.js, Spring, Angular, and Django.
📹 Practical Examples and Conclusion
Rafaela announces that she will create a follow-up video demonstrating the practical use of frameworks and libraries. She invites viewers to comment on their most-used frameworks and libraries. Finally, she thanks her audience, encourages them to like and subscribe to her channel, and expresses her hope that the video has clarified the concepts of frameworks and libraries. She ends with a promise of more content to come and a warm goodbye.
Mindmap
Keywords
💡Framework
💡Library
💡Programming
💡Front-end
💡Back-end
💡Application
💡Development
💡Bug
💡Community Support
💡Obsolete
💡Meme
Highlights
Rafaela Ballerini introduces the difference between a framework and a library.
Frameworks and libraries are often confused as they are used in the same context, but they serve different purposes.
A library is a collection of implementations such as functions, classes, and procedures that can be used for common tasks.
The standard library in C, for example, provides a wide range of mathematical functions.
Using a library saves time as you don't have to manually implement common operations.
There can be challenges with debugging if a library contains a bug, as it can be difficult to locate and fix.
It's important to ensure that the library you use is up-to-date and matches your requirements.
A framework provides a structure or skeleton for building an application, with predefined workflows and structures.
Frameworks come with various functions, methods, and classes that you can use in your application development.
With a framework, you fill in the gaps with your code, as opposed to a library where you pull in specific functions.
Frameworks can be more abstract and broader than libraries, potentially including multiple libraries.
Choosing the right framework is crucial as it can directly impact the longevity and maintainability of your application.
Frameworks should be chosen based on their current support, community, and whether they are up-to-date.
A memorable phrase to differentiate between a library and a framework is: a library is used in our code, a framework uses our code.
The choice between a framework or a library depends on the specific needs of the application and the situation.
Frameworks provide a ready structure but may limit your freedom with the code, whereas libraries offer more freedom but require more initial work.
Examples of frameworks include React, Spring for Java, Angular, Bootstrap, Ruby on Rails, Laravel for PHP, and ASP.NET for C#.
Examples of libraries include JavaScript's jQuery, which is often confused with a framework.
Rafaela Ballerini plans to create a video demonstrating the practical use of a framework and a library.
The video concludes with an invitation for viewers to comment on the libraries and frameworks they use and to like and subscribe to the channel.
Transcripts
o Olá meu nome é Rafaela ballerini sejam
bem-vindos a mais um vídeo aqui do canal
e hoje eu vou contar para vocês a
diferença entre Framework e biblioteca e
[Música]
e para quem não se lembra é um dos
primeiros vídeos que eu postei aqui
sobre programação e tecnologia no canal
era sobre front-end back-end e lá tinha
criado um quadro que se chamava palavras
que ouvia no começo da faculdade e eu
não fazia ideia do que significava e o
vídeo de hoje também se encaixa um pouco
nesse quadro porque foi mework
biblioteca são palavras que ouvia no
começo da faculdade e eu não fazia ideia
do que significavam na fazer assim
inclusive achava que era exatamente a
mesma coisa né porque eram usadas sempre
o mesmo contexto tenho certeza que vocês
já viram alguma vaga de emprego por
exemplo é tecnologias como por exemplo
lote net Direct viu Bootstrap angular
isso tudo são frameworks e bibliotecas
que são utilizados quando a gente
desenvolve alguma linguagem de
programação eles não são linguagens de
programação então primeiro eu vou
começar com conceito de biblioteca ela
nada mais é do que um conjunto de
implementações essas implementações
podem ser funções por nesse classe esses
procedimentos que você vai utilizar para
fazer alguma tarefa que seja bem comum
um exemplo de
Oi gente usa muito na faculdade
principalmente quem aprende com a
linguagem C é a neve. H como que ela
funciona a gente sempre inclui ela
dentro do nosso código com o including e
a partir daí ela te oferece um leque
gigante de funções que você pode
utilizar para solucionar algumas
operações matemáticas como por exemplo
seno de algum número cosseno raiz
quadrada log se você não utilizar essa
biblioteca e não puxar as funções que
ela tem você teria que fazer na mão toda
a lógica desse tipo de operação você ia
ter que criar como que funciona para
fazer o log de um número tão biblioteca
é uma mão na roda gigante para várias
situações não só para operações
matemáticas uma coisa também que é
preciso tomar muito cuidado é que se a
biblioteca tiver algum bug dentro dela é
muito difícil de encontrar onde esse
blog tá e também de solucionar porque
muitas vezes o responsável pela
biblioteca não vai conseguir solucionar
o seu blog há tempo de você lançar
aplicação então é interessante você ter
certeza se aquela biblioteca atualizada
e corresponde o que você realmente quer
e o Framework como que ele funciona e de
fé
a biblioteca ele não dá mais é do que o
esqueleto para você poder construir a
sua aplicação em cima dele só que você
vai ter que seguir todo o fluxo de
trabalho e as estruturas que já existem
pré-definidas nele é como se ele fosse
um planeta gigante que tem várias
funções vários métodos várias classes
objetos que você vai poder utilizar na
sua construção da aplicação que vai ter
vários buracos esses buracos vai ser
onde você vai encaixar seu código então
isso difere um pouco da biblioteca
porque a biblioteca Na verdade o seu
código que é o mundo e você vai puxar
ela dos homens que você quiser que você
vai utilizar as funções por exemplo
matemáticas que eu falei então é um
pouco mais abstrato e um pouco mais
amplo que as bibliotecas podendo até ser
um conjunto delas né você pega as várias
bibliotecas elas vão construindo uma
coisa tão grande tão legal então
completa que você consegue chamar de
Framework nesse caso para você
desenvolver a sua aplicação você vai se
basear a tecnologia utilizada no
Framework que você escolheu porque não
adianta você achar que você vai puxar o
Framework Em algum momento do código que
nem você faz com a biblioteca
as funções não você vai utilizar esse
frio porque não pode me inteiro o
Framework é diretamente ligado ao
código-fonte da sua aplicação então para
linguagens diferentes por exemplo cê pai
estão Java você vai ter primeworks
diferentes por mais que aquele frio work
e faça a mesma coisa uma das coisas que
é preciso tomar muito cuidado na escolha
do Framework é que se ele se tornará
obsoleto a sua aplicação vai estar
totalmente amarrada nele então é preciso
ver se realmente está atualizado se
existe suporte comunidade para você
poder conversar e fazer o suporte
necessário pesquisando esse conteúdo
para trazer para vocês eu achei uma
frase que eu achei muito legal e muito
resumida do que é fêmur e biblioteca a
biblioteca é o que a gente usa no nosso
código e o Framework usa o nosso código
é só fala qual que é melhor utilizar cê
acha que eu devo escolher um Framework
ou uma biblioteca gente assim como as
linguagens de programação cada
tecnologia é apropriada por uma situação
diferente por uma aplicação diferente
porque com
e por exemplo você vai ter uma estrutura
basicamente pronta você não vai ter que
fazer muita coisa muita lógica que você
teria que criar do zero se você não
utilizar Mas isso faz com que você tem
um pouco menos de liberdade com seu
próprio código já que a Biblioteca você
vai ter um pouco mais de trabalho para
poder criar algumas coisas do zero Mas
você vai ter muito mais Liberdade alguns
exemplos de frameworks São Rider next
Spring forjava ângulo é para o
JavaScript Bootstrap icon CSS Ruby on
rails Ruby laravel PHP asp.net com
c-sharp Django Python jauretche por
exemplo ele é um exemplo de biblioteca
do JavaScript como muitos confundem
agora para fixar um pouco conteúdo como
vocês sabem que eu adoro fazer porque
para mim fica bastante eu vou colocar
alguns memes aqui para vocês assistirem
E aí
E eu logo vou fazer um vídeo mostrando
na prática como que a gente usa um
Framework uma biblioteca comenta aqui em
baixo qual que é a biblioteca e o
Framework que você mais utiliza para
desenvolver Não esqueça de deixar o like
e se inscrever no canal também e é isso
gente espero que tenha ficado claro para
você o conceito de cada uma dessas
palavras e muito obrigado por assistirem
até aqui um beijo e até semana
Посмотреть больше похожих видео
O que é Biblioteca, Framework e API? #HipstersPontoTube
The TRUTH About Golang Backend Frameworks
Diferença entre API, Biblioteca e Framework em Desenvolvimento de Software
Introduction to Redux | Lecture 257 | React.JS 🔥
What are the Differences between DCS and SCADA?
#69. How To Use Project Lombok To Remove Boilerplate code Getter And Setter Methods From POJO Class
5.0 / 5 (0 votes)