Developer Fundamentals Flashcards

1
Q

Data Structures

A

an expert programmer is able to understand what the tradeoffs are of each data structure and understanding which data structure to use

when to use a list: when order matters.

when to use a dictionary: unordered. holds more information than lists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is good code?

A
  1. is your code clean code?
  2. is your code readable?
  3. is your code predictable?
  4. is your code DRY?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Pros and Cons of libraries

A

a developer uses the different tools available to them. Libraries are different sets of tools. It is up to the developer to know which tools to use.

it is up to the developer to know when to build something from scratch vs when to utilize a library that already has it built.

So, a good amount of the work is knowing how to make the pieces fit together.

The idea is to never recreate the wheel if you don’t need to. If the task is too time consuming or is not within your area of expertise (or interest) then use a package/library/module

Cons: libraries can add extra weight and code to your program. Making it more difficult to maintain and reducing the performance of memory and speed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly