Libraries - Reading Assignments


#1

Welcome to this assignment. Please answer the following questions from the lecture. Feel free to ask questions here as well if you need the help.

  1. Why do we need libraries in programming?
  2. What is documentation and why do we need it?

#2
  1. Libraries are per written functions which some other programmer has written.
  2. The documentation contains a list of all the functions in the library and the examples of how they are to be used.

#3
  1. A library is a stand alone group of coded functions that can be referenced and reused without having to recode the same functions repetitively. aka do not recreate the wheel… just use it and build upon it.

  2. Documentation is extremely important to describe how to use the functions, and expected input/output within the library.


#4
  1. Why do we need libraries in programming?
    Because we would to reuse the code prepared by other programmers to save time.
  2. What is documentation and why do we need it?
    Documentation is the file describing how to use the library with example.
    We use the documentation when we face a new library and the coding inside is so long that it is impossible to go through every sections.

#5
  1. Why do we need libraries in programming?
    They allow us to share and build upon previous work. This saves time, effort, and a need to know.

  2. What is documentation and why do we need it?
    Documentation allows anyone to understand the functions created within the library and how to use them properly.


#6

Library’s - used to stop “reinventing the wheel” Holds code to be reused.
Documentation - essential to guide others on how to use your code or functions


#7
  1. Why do we need libraries in programming?
    (On top of my head, I use libs daily)
  • To stop reinventing the wheel
    therefore get to production faster. Enables sharing of the code too for functionality that
  1. What is documentation and why do we need it?
  • We need a way to know how to use the library without having to know how the underlying code works, the application program interface