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*
2
Q
LRU Cache
A
- Least-Recently Used cache
- Places items used more recently towards the front and least recently towards the back
3
Q
Side Effects
A
- A situation in which a function modifies a variable defined outside of its scope
4
Q
$PATH variable
A
- Makes functions available anywhere in terminal
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
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
7
Q
abstract class
A
*