Difference between revisions of "Tech Tips"
From kemiko
Line 1: | Line 1: | ||
'''Trouble Shooting''': | '''Trouble Shooting''': | ||
* start with the basics...like power, network, etc. | * start with the basics...like power, network, etc. | ||
+ | |||
+ | '''Adminstration''': | ||
+ | <ul> | ||
+ | General | ||
+ | <ul> | ||
+ | <li> | ||
+ | Always query before running modification command | ||
+ | </li> | ||
+ | <li> | ||
+ | Backup or already have a backup before modifying files | ||
+ | </li> | ||
+ | </ul> | ||
+ | </ul> | ||
'''Development''': | '''Development''': | ||
Line 26: | Line 39: | ||
</ul> | </ul> | ||
</ul> | </ul> | ||
+ | |||
<ul> | <ul> | ||
Coding | Coding | ||
Line 34: | Line 48: | ||
<li> | <li> | ||
Line block brackets up vertically | Line block brackets up vertically | ||
+ | </li> | ||
+ | <li> | ||
+ | Happy balance between complexity and readability | ||
+ | </li> | ||
+ | <li> | ||
+ | Happy balance between too long and too short variable naming | ||
+ | </li> | ||
+ | <li> | ||
+ | Pick a style and stay consistent | ||
</li> | </li> | ||
</ul> | </ul> | ||
</ul> | </ul> |
Revision as of 21:26, 19 November 2016
Trouble Shooting:
- start with the basics...like power, network, etc.
Adminstration:
-
General
- Always query before running modification command
- Backup or already have a backup before modifying files
Development:
-
Naming
- Avoid spaces.
- Use camelCase.
- Name common items with the common word starting each item.
- Name same item, but numbered with enough padding to sort correctly. ex: if going to at least 10 use 01-10 instead of 1-10.
- Name date by number not name and most general to specific. So they sort correctly. ex: 20161231 instead of Dec31-2016, etc.
- Name using noun first then verb. ex: logCreate, logList, etc.
-
Coding
- Always add comments
- Line block brackets up vertically
- Happy balance between complexity and readability
- Happy balance between too long and too short variable naming
- Pick a style and stay consistent