Skip to content

Instantly share code, notes, and snippets.

View tuanna-hsp's full-sized avatar
🏠
Working from home

Nguyễn Anh Tuấn tuanna-hsp

🏠
Working from home
View GitHub Profile
@tuanna-hsp
tuanna-hsp / Unity.gitignore
Created March 22, 2017 14:57
Unity .gitignore template
# =============== #
# Unity generated #
# =============== #
Temp/
Library/
# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
ExportedObj/
@tuanna-hsp
tuanna-hsp / Internal-design-characteristics.md
Last active September 21, 2016 06:50
From "Code Complete 2nd"

#Minimal complexity The primary goal of design should be to minimize complexity for all the reasons just described. Avoid making “clever” designs. Clever designs are usually hard to understand. Instead make “simple” and “easy-to-understand” designs. If your design doesn’t let you safely ignore most other parts of the program when you’re immersed in one specific part, the design isn’t doing its job.

#Ease of maintenance Ease of maintenance means designing for the maintenance programmer. Continually imagine the questions a maintenance programmer would ask about the code you’re writing. Think of the maintenance programmer as your audience, and then design the system to be self-explanatory.

#Loose coupling Loose coupling means designing so that you hold connections among different parts of a program to a minimum. Use the principles of good abstractions in class interfaces, encapsulation, and information hiding to design classes with as few interconnections as possible. Minimal connectedness minimizes work du