Date post: | 07-Nov-2014 |
Category: |
Technology |
Upload: | mobiledevnj |
View: | 525 times |
Download: | 4 times |
7 Deadly Coding Sins
Presented By: Gary Rattray Mobile Dev NJ Meetup
Google them all...
• Programming
• Programmers
• Coding...
Don’t Duplicate Code
Create Unit Tests
Example
Naming Methods
Naming Functions
Comments
Spaghetti Code
Spaghetti code is a pejorative term for source code that has a complex
and tangled control structure, especially one using many GOTOs,
exceptions, threads, or other "unstructured" branching constructs.
Spaghetti Code
Complexity
Design Spaghetti
Potential Bugs
Resources
• http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html
• http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/135-Unit_Testing_Applications/unit_testing_applications.html
• QUESTIONS?
Sins
1. Duplication 2. Lack of Unit Tests 3. Complexity 4. Potential Bugs 5. Coding Standards 6. Design Spaghetti 7. Comments
Resources
• http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html
• http://developer.apple.com/library/ios/#documentation/Xcode/Conceptual/ios_development_workflow/135-Unit_Testing_Applications/unit_testing_applications.html
• QUESTIONS?