Libraries - Reading Assignment

Hello everyone,

We need libraries because we can reuse code.

1 Like
  1. We use library to easily have access to code that other programmer have already written and that we can use without wasting time on write it again. A library in JavaScript, is a file that contain a bunch of functions that a programmer can use for his own purpose.
1 Like

We need libraries simply to make things less time consuming. Being able to reference and locate code that fits the criteria of that which you are trying to accomplish, can make life a lot easier.

1 Like

We need libraries because 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. It saves time using libraries.

1 Like
  1. A library is a Javascript file that contains a collection of functions. Libraries allow developers to re-use existing code written by others.
1 Like
  1. Why do we need libraries?
    To save time.
1 Like

Java Script Libraries are useful because you can use code that has already been written and then shared. These libraries can be called from a server and executed on your program so it makes everything clean. The hardest job is to find the library that you want having to choose from so many options.

1 Like
  1. We need libraries so we don’t waste time writing code that another programmer has already written.
1 Like

A library is a JavaScript file that contains a bunch of functions, and those functions accomplish some useful task on your webpage. The reason we need them is to save time and not having to rewrite code again when someone has done it already. It allows us to focus more time on the important aspects of our program.

1 Like

Why do we need libraries?
Libraries allow programmers to reuse proven and established code, rather than having to write everything from scratch.

1 Like
  1. Why do we need libraries?

We can save a lot of time using libraries, because libraries contain code that has already been written and proved and we can just use them without coming up with own code.

1 Like
  1. We need libraries to efficiently use our time programming. If we are able to use others’ code then we can make the most of our most valuable asset.
1 Like
  1. Why do we need libraries?
    libraries allow a coder to use existing code to reduce time and improve the efficacy of a program.
1 Like

@ivan Hi, are you able to take code for a library and edit it? For example, if you wanted the slide show to fade from one picture to the next instead of flashing, can you edit the underlying code to accomplish this?

  1. Why do we need libraries?
so we don't have to waste time and write code if its already available elsewhere
1 Like
  1. So that we as a developers don’t need to create code that as already been created. With JS libraries one can just make a reference for a js file that contains the code that we want to use, saving a lot of time.
1 Like

Greetings @Tesla,
To answer your question, usually Libraries are used as out of the box tools. Most of the libraries provide enough configuration for you to put in so that it meets your exact needs. As developers, it is not a good practise to edit libraries and then use it.

When it comes to your example of slide show fading, I’m sure there must be configuration (CSS based) that allow you to make that.

Hope this clears it out.

Happy Learning! :slight_smile:

1 Like

Thanks @Malik, I see a lot of websites use the same templets and design I assume they are using libraries. Is there a way to create costume websites other than writing the code yourself?

In order not to waste our time in writing a code that another programmer has already written it.

1 Like

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.

How do we know what functions we can use? We could look at the JavaScript file, if it’s short, or better, we could look at the documentation . Most libraries have documentation with a list of available functions or a real-world example.

1 Like