Libraries - Reading Assignment

so we don’t rewrite cod that has already been written.

1 Like

1- We should re-use existing codes when we can, so that we don’t waste our time writing code that another programmer has already written. Also existing codes from a secure library provides security, since the code may have already seen so many battles.

1 Like
  1. Why do we need libraries?

For efficiency. We don’t have to reinvent the wheel. We can use libraries to use existing code for many of the programs we write.

1 Like
  1. Why do we need libraries?

A library is a file that contains a bunch of functions and code. Libraries allow us to use pre-existing code and build on it, cutting down the time it may take to write code that is already available.

1 Like

Reusing existing code when possible helps with time management and allows developers to focus on more tedious tasks.

1 Like

1. Why do we need libraries?

Programmers make use of libraries for two primary reasons;
Firstly to avoid spending valuable time constructing code that another programmer has already created and battle-tested, and corollary to this, to avoid creating new code which likely will not be as secure as established, community vetted and vouched for libraries.

1 Like
  1. Why do we need libraries?
    Libraries are needed so we can use code and repeat use code that has already be written by other programmers. This can save time and help others to understand ways of working. So just like the regular libraries, it is a good place to learn as well.
1 Like

Libraries make life easier for a programmer by sharing code developed already by other users so that we can accomplish more more quickly then if we were to write it all from scratch.

1 Like
  1. Libraries are a great way to add functionality to your code that other programmers have gone through the trouble of creating. Instead of “reinventing” the wheel, you can borrow the works that others have been kind enough to share.
1 Like

Simply put, in order to save time and energy.
Re-use codes and functions that other programmers have dedicated time and effort to create and shared to help other developers.

1 Like

We need libraries so we can share our JS code with other developers and use other peoples codes as well. So we don’t waste time and to help each other out.

1 Like
  1. Writing JavaScript can be time-consuming. Especially for complex applications.
    The truth is that many developers publish code blocks they wrote for applications they have made and offer them to other developers to use for free. These can be code snippets that developers can embed into their website for apps such as home loan calculators and weather dashboards, all the way to expansive standards for writing code to expand the capabilities of a language.
    These libraries save developers a tonne of time. Instead of having to reinvent something that has already been done a million times over, a developer can incorporate a library into their program and focus more time on doing the things that are unique to their project.
1 Like
  1. Libraries enable us to reuse and build upon code that has already been built.
1 Like

Libraries are very useful tools as they contain much of code that has already been written and can be re-used in a developers project. This saves on time figuring out and applying code for which someone has more likely already done the same thing maybe even better/shorter.

However, on a personal note I think it’s also wise to read and understand any code you may use from a library as the whole cut n paste could make us lazy coders if not careful.

1 Like
  1. To not waste time by writing code that others may have created for the same application purpose.
1 Like

We need libraries to leverage other developers work.

1 Like

Exactly! Very going point. :raised_hands:

1 - libraries are super useful to do common tasks with with javascript, so you don’t have to reinvent the wheel every time.

For example there are libraries that allow you to create professional looking input forms with build in error checking (make sure user submitted all needed info). Since input forms are extremely common it makes sense to access a standard library code to create it. No point in recreating it from stratch every time.

2 Likes

1. Why do we need libraries?
Libraries facilitate code reusability, reducing programming time.

1 Like
  1. We need libraries because it is useless to try to remake code when you can use code that others have already created
1 Like