- 1-
Clean Code: Write Clean Think Clean
AgendaWhat is clean code?
Why do we need it?
How we can do it?
- 2-
Readable / Understandablevar X=“Hetal”, var y=“Dave” var FirstName = “Hetal” var LastName=“Dave”function DoSomething()function SaveAddress()
Easy to maintain
Easy to scale up or down
Simple and organized
What is clean code?
- 3-
Better readability
Better maintainability
Reduced cost of maintenance
Satisfaction of – A Job Well Done!!!
Why do we need it?
- 4-
Follow Industry Standards Your experiences/learnings
Implement SOLID Principles (Start with SRP – Single Responsibility Principle)- function SaveAdress() : // Do Validation & Save Address
- function ValidateAddress() : Validate Address- function Save Address() : Save Address
Tools Resharper
Have Self discipline Patience
How we can do it?
- 5-
Resharperhttp://www.jetbrains.com/resharper/
BooksClean Code ISBN-13: 000-0132350882 ISBN-10: 0132350882
Code Complete ISBN-13: 079-0145196705 ISBN-10: 0735619670
Quick Read http://blog.pluralsight.com/7-reasons-clean-code-matters http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod
Resources & References