Upload
radu-vunvulea
View
294
Download
3
Embed Size (px)
DESCRIPTION
clean code, naming, TSM
Citation preview
@RaduVunvulea
Clean CodeNaming
{“name” : “Radu Vunvulea,“company” : “iQuest Group”,“userType” : “enthusiastic”“technologies” : [“Azure”, “.NET”, “JS”, “Web”, “Mobile”, “WPF”, “SL” ],“expertise” : [“enterprise”, “pharma”, “automotive”, “home automation”, “e-Commerce” ],“blog” : “vunvulearadu.blogspot.com”,“email” : ”[email protected]”,“socialMedia” :
{“twitter” : “@RaduVunvulea”,
“fb” : “radu.vunvulea”}
}
Who am I?
Why? AwarenessTips on how to producebetter codeReadabilityThe ‘boy scout rule’
Smart vs ProfessionalSmart developer• Difficult code• Has a great
developer skills
• Example:‘r’
Professional developer• Readable code• Maintainable code• ‘Clarity is king’
Smart vs ProfessionalSmart developer• Difficult code• Has a great
developer skills
• Example:‘r’
Professional developer• Readable code• Maintainable code• ‘Clarity is king’
• Example‘lowecaseUrlOfCurrentPage’(lowercase url)
Naming
Reveal your intension
Avoid Disinformati
on
Make Meaningful Distinctions
Use Pronounceab
le Names
Use Searchable
Names
Avoid Encoding
Avoid Mental Mapping
Class
•Noun• ‘Car’• ‘Engine’
Method
•Verb• ‘Start’• ‘Stop’
Question
Answers
Thank you{ “name” : “Radu Vunvulea, “blog” : “vunvulearadu.blogspot.com”, “email” : ”[email protected]”, “socialMedia” : {
“twitter” : “@RaduVunvulea”,“fb” : “radu.vunvulea”
}}