#SUGDE The good, the bad and the ugly Sitecore module
-
Upload
chriswoj -
Category
Technology
-
view
330 -
download
1
Transcript of #SUGDE The good, the bad and the ugly Sitecore module
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
27. Oktober 2015
The Good, The Bad and The Ugly Sitecore Module
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Agenda
1. Intro
2. Architecture Best Practices
3. Recommendations
4. Clean Code
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Intro
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
About me
Maksym Ponomarenko
Sitecore Consultant
netzkern AG
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Paraphrasing classic
There are two kinds of Modules in the world, my friends:
- With Flexible Architecture
- Ugly
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Architecture Best Practices
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Pipelines and Processors
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Managers and Providers
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
ID Generator
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Logs
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Clean Code
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Understanding messy code
Developer spends 60-80% time in understanding code
Messy code is a significant impediment
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Megamoth
Never make Mega Monolytic Methods
Don‘t build God classes
Write short methodsand
Class should have only one reason
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Clean Code
“Clean code can be read, and enhanced by a developer other
than its original author. “
"Big" Dave ThomasFounder of OTI, godfather of the Eclipse strategy
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Use S.OL.I.D principles
Single responsibilityOpen-closedLiskov substitutionInterface segregationDependency inversion
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Design Stamina Hypothesis
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Hell
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Module should be well docummented
1. Instalation Guide
2. User Guide
3. Developer Guide
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Do not override standard Sitecore functionalities
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Do not depend on other modules
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Support CM-CD environment
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Do not forget about localization
Translate.Text("LoremIpsum");
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Move Settigns to items
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Recommendations
Provide a Sitecore Speak Application to configure your module
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Your project can be supported by a violent gunman who knows how to find you
Remember
Unsichtbare Technologie. Sichtbare Kreativität. netzkern.
Vielen Dank für Ihre
Aufmerksamkeit.