guardian/old-2017-census-interactive
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 30 files with 2,597 lines of code.
- 0 very long files (0 lines of code)
- 1 long files (901 lines of code)
- 1 medium size files (238 lines of code)
- 5 small files (700 lines of code)
- 23 very small files (758 lines of code)
Legend:
1001+
501-1000
201-500
101-200
1-100
explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
File Size per Logical Decomposition
primary
Longest Files (Top 30)
| File | # lines | # units |
|---|---|---|
| 901 | - | |
| 238 | 6 | |
| 191 | 5 | |
| 153 | 11 | |
| 135 | 4 | |
| 119 | 10 | |
| 102 | - | |
| 99 | 11 | |
| 80 | 4 | |
| 74 | 7 | |
| 62 | 4 | |
| 51 | 2 | |
| 51 | 3 | |
| 46 | 3 | |
| 46 | 3 | |
| 45 | 2 | |
| 35 | 1 | |
| 29 | 2 | |
| 28 | 3 | |
| 27 | 3 | |
| 21 | 2 | |
| 14 | 1 | |
| 14 | - | |
| 12 | - | |
| 8 | - | |
| 6 | - | |
| 4 | 1 | |
| 3 | - | |
| 2 | - | |
| 1 | - |
Files With Most Units (Top 21)
| File | # lines | # units |
|---|---|---|
| 153 | 11 | |
| 99 | 11 | |
| 119 | 10 | |
| 74 | 7 | |
| 238 | 6 | |
| 191 | 5 | |
| 135 | 4 | |
| 80 | 4 | |
| 62 | 4 | |
| 46 | 3 | |
| 27 | 3 | |
| 28 | 3 | |
| 51 | 3 | |
| 46 | 3 | |
| 51 | 2 | |
| 21 | 2 | |
| 29 | 2 | |
| 45 | 2 | |
| 14 | 1 | |
| 35 | 1 | |
| 4 | 1 |
Files With Long Lines (Top 12)
There are 12 files with lines longer than 120 characters. In total, there are 60 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 51 | 2 | 16 | |
| 191 | 5 | 16 | |
| 135 | 4 | 10 | |
| 51 | 3 | 5 | |
| 46 | 3 | 3 | |
| 102 | - | 2 | |
| 46 | 3 | 2 | |
| 45 | 2 | 2 | |
| 238 | 6 | 1 | |
| 14 | 1 | 1 | |
| 29 | 2 | 1 | |
| 74 | 7 | 1 |
About This Analysis
- File size measurements show the distribution of size of files.
- Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
- It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
- To learn more about bloaters and how to deal with long code structures, Sokrates recommends the following resources:
- Refactoring bloaters, sourcemaking.com
- The Blob Software Development Anti-Pattern, sourcemaking.com