Clean Code Software-Entwicklung als Handwerkskunst Thomas Nagel, November 2011.

Slides:



Advertisements
Ähnliche Präsentationen
Verbs Used Impersonally With Dative Deutsch I/II Fr. Spampinato.
Advertisements

Haben – to have ich habe du hast er/sie hat es hat man hat wir haben
Durch die Nacht “through the night” Silbermond
Don`t make me think! A Common Sense Approach to Web Usability
AufwÄrmung A look at the future…..Match the German phrases on the left to the English ones on the right. Do your best; I am grading on participation! Wie.
Montag, den Hausaufgabe für Dienstag den Keine Hausaufgabe!!! Film: 8:00 oder 9:30 Guten Tag!
You need to use your mouse to see this presentation © Heidi Behrens.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation
Montag den 16.Dezember Lernziel: To begin stage 2 of preparation for speaking assessment.
You need to use your mouse to see this presentation © Heidi Behrens.
CALPER Publications From Handouts to Pedagogical Materials.
You need to use your mouse to see this presentation © Heidi Behrens.
Greetings and goodbyes Deutschland v. USA
Passiv What are these sentences expressing?
SEPARABLE VERBS. Separable verbs have prefixes on them. These prefixes are adverbs and prepositions that are detached from the verb when it is conjugated.
Der formelle Imperativ – the Imperative
Coordinating Conjunctions Why we need them & how to use them deutschdrang.com.
Guten Morgen! Mittwoch den Am Freitag den UNIT 5 TEST.
Konjunktionen & Indirekte Fragen {Conjunctions}
Institut für Angewandte Mikroelektronik und Datentechnik Phase 5 Architectural impact on ASIC and FPGA Nils Büscher Selected Topics in VLSI Design (Module.
Review of Verb Tense & Expressing Opinions
Die Fragen Wörter Wer? Was? Wann?.
Learning Target / Lernziel:
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
Literary Machines, zusammengestellt für ::COLLABOR:: von H. Mittendorfer Literary MACHINES 1980 bis 1987, by Theodor Holm NELSON ISBN
Name: ___________________________________________ Hör verstehen: (______/10) Mark whether you hear a “du”, an “ihr” or a “Sie” command Wer sagt.
XML Seminar: XP und XML 1 XP and XML Gregor Zeitlinger.
modals dürfen können mögen müssen sollen wollen to be allowed to
The Journey to America… The Immigrant Experience.
Modal auxiliaries Chris can read the book. (has the ability to) Chris may read the book (is allowed to) Chris must read the book (has to) Chris should.
Studentenstreik 2009, 2010 in Deutschland Part 1: Studiengebühren.
Montag den 8. Juni Lernziel:- To launch a project and receive results.
You need to use your mouse to see this presentation © Heidi Behrens.
Kapitel 4: Mein Tag Sprache.
Imperfekt (Simple Past) Irregular or strong verbs
Kapitel 2 Grammar INDEX 1.Subjects & Verbs 2.Conjugation of Verbs 3.Subject Verb Agreement 4.Person and Number 5.Present Tense 6.Word Order: Position of.
Modal auxiliaries Chris can read the book. (has the ability to) Chris may read the book (is allowed to) Chris must read the book (has to) Chris should.
Memorisation techniques
GERM1023 review. forms of address formal: Sie / Ihnen familiar: du / dir ihr / euch.
Reflexiv-Verben Deutsch 2/AC.
modals dürfen können mögen müssen sollen wollen to be allowed to
Das Wetter Lernziele: Heute: The „Wenn“ clause! - To describe and report the weather - To discuss activities done in different types of weather - To compare.
REFLEXIVE VERBS ALL TENSES. INFINITIVES – sich + verb You always start with the INFINITIVE sich amüsieren sich waschen sich freuen sich anziehen NB The.
Guten Morgen! Mittwoch den Aufgabe bis Freitag den LB 4.4 M (Aufsatz, 8 Sätze) Culture worksheet Quiz 4.4.
On the case of German has 4 cases NOMINATIVE ACCUSATIVE GENITIVE DATIVE.
German “ da - compounds ” Provided by deutschdrang. com for individual and classroom use only. May not be reproduced for any other purposes.
Indico Meeting Dennis Klein 4. August Übersicht  Korrespondenz CERN  Trouble Ticket Queue  Integration GSI-Accounts  Subversion & Wiki  Todo.
What’s the weather like?. Look at the question above Turn it around and you have Das Wetter ist.... The phrase Das Wetter ist.... or Es ist.... can be.
GERM1023 review.
you: ihr ( familiar plural ) you: du ( familiar singular)
Deutsch I Telling time….
Grundlagen Englisch Passive voice HFW Bern.
Deutsch I: Modal verb review….
Volume 1, Chapter 2.
You need to use your mouse to see this presentation
Aspect-Oriented Programming: Fad or the Future
Das Taschentuch-Spiel
you: ihr ( familiar plural ) you: du ( familiar singular)
Say What? We put the flowers on the Tisch.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation
MODALS kann kannst kann können könnt darf darfst darf dürfen dürft muß
Beschreibungen Lernziele:
Explanations and Classwork Practice
School supplies.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation
 Präsentation transkript:

Clean Code Software-Entwicklung als Handwerkskunst Thomas Nagel, November 2011

Clean Code – warum? Code wächst und wächst Der Kostendruck steigt Für Erweiterungen muß Code pflegbar sein Schlechter Code ist nicht pflegbar Schlechter Code ist daher unwirtschaftlich Schlechter Code kann zum Untergang von Teams, Abteilungen, ganzen Firmen führen

Bjarne Stroustrup, Erfinder von C++ und Autor von Die C++ Programmier- sprache: I like my code to be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error handling complete according to an acticulated strategy, and performance close to to optional so as not to tempt people to make code messy with unprincipled optimizations. Clean code does one thing well. Clean Code – was ist das

Grady Booch, Autor von Objekt-orientierte Analyse Clean code is simple and direct. Clean code reads like well-written pproce. Clean code never obscures the designers intent but rather is full of crisp abstractions and straightforward lines of control. Clean Code – was ist das

Dave Thomas, Gründer der Eclipse-Strategy Clean code can be read, and enhanced b a developer other than ist original author. It has unit and acceptance tests. It has meaningful names. It provides one way rather than many ways for doing one thing. Clean Code – was ist das

Ward Cunningham, Erfinder des Wiki, Mit-Erfinder von XP, Design Patterns, SmallTalk … You know you are working on clean code when each routine you read turns out to be pretty much what you expected. You can call it beautiful code when the code also makes it look like the language was made for the problem. Clean Code – was ist das

Bedeutungsvolle Namen Namen sollen vor allem aussagekräftig sein Vermeiden Sie Falschinformationen Namen dürfen heute länger sein! Scope-Regeln: länger/kürzer Benutzen Sie die richtige Wortart: – Nomen für Klassen, Objekte, Variablen – Verben für Funktionen und Methoden – Adjektive für Eigenschafts-Methoden

Funktionen Sollten kurz sein Sollten noch kürzer sein Sollten nur eine Aufgabe erfüllen Sollten nur eine Abstraktionsebene benutzen Je weniger Argumente je besser Boolean-Argumente vermeiden Ergebnisse sollten im Objekt abgelegt werden Bei Fehlern Exceptions auslösen!

Kommentare Sind kein Ersatz für Code Häufig überflüssig Meistens nicht gepflegt Können den Bezug zum Code verlieren Javadoc ist fast nur Tautologie Überflüssige stören die Lesbarkeit Auskommentiertes löschen!

Klassen und Objekte

Fehlerbehandlung

Unit Tests und TDD

Vielen Dank für die Aufmerksamkeit! Links: