Libraries - Reading Assignment

1. We need libraries as to not waste our time writing code that has already been written by someone else.

We need libraries so we don’t have to rewrite or recreate code that’s already been created.

libraries are helpful because in many cases we dont need to write a new code but we can use functionalities from the library.

We need libraries because it enables us to return numerous functions from a file to shorten the task or rewriting code that serve the same purpose. In doing so, libraries enable us to reuse them on any webpage at any time.

To stand on the shoulder of giants, while being able to move on to more productive tasks.

Libraries enable us to make use of certain functions that have already been built so that we dont have to create them on our own. For example if we want to display the current date and time on your website, we could spend hours and hours to program our own calendar or we could just use a library with an already existing calendar app which is most likely to be better than the one we could create, anyway.

A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage.

Why do we need libraries?

  • why “reinvent the wheel” when you can use building blocks that are already created and tested
  • you don’t have to solve problems that have already been solved
  • faster development and more standardized functionality

1 - Plain and simple: Libraries exist so that we don’t have to re-invent the wheel every time we write code.
If you are re-wiring your house you won’t mine your own copper, grind it and process it make your own wires.
If you are building a new computer you won’t manufacture your own CPU and motherboard in your garage. You will use parts that somebody else has built. Libraries (kind of) work the same way.

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. In JavaScript, the way we do that is by using a library. A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task for your webpage.

  1. Libraries are functions that are publicly available to be linked into a webpage. It’s code written for common scenarios (e.g. running a slideshow on a page) so a developer can use the library instead of writing the code from scratch.

1. Why do we need libraries?

We need libraries so we can re-use the same code, so we don’t waste our time writing new code.

  1. Why do we need libraries?
    To save us time, because time is valuable.

Why do we need libraries?

To save time, gain efficiency, and reduce risk! Think of them as ready to go Lego blocks you can plug into your projects versus having to craft everything from scratch. It is also nice to have many sets of eyes looking for defects and vulnerabilities on chucks of your project!

to use already constructed code (function, objects) in order to save resources and increase efficiency.

We use libraries so we can re=use the code some other developers have a;ready written, so that we don’ t need to re=write the code, thus it gives us more time to focus on our project.

  1. We need them so that we can reuse other people code and to organize our code better.

Libaries are used by programmers to practice efficiency. By using or ‘borrowing’ code that someone else has already written and is generously sharing, programmers will save an immense amount of time and effort.

We can build upon and use the code someone else has already written

  1. Why do we need libraries?

Libraries allow us to reuse code.

Writing code is a time intensive process; when a language has the support of reusing pre-written, pre-tested code, it makes the life of a developer really easy.

Also it’s easier to maintain the code which includes usage of popular public libraries.