SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Metriken in der
Softwareentwicklung
von
Markus Weßjohann
Alte Oldenburger AG
Bekannte Metriken
• Lines of Code
• Code Coverage
• McCabe-Metrik
• Anzahl Fehler
Welches Programm ist
einfacher?
Programm 0
XXXXXXXXXXXXXXX
XXXXX
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXXX
XXXXX
X
X
X
Programm 1
XXXXXXXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXXXXXXXXX
XXXXX
X
XXXXX
XXXXX
XXXXX
XXXXX
X
Gedanken-
übertragung
~75%
Programm 1
Programm 0
XXXXXXXXXXXXXXX
XXXXX
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXXX
XXXXX
X
X
X
Programm 1
XXXXXXXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXXXXXXXXX
XXXXX
X
XXXXX
XXXXX
XXXXX
XXXXX
X
Programm 0
XXXXXXXXXXXXXXX
XXXXX
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXX
XXXXX
X
X
XXXXXXXXXX
XXXXXXXXXXXX
XXXXX
X
X
X
Programm 1
XXXXXXXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
XXXXXXXXXXXX
XXXXX
X
XXXXX
XXXXX
XXXXX
XXXXX
X
Programm 0
XXXXXXXXXXXXXXX
@@XXXXX
@@XXXXXXXXXX
@@@@XXXXXXXXXXX
@@@@@@XXXXX
@@@@X
@@X
@@XXXXXXXXXX
@@@@XXXXXXXXXXX
@@@@@@XXXXX
@@@@X
@@X
@@XXXXXXXXXX
@@@@XXXXXXXXXXX
X
@@@@@@XXXXX
@@@@X
@@X
X
Programm 1
XXXXXXXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXXXXXXXXX
@@@@XXXXX
@@X
@@XXXXX
@@XXXXX
@@XXXXX
@@XXXXX
X
Adam Tornhill
Was wird benötigt?
• Python
• https://github.com/adamtorn
hill/maat-scripts
• git - optional
Auswerten der Ergebnisse
• Ergebnisse werden beeinflusst von:
– Programmiersprache
– Programmierrichtlinien
– Programmierstil
• Kein Richtwert von mir
,aber
• Richtwert ~ 90% Dateien
~> complexity_analysis.py VERSIS |
sort –nr –k3 –t‘;‘|
head -5
Start der Analyse
Modul 1 ; 3463 ; 9517 ; 6,11 ; 4,30 ; 13 …
Modul 2 ; 2073 ; 8230 ; 6,09 ; 1,41 ; 9 …
Modul 3 ; 1346 ; 5411 ; 6,57 ; 2,13 ; 9 …
Modul 4 ; 2230 ; 2665 ; 7,48 ; 1,74 ; 10 …
Modul 5 ; 1209 ; 1582 ; 2,58 ; 3,51 ; 17 …
Beispiel
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
Einstiegsdialog für die Leistungsabrechnung
Zeilennr
Complexity
Mehrere Möglichkeiten:
• Einbinden in git als git-hook
• Einbindung in die
IDE/SonarQube/CI
• Manuelle Reports
Analyseergebnisse
Ausprobieren &
Ergebnisse sichern
1.Abbau technischer Schulden
durch Refactorings
2.Aufwandschätzungen
Vorgehen
1.Analysieren
2.Probleme identifizieren
3.Probleme bewerten
4.Probleme abmildern
5.REPEAT
Blogeintrag: Mit Metriken
managen: Mist!
Zusammenfassung
???
Fragen
Weiter Informationen
• http://www.adamtornhill.com/
• https://empear.com/products/codescen
e-on-premise/
• https://github.com/adamtornhill
– https://github.com/adamtornhill/ma
at-scripts
– https://github.com/adamtornhill/co
de-maat
• https://blog.sonarsource.com/cogniti
ve-complexity-because-testability-
understandability
Weiter Informationen
• https://www.heise.de/developer/artik
el/Mit-Metriken-managen-Mist-
3568010.html

Weitere ähnliche Inhalte

Empfohlen

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Metriken in der Softwareentwicklung

Hinweis der Redaktion

  1. Start des Zaubertricks DSGVO In welchem Programm würdet ihr lieber einen Fehler beheben?
  2. Programm 0: Ermittlung Risikogruppe, Kind, Mann, Frau, männlicher Jugendlich, weiblicher Jugendliche Programm 1: Fourier Transformation
  3. Rot markiert
  4. Leerzeichen anzeigen Durch Einrückung geht man davon aus, dass Programm 0 mehr Schleifen und Bedingung enthält als Programm 1
  5. Bücher Your Code as a Crime Scene Software Design X-Rays
  6. Startrichtwert ~ Richtwert 80-90% Dateien
  7. VERSIS nach der Komplexität sortiert und Top 5 ausgeben. In euren Top 20 sind ein paar „unbekannte“ Module dabei. Die 2. Empfehlung für das Buch ist die Auswertung der historischen Daten.
  8. 11/2012-05/2013 - PZN Vorbelegung 12/2014 - Storno Rechnungen 12/2016 - Refactoring
  9. Empfehlung für 3
  10. Zu 2. generierten Code herausfiltern Zu 3. Context beachten, Projektende, Projektstart, alter des Moduls Zu 4. Refactoring, Neuimplementierung