Rather than always be writing code from scratch we can use existing code from a library to build upon, saving time, making work easier.
Why do we need libraries?
It makes us save time by taking from others already made code instead of creating our own , its faster and useful
1. Why do we need libraries?
Libraries contain a series of functions that the author wishes to share with others. This enables these other people to use common functions already built without having to recreate the wheel.
- Why do we need libraries?
Libraries are a way for programmers to re-use existing programās in order to gain time!
we need libraries because we can make ourselves work more efficient. instead of re-inventing the wheel for everey code we could just use a wheel/pile of code and implement it in our program.
Because they save a lot of time. By having access to libraries you can use other peopleās coding to perform a job that you need to get done. This saves thousands of hours by ensuring that coders donāt have to code every little thing.
In order to donāt waste our time writing code that another programmer has already written.So, when we need a function we go to js library file and we reuse those functions that are useful for our webpage.
We need libraries to reuse code that has functions that would only waste time to code by oneās self.
To reuse code and to not re-invent the wheel. To save time.
It can be seen as a fundemental aspect of programming - to save time. Reuse and build upon already written code.
- Libraries help us to reuse code that other people have written. This Increases productivity.
- We need libraries because not only does it save time and energy to use cleaner, proven-to-work code from other programmers, but it also allows us to expand our code by using libraries like legos. It can easily enhance User interface, interaction and where your webpage is pulling data from. JS libraries work together like a network.
"Building everything from the scratch takes much time and effort. Having a library which can cater to the need of the programmer can save us from reinventing the wheel. Libraries provide a certain level of abstraction which enables the programmer to work exactly on what is required by using the resources which have already been built."
- We need them so we donāt end up reinventing the wheel for every program we write.
To re-use existing code when we can, so that we donāt waste our time writing code that another programmer has already written.
Libraries - Reading.
- Libraries are commonly ready made functions or codes stored for use in programming. They are use because of the following:
- use as a resource for functions or codes.
- a reference points for programmers.
- sources for programmers to re-use existing codes when they can.
- prevent time wasting - writing codes that other programmers have already written.
- have shortcuts to be used instead of deep-down programming codes.
so that we can use code already written from other developers, so that we donāt waste time on routine functionality. It gives us more time to work on our own ideas.
Because it facilitates our life a lot as programmers by using existing code written and published by other people.
One canāt be expected to build every function or piece of a code from scratch when so many open source and well-developed programs and functions are readily available online. We use them to save us time and provide us with essential building blocks to the programs we wish to create.
The library helps us to optimize work and time!
- libraries add value and increased functionality