How to write good code ?
-
Upload
safil-sunny -
Category
Engineering
-
view
83 -
download
5
Transcript of How to write good code ?
How To Write Good Code ?
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Commenting & Documentation
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Consistent Indentation
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Avoid Obvious Comments
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Code Grouping
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Consistent Naming Scheme
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
DRY Principle
DRY stands for Don't Repeat Yourself. Also known as DIE: Duplication is Evil.
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Avoid Deep Nesting
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Limit Line Length
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
File and Folder Organization
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Consistent Temporary Names
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Capitalize SQL Special Words
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Separation of Code and Data
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Object Oriented vs. Procedural
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Read Open Source Code
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Naming conventions
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Whitespace
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Don’t optimize code too soon
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Never hack a framework
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Refactor every so often
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Use revision control for your code
Safil SunnySolutions Architect | Lead Developer | Certified ScrumMaster® (CSM) in Mobility
Allow time for learning