lecture 2 software metrics
play

Lecture 2: Software Metrics 2017-04-27 Prof. Dr. Andreas Podelski, - PowerPoint PPT Presentation

Softwaretechnik / Software-Engineering Lecture 2: Software Metrics 2017-04-27 Prof. Dr. Andreas Podelski, Dr. Bernd Westphal Albert-Ludwigs-Universitt Freiburg, Germany 2 2017-04-27 main Topic Area Project Management: Content


  1. Softwaretechnik / Software-Engineering Lecture 2: Software Metrics 2017-04-27 Prof. Dr. Andreas Podelski, Dr. Bernd Westphal Albert-Ludwigs-Universität Freiburg, Germany – 2 – 2017-04-27 – main –

  2. Topic Area Project Management: Content • Software Metrics VL 2 • Properties of Metrics • Scales . . . • Examples VL 3 • Cost Estimation • Deadlines and Costs . . • Expert’s Estimation . • Algorithmic Estimation VL 4 • Project Management • Project . . . • Process and Process Modelling • Procedure Models VL 5 • Process Models – 2 – 2017-04-27 – Sblockcontent – • Process Metrics . . . • CMMI, Spice 2 /42

  3. Content • Survey : Expectations on the Course • Software Metrics • Motivation • Vocabulary • Requirements on Useful Metrics • Excursion: Scales • Excursion Excursion: Mean, Median, Quartiles • Example: LOC • Other Properties of Metrics • Base Measures vs. Derived Measures • Subjective and Pseudo Metrics • Discussion – 2 – 2017-04-27 – Scontent – 3 /42

  4. Survey: Previous Experience Project Management 30 20 10 0 1 2 3 4 5 6 7 8 9 10 Requirements Engineering Programming 30 30 20 20 10 10 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 Design Modelling Software Quality Assurance 30 30 20 20 10 10 – 2 – 2017-04-27 – Sexpectations – 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 6 7 8 9 10 4 /42

  5. Expectations • general L 1: 24.4., Mon Introduction Scales, Metrics, L 2: 27.4., Thu ✔ work with others in a large software development team - 1.5., Mon ✔ communicate results to other people T 1: 4.5., Thu Costs, L 3: 8.5., Mon ✔ learn how to properly document the work Development L 4: 11.5., Thu L 5: 15.5., Mon Process ✔ know, how to acquire knowledge on aspects of SW Eng. on our own T 2: 18.5., Thu ✔ get to know industry standards, investigate their strengths / weaknesses L 6: 22.5., Mon - 25.5., Thu ✔ overview, terminology, and references for own enquiries Requirements L 7: 29.5., Mon ✘ know about trustful internet sources to get such information while Engineering L 8: 1.6., Thu working - 5.6., Mon - 8.6., Thu ✔ understanding the procedure of software production, including common T 3: 12.6., Mon mishaps at each step - 15.6., Thu ✔ systematically analyse the steps of software development which are done L 9: 19.6., Mon “implicitly” in smaller, self-made projects L10: 22.6., Thu Arch. & Design L 11: 26.6., Mon ✔ course is balanced with theoretical as well as practical scenarios T 4: 29.6., Thu ✔ getting tools (roughly specific ideas) for attacking problems L 12: 3.7., Mon Software ✔ have some fun, learn a lot [...] not only for the further studying or working L13: 6.7., Thu Modelling but also for life L14: 10.7., Mon T 5: 13.7., Thu – 2 – 2017-04-27 – Sexpectations – • other courses Patterns L15: 17.7., Mon L16: 20.7., Thu QA (Testing, ( ✘ ) Vorallem hoffe ich auf eine sinnvolle Verbindung zum Softwarepraktikum. Formal Verif.) L 17: 24.7., Mon Wrap-Up L18: 27.7., Thu 5 /42

  6. Expectations Cont’d • project management L 1: 24.4., Mon Introduction Scales, Metrics, L 2: 27.4., Thu ✔ minimize risks, estimate project duration, - 1.5., Mon ( ✘ ) the financial part: how much money can can you demand for software? T 1: 4.5., Thu Costs, L 3: 8.5., Mon ( ✔ ) how to estimate cost/time, without resorting to years of experience Development L 4: 11.5., Thu L 5: 15.5., Mon Process ✔ different life stages of a software T 2: 18.5., Thu ✔ become acquainted with the most common procedures of software L 6: 22.5., Mon development - 25.5., Thu Requirements L 7: 29.5., Mon ✔ selection of right process for a project. Engineering L 8: 1.6., Thu ( ✘ ) learn how things are done in real companies - 5.6., Mon - 8.6., Thu • requirements T 3: 12.6., Mon - 15.6., Thu ✔ How to communicate between customer and software team effectively L 9: 19.6., Mon ✔ formalise software engineering problems L10: 22.6., Thu ✔ learn how to specify the requirements Arch. & Design L 11: 26.6., Mon T 4: 29.6., Thu ( ✔ ) how to write something based on customer’s wishes, which is L 12: 3.7., Mon unambiguous (for the programmers), but understandable for the Software L13: 6.7., Thu customer, such that the customers can check on their own what is meant. Modelling L14: 10.7., Mon T 5: 13.7., Thu – 2 – 2017-04-27 – Sexpectations – Patterns L15: 17.7., Mon L16: 20.7., Thu QA (Testing, Formal Verif.) L 17: 24.7., Mon Wrap-Up L18: 27.7., Thu 6 /42

  7. Expectations Cont’d • design L 1: 24.4., Mon Introduction Scales, Metrics, L 2: 27.4., Thu ✔ techniques and vocabulary to express design - 1.5., Mon ✔ learn how to use basic and maybe some advanced techniques, models T 1: 4.5., Thu and patterns in software development Costs, L 3: 8.5., Mon Development L 4: 11.5., Thu ✔ the modern techniques: [...] Test Driven Design, Behaviour Driven Design L 5: 15.5., Mon Process ✔ acquire knowledge in UML T 2: 18.5., Thu L 6: 22.5., Mon ✔ principles of reasonable software architectures - 25.5., Thu Requirements L 7: 29.5., Mon ( ✘ ) verification of architectures Engineering L 8: 1.6., Thu ( ✔ ) what distinguished well-designed SW from bad-designed ones - 5.6., Mon ✘ how to quantify and check things like “good usability” - 8.6., Thu T 3: 12.6., Mon ✘ focus on software architecture - 15.6., Thu L 9: 19.6., Mon • Implementation L10: 22.6., Thu ( ✘ ) write reusable and maintainable code Arch. & Design L 11: 26.6., Mon T 4: 29.6., Thu ( ✘ ) knowing the adequate codes for the certain software L 12: 3.7., Mon Software L13: 6.7., Thu • Quality Assurance Modelling L14: 10.7., Mon T 5: 13.7., Thu ( ✔ ) Which software qualities are more important for different types of SW? – 2 – 2017-04-27 – Sexpectations – Patterns L15: 17.7., Mon ( ✘ ) test code in a reusable efficient way L16: 20.7., Thu QA (Testing, ( ✔ ) extend my basic knowledge on verification methods (unit tests etc.) Formal Verif.) L 17: 24.7., Mon Wrap-Up L18: 27.7., Thu ( ✘ ) conduct a review 7 /42

  8. Content • Survey : Expectations on the Course • Software Metrics • Motivation • Vocabulary • Requirements on Useful Metrics • Excursion: Scales • Excursion Excursion: Mean, Median, Quartiles • Example: LOC • Other Properties of Metrics • Base Measures vs. Derived Measures • Subjective and Pseudo Metrics • Discussion – 2 – 2017-04-27 – Scontent – 8 /42

  9. Software Metrics – 2 – 2017-04-27 – main – 9 /42

  10. Engineering vs. Non-Engineering workshop studio (technical product) (artwork) Mental the existing and artist’s inspiration, prerequisite available technical among others know-how Deadlines can usually be planned cannot be planned due with sufficient precision to dependency on artist’s inspiration Price oriented on cost, determined by market thus calculable value, not by cost Norms and exist, are known, and are rare and, if known, standards are usually respected not respected Evaluation and can be conducted using is only possible comparison objective, quantified subjectively, criteria results are disputed Author remains anonymous, considers the artwork as often lacks emotional part of him/herself ties to the product – 1 – 2016-04-18 – Sengineering – Warranty and are clearly regulated, are not defined and in – 2 – 2017-04-27 – Smetricintro – liability cannot be excluded practice hardly enforceable (Ludewig and Lichter, 2013) 6 /36 10 /42

  11. Vocabulary metric — A quantitative measure of the degree to which a system, component, or pro- cess posesses a given attribute. See: quality metric. IEEE 610.12 (1990) quality metric — (1) A quantitative measure of the degree to which an item possesses a given quality attribute. (2) A function whose inputs are software data and whose output is a single numerical value that can be interpreted as the degree to which the software possesses a given quality attribute. IEEE 610.12 (1990) – 2 – 2017-04-27 – Svocabulary – 11 /42

  12. Software Metrics: Motivation and Goals Important motivations and goals for using software metrics: • specify quality requirements • assess the quality of products and processes • quantify experience, progress, etc. • predict cost/effort, etc. • support decisions Software metrics can be used: • prescriptive , e.g., “all prodecures must not have more then N parameters”, or • descriptive , e.g., “procedure P has N parameters”. A descriptive metric can be • diagnostic , e.g., “the test effort was N hours”, or • prognostic , e.g., “the expected test effort is N hours”. Note: prescriptive and prognostic are different things. • Examples : support decisions by diagnostic measurements: – 2 – 2017-04-27 – Sgoals – (i) Measure CPU time spent per procedure, then “optimize” most time consuming procedure. (ii) Measure attributes which indicate architecture problems, then re-factor accordingly. 12 /42

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend