Answer
- We need libraries in order to save our time as programmers. We can re-use existing code (a bunch of functions) and implement it into our projects.
Answer
A library is a JavaScript file that contains a bunch of functions. As programmers, we should re-use existing code when we can, so that we donât waste our time writing code that another programmer has already written.
1. Why do we need libraries?
If you want to add some functionality and interactivity to website using JavaScript, you can search for libraries and try to find a library, which just fits your needs. Maybe the developer has put a lot of work into this library and it would take you a considerable amount of time to build this whole library new from scratch. So if you really like this library, you can read its documentation and try to figure out how to build your functionality on top of it. It is a good idea to have a brief look at the code of the library, but there is no need to understand every single line of code in it. The important thing is, that you learn to use its functions properly to implement what you desire. You can see the functions of this library as black boxes. And as long as the library functions work well, you donât have to know how each function is working under the hood.
To not have to reinvent the wheel. Re-use as much code as possible for efficient software development.
We use libraries to save time , and reuse the existing code from the server to work effectively and efficiently .
Why do we need libraries?
We need libraries in order to reuse past functions that have created, that way we can spend more time creating new programs instead of rewriting things that have already been done.
I love the quote from Eloquent JavaScript that said JS has become a wall of many small rocks, everyone is building on top of each others work.
Because in the libraries we can find lots of functions, which can execute us useful tasks.
We find written codes, we can look up the available functions in the documentation, to decide which one is the optimal to use.
So we dont have to waste time writing a code that somebody else already wrote.
Libraries allow us to use a piece of code (think of a functionality) that was written by a different developer/s so that we do not have to spend time on creating our own. Essentially, we are reusing a code of someone else.
âProgramming is not an act of genius. Itâs the art of standing on the shoulders of giants.â By using libraries to build most of your site, you can focus your attention on the true innovation you are creating.
To reuse of code, we donât want to reinvent the wheel every time we start with a new project.
Glenn_CostaRica
1. Why do we need libraries?
We need libraries so we donât have to invest heavily - both in time and money - to design and implement brand new code with functionality that already exists. Libraries contain infinity of functions already implemented, tested and perfectly functional (at least many libraries do not represent danger or vulnerability). For us to create some of these robust functions, we would need months or years in many cases. In programming, the most advisable rule to follow is to use the good code that already exists and not to redo code if it is not strictly necessary.
We need libraries so we dont waste time on writting code, which already have been done perfectly by another programmer. In that way we can focus our time in developing new and crazy stuff.
Why do we need libraries?
JavaScript libraries are collections of JS codes and function from other developers which are free to use.
The reason why do we need these libraries is they do save time in a way that, we donât have to write own code when is already out there and to use them from the collection of online JavaScript Libraries.
Libraries work as a shortcut for developers.
Once you understand how a certain piece of code work you might not want to type it out every single time because it can be very time consuming and repetitive, instead you can find functional code in a library and link it to your program.
Why do we need libraries? to reuse of code, make it easier