Misc. Flashcards

1
Q

Heuristics

A
  • A type of shortcut or rule of thumb used by an algorithm
  • Or an estimate that can be included in an algorithm to make it run faster
  • Examples:
    • distance heuristic in A*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

LRU Cache

A
  • Least-Recently Used cache
  • Places items used more recently towards the front and least recently towards the back
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Side Effects

A
  • A situation in which a function modifies a variable defined outside of its scope
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

$PATH variable

A
  • Makes functions available anywhere in terminal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

error first callback

A
  • a convention in which
    • the first argument of a callback is reserved for an error object
    • the second argument of a callback is reserved for any successful response data
  • a popular pattern in node.js
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

semantic versioning

A
  • formal convention for specifying the version of a specific piece of software
  • number consits of three parts: major.minor.patch
  • ex, 1.7.2:
    • increase patch number when bugs are fixed
    • increase minor number when new features were added
    • increase major number when big (breaking) changes are made; code written in previous major might not work
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

abstract class

A

*

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