Continuous Inspection: Fight back the 7 deadly sins of a developer!

Preview:

DESCRIPTION

 

Citation preview

Sebastian Marek

Continuous InspectionFight back the 7 deadly sins of a developer!

✤ a Pole living in Sheffield

✤ over 12 years in development

✤ Pascal, C++, PHP, perl, python, Java

✤ co-author of 2 PHP Books

✤ big fan of process automation

✤ TDD and CI

✤ occasionally contributes to open-source projects

✤ wants to be a knight@proofek

h"ps://joind.in/7802

LUST

WRATH

PRIDE

GREED

ENVYSLOTH

GLUTTONY

7DEADLYSINS

© beartoons.com

1. Lust

✤ Over-engineering

✤ Design patterns

✤ Abstraction

© beartoons.com

2. Gluttony

✤ Over-engineering

✤ Refactoring

✤ “Spaghetti code”

✤ Feature-rich

✤ Inefficiency© beartoons.com

3. Greed

✤ Competing across teams

✤ (Don’t) Reinvent the wheel

✤ Power struggle

© beartoons.com

5. Wrath

✤ A vehement denial of the truth

✤ Documentation

✤ Coding standards

✤ Unit tests

✤ Commit messages

✤ Rushing to production© beartoons.com

4. Sloth

✤ Input validation

✤ Duplications

✤ Coding standards

✤ Lazy coding

✤ Self-development

✤ Configuration “out-of-the-box”

© beartoons.com

6. Envy

✤ Not using version control

✤ Not needed features

✤ Contributions to open source projects

© beartoons.com

7. Pride

✤ (Don’t) Reinvent the wheel

✤ Unit tests

✤ Acceptance tests

✤ Software metrics

✤ Documentation

© beartoons.com

Technical Debt under control

✤ drill down to source code

✤ coding rules

✤ unit tests

✤ standard metrics

✤ time machine

✤ plugins

Sonar plugins - languages

Sonar plugins - integration

C I

vs

C I

Continuous Integration

vs

C I

Continuous Integration

vs

Continuous Inspection

Running analysis

✤ Sonar runner

✤ Ant

✤ Maven

Dynamic vs static analysis

PHP Plugin

✤ PHPUnit

✤ PHP CodeSniffer

✤ PHP Depend

✤ PHP Mess Detector

Sonar widgets - Size metrics, Comments & Duplications, Unit tests coverage

Sonar widgets - Time machine, Rules compliance, Complexity

Sonar - Source code browser

Sonar - Source code violations

Sonar - Hotspots

Sonar - Hotspots

Sonar - Time machine

Sonar - Time machine

Sonar - Developers cockpit

Links

✤ http://www.sonarsource.org/

✤ http://www.sonarsource.com/

✤ Sonar Demo - http://nemo.sonarsource.org/

✤ Sonar as a Service (SaaS) - http://www.cloudbees.com

Credits

✤ http://beartoons.com (the little devils)

✤ http://www.flickr.com/photos/e_tavares/3499009813/sizes/l/in/photostream/

Q & A

h"ps://joind.in/7802

Thank you!