Slides-deck from my talk at the VT Code Camp 2014. Useful for developers of all levels and platforms. Dive into the how's and why's for developing clean code and learn to "think clean" when writing code.
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Clean Code: Write Clean Think Clean
1. Clean Code: Write Clean Think Clean
-1-
Agenda
What is clean code?
Why do we need it?
How we can do it?
2. What is clean code?
Readable / Understandable
var X=“Hetal”, var y=“Dave”
var FirstName = “Hetal” var LastName=“Dave”
function DoSomething()
function SaveAddress()
-2-
Easy to maintain
Easy to scale up or down
Simple and organized
3. -3-
Why do we need it?
Better readability
Better maintainability
Reduced cost of maintenance
Satisfaction of – A Job Well Done!!!
4. -4-
How we can do it?
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