Quality metrics: Nutritional Labels for Code G. Ann Campbell - - PowerPoint PPT Presentation

quality metrics nutritional labels for code
SMART_READER_LITE
LIVE PREVIEW

Quality metrics: Nutritional Labels for Code G. Ann Campbell - - PowerPoint PPT Presentation

Quality metrics: Nutritional Labels for Code G. Ann Campbell @GAnnCampbell GenevaJug Why is this important? Software is Everywhere Software is everywhere https://www.lifewire.com/the-8-best-smart-home-products-4034624 Software is everywhere


slide-1
SLIDE 1

GenevaJug

Quality metrics: Nutritional Labels for Code

  • G. Ann Campbell

@GAnnCampbell

slide-2
SLIDE 2

Why is this important?

Software is Everywhere

slide-3
SLIDE 3

Software is everywhere

https://www.lifewire.com/the-8-best-smart-home-products-4034624

slide-4
SLIDE 4

Software is everywhere

https://www.lifewire.com/the-8-best-smart-home-products-4034624

slide-5
SLIDE 5

Software is everywhere

https://www.lifewire.com/the-8-best-smart-home-products-4034624

slide-6
SLIDE 6

Software is everywhere

http://www.makeuseof.com/tag/9-stupidest-smart-home-appliances/

slide-7
SLIDE 7

Software is everywhere

https://www.wareable.com/smart-home/best-smart-kitchen-devices

slide-8
SLIDE 8

Software is everywhere

http://www.makeuseof.com/tag/9-stupidest-smart-home-appliances/

slide-9
SLIDE 9

Software is everywhere

slide-10
SLIDE 10

Software is everywhere

slide-11
SLIDE 11

Software is everywhere

slide-12
SLIDE 12

Software is written by people

People make mistakes

slide-13
SLIDE 13

http://www.theverge.com/2017/1/10/14225716/apple-macbook-pro-consumer-reports-battery-life-issue-update-bug

slide-14
SLIDE 14

http://www.sciencealert.com/a-bug-in-fmri-software-could-invalidate-decades-of-brain-research-scientists-discover

slide-15
SLIDE 15

https://www.theregister.co.uk/2016/07/13/coding_error_costs_citigroup_7m/

slide-16
SLIDE 16

https://www.bleepingcomputer.com/news/security/about-90-percent-of-smart-tvs-vulnerable-to-remote-hacking-via-rogue-tv-signals/

slide-17
SLIDE 17

https://arstechnica.com/security/2017/04/wide-range-of-android-phones-vulnerable-to-device-hijacks-over-wi-fi/

slide-18
SLIDE 18

https://techcrunch.com/2017/02/23/major-cloudflare-bug-leaked-sensitive-data-from-customers-websites/

slide-19
SLIDE 19

http://www.softwaretestingnews.co.uk/hackers-exploit-software-bug-breach-canadian-government-agency-site/

slide-20
SLIDE 20

http://www.bbc.com/news/technology-35167191

slide-21
SLIDE 21

http://news.softpedia.com/news/medical-equipment-crashes-during-heart-procedure-because-of-antivirus-scan-503642.shtml

slide-22
SLIDE 22

http://www.safetyresearch.net/blog/articles/toyota-unintended-acceleration-and-big-bowl-%E2%80%9Cspaghetti%E2%80%9D-code http://www.edn.com/design/automotive/4423428/Toyota-s-killer-firmware--Bad-design-and-its-consequences

slide-23
SLIDE 23

Great.

We’re doomed

slide-24
SLIDE 24

Not necessarily...

slide-25
SLIDE 25

Food is everywhere too

slide-26
SLIDE 26

And it can be a minefield

slide-27
SLIDE 27

Nutrition labels

slide-28
SLIDE 28

Nutrition labels

slide-29
SLIDE 29

Static analysis

  • Analyze code without executing it
  • Used to find

○ Bugs ○ Bad coding practices ○ Vulnerabilities (some)

  • Easy to integrate into the build process
  • Wikipedia lists 30+ static analysis tools
slide-30
SLIDE 30

Full disclosure

I work for SonarSource

slide-31
SLIDE 31

SonarQube Quality Model

https://next.sonarqube.com/sonarqube/projects

slide-32
SLIDE 32

Nutrition Labels for Code

Static Analysis

Reliability Vulnerability Maintainability

D E B

slide-33
SLIDE 33

Nutrition Labels for Code

https://sonarqube.com

slide-34
SLIDE 34

Why

  • Analyze: If you measure it you can

improve it

  • Publish: Positive peer pressure => more

publishing

  • Improve: Competition => Rising tide of

improved quality

slide-35
SLIDE 35

Will Consumers ‘Get it’?

  • Not at first
  • Simple format will help
  • So will correlation in news

coverage

slide-36
SLIDE 36

Recap

  • Software is everywhere
  • Software quality is a black box
  • Publishing static analysis results

=> glass box

  • Glass box => better software
slide-37
SLIDE 37

@GAnnCampbell

slide-38
SLIDE 38

That’s all, Folks

@GAnnCampbell