Artwork

内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

113 - Software Frameworks vs Libraries

22:03
 
分享
 

Manage episode 293028698 series 2674787
内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

Today we are going to talk about libraries vs frameworks in software development.

A software library is something you use that enhances your application. It's a bundle of code that you can plug into an existing project. A software library normally solves a specific task such as connecting to a database, making forms or providing routines that manipulate images. A library can co-exist amongst other libraries and this is also true for libraries that do the same task. For example you might have a software library that crops an image to a certain size. You may want to try another library that does the same thing.

A software framework provides a set of APIs such as user authentication, session management, templating, request and response handling and so on. A framework is a single package that could contain smaller packages that do different things. A framework is very opinionated. It provides specific places for you to add your and it controls almost everything about how your code interacts with it.

Generally you cannot add a framework to an existing project because it must be the top layer of abstraction.

Both libraries and frameworks are code that is written by someone else that you use to enhance your project.

When you use a library you are in charge of the application flow. You choose how and when the library is called in your application. On the other hand, a framework is a set of API’s that can be called at certain points in its defined flow. Usually a framework tells you what to do, when to do it and where to do it. Frameworks are normally developed by large teams or the open source community. Due to this, a framework normally adheres to best practices, a strict set of coding standards and the framework is regularly maintained.

There is a big learning curve with frameworks but popular frameworks are well known and sort after in the software industry.

In summary a framework tells you what to do whereas you tell a library what to do. You have full control over a library but you have to define the rules of your application. You have limited control over the framework and you need to adhere to rules set out by the framework.

Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

My web development courses

➡️ Learn How to build a JavaScript Tip Calculator

➡️ Learn JavaScript arrays

➡️ Learn PHP arrays

➡️ Learn Python

✉️ Get my weekly newsletter

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = Live Podcast YouTube

Sundays 14:30 - Live coding on Twitch

  continue reading

201集单集

Artwork

113 - Software Frameworks vs Libraries

How To Code Well

123 subscribers

published

icon分享
 
Manage episode 293028698 series 2674787
内容由Peter Fisher提供。所有播客内容(包括剧集、图形和播客描述)均由 Peter Fisher 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal

Today we are going to talk about libraries vs frameworks in software development.

A software library is something you use that enhances your application. It's a bundle of code that you can plug into an existing project. A software library normally solves a specific task such as connecting to a database, making forms or providing routines that manipulate images. A library can co-exist amongst other libraries and this is also true for libraries that do the same task. For example you might have a software library that crops an image to a certain size. You may want to try another library that does the same thing.

A software framework provides a set of APIs such as user authentication, session management, templating, request and response handling and so on. A framework is a single package that could contain smaller packages that do different things. A framework is very opinionated. It provides specific places for you to add your and it controls almost everything about how your code interacts with it.

Generally you cannot add a framework to an existing project because it must be the top layer of abstraction.

Both libraries and frameworks are code that is written by someone else that you use to enhance your project.

When you use a library you are in charge of the application flow. You choose how and when the library is called in your application. On the other hand, a framework is a set of API’s that can be called at certain points in its defined flow. Usually a framework tells you what to do, when to do it and where to do it. Frameworks are normally developed by large teams or the open source community. Due to this, a framework normally adheres to best practices, a strict set of coding standards and the framework is regularly maintained.

There is a big learning curve with frameworks but popular frameworks are well known and sort after in the software industry.

In summary a framework tells you what to do whereas you tell a library what to do. You have full control over a library but you have to define the rules of your application. You have limited control over the framework and you need to adhere to rules set out by the framework.

Kick start your tech career with Amarachi Amaechi's new book Getting Started in Tech: A guide to building a tech career

My web development courses

➡️ Learn How to build a JavaScript Tip Calculator

➡️ Learn JavaScript arrays

➡️ Learn PHP arrays

➡️ Learn Python

✉️ Get my weekly newsletter

⏰ My current live coding schedule (Times are BST)

Thursdays 20:00 = Live Podcast YouTube

Sundays 14:30 - Live coding on Twitch

  continue reading

201集单集

所有剧集

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南