-
Notifications
You must be signed in to change notification settings - Fork 7
Vertical structure
Mikhail Panko edited this page Aug 30, 2013
·
6 revisions
Scale your data and code not just horizontally (independent new variables and functions) but also vertically (new variables and functions depending on existing ones). This is the only efficient way to work with large data- and code-bases. It is also one of the strongest powers of OOP.
- Use sub-folders when a folder has over 20 functions in it
- Scale code vertically by using functions of higher and higher levels of abstraction
Here is an example of a vertical code structure - function dependence:
analyzeInfoAcrossSessions() <- computeInfo() <- computeEntropy() <- estimateCov()
analyzeInfoAcrossSessions() <- loadData()