Added exceptions and strings as ideas for workshops #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mir sind noch zwei weitere Themen eingefallen:
Exceptions
Was mache ich, wenn ich äußere Einflüsse abfangen muss. Ich habe mal was von
try-catch-Konstrukten gehört, wie wendet man die an, auf was muss man achten? Ich hatte mit ROOT, der "tollen" Datenanalysesoftware der Physiker oft den Spaß, dass mein Programm nach dem abarbeiten von vielen Gigabyte Daten aufgrund einer fehlerhaften Datei abschmierte und die Ergebnisse verloren waren.Strings
Es gibt char-Arrays, Strings, Stringstream. Was verwende ich wie, wo und warum? Wie wandle ich Zahlen zu Zeichenketten um. Hier muss wieder ROOT als Beispiel herhalten, wo alle Objekte (Histogramme, Funktionen usw...) einen Klartext-Namen bekommen. Wenn man nun zig Histogramme anlegen möchte, muss man für jedes einen eindeutigen Namen festlegen, was sich bestimmt automatisiert besser lösen ließe, woran ich aber bisher gescheitert bin.