Libraries - Reading Assignments

  1. Libraries are useful because we don’t need to write a code that somebody else has already written.
  2. Library documentation describes what functions library contains and its description. It helps us to orient in the library so we know what and how we can use it.
1 Like
  1. Why do we need libraries in programming?
    It reduces the effort to build something if you use libraries considerably. We should not invent the wheel over and over again!

  2. What is documentation and why do we need it?
    In the documentation you will find how the different functions are used. You can learn about the parameters you have to provide to the function in order to get the desired result.

1 Like

1.Why do we need libraries in programming?
We need libraries in programming so that we can reuse code that was already written to save time.

2.What is documentation and why do we need it?
Documentation is a list of available functions or real-world examples. We need documentation so we can know what functions we can use.

1 Like
  1. So that developers don’t have to rewrite code that has been written before and to reduce bugs in code
  2. Documentation explains the library and how to use it and to avoid errors or unexpected behaviour you should read it before implementing the library
2 Likes