Die Suche ergab 31 Treffer

von JohannesRudolph
23. Jul 2015 09:17
Forum: Archiv
Thema: exam yesterday
Antworten: 5
Zugriffe: 2971

Re: exam yesterday

I think most of the questions were fair, but the IDE task was quite a mess... I'd have preferred using UML or writing a textual description of the design I'd use rather than sketching down some scala code on paper. That would have been a lot faster to do and I think the core of the task was to figur...
von JohannesRudolph
20. Jul 2015 08:48
Forum: Archiv
Thema: Fragile Base Class Problem MidTerm Exam vs. Slides
Antworten: 7
Zugriffe: 2519

Re: Fragile Base Class Problem MidTerm Exam vs. Slides

Your assumptions are all that there are "errors" in the provided code. But Fragile Base Class defines the problem, that if i change the base class the derived class may malfunction. Therefore i would guess the provided code works as it should. That's what I meant saying that the question is poorly ...
von JohannesRudolph
19. Jul 2015 17:16
Forum: Archiv
Thema: Mid Term exam, Topic 2 b) Design Review
Antworten: 4
Zugriffe: 2076

Re: Mid Term exam, Topic 2 b) Design Review

And professor told that Position violates ISP that I dont understand, how ? If that's what was said in the lecture, I must disagree. A violation of ISP often goes hand in hand with a violation of SRP, i.e. a class that has multiple responsibilities may easily have clients using non-intersecting sub...
von JohannesRudolph
17. Jul 2015 09:24
Forum: Archiv
Thema: Fragile Base Class Problem MidTerm Exam vs. Slides
Antworten: 7
Zugriffe: 2519

Re: Fragile Base Class Problem MidTerm Exam vs. Slides

I'd be curious about the reference solution here. I find the example to be a bit arbitrary... It could be me but I'd find the question easier to answer if we were told that a certain change should be made to the base class / has been made to the base class and deciding whether that breaks or does no...
von JohannesRudolph
10. Jul 2015 16:20
Forum: Archiv
Thema: Proxy Pattern & LSP
Antworten: 2
Zugriffe: 421

Re: Proxy Pattern & LSP

The purpose of a proxy is to modify the behavior of an interface, which can lead to unexpected results. Suppose for example you have an image class that has width and height and a proxy implementing the same interface but lazy loading the image from the web. You call .width and .height on your image...
von JohannesRudolph
5. Jul 2015 14:31
Forum: Archiv
Thema: Closures.
Antworten: 4
Zugriffe: 458

Re: Closures.

I think the third one you're missing is that Scala closures can have "non-local returns", i.e. a return statement in a closure can return from the function the closure is defined in. See http://stackoverflow.com/questions/17754976/scala-return-statements-in-anonymous-functions It appears quite count...
von JohannesRudolph
5. Jul 2015 14:24
Forum: Archiv
Thema: Visitor Pattern
Antworten: 8
Zugriffe: 549

Re: Visitor Pattern

To put it shortly, you make the class hierarchy accept an abstract Visitor interface. Your class hierarchy thus does not depend on any concrete subtypes of visitors and the pattern is extensible for adding new visitors.
von JohannesRudolph
4. Jul 2015 13:20
Forum: Archiv
Thema: Visitor Pattern
Antworten: 8
Zugriffe: 549

Re: Visitor Pattern

A pattern does not violate the SOLID principles in itself, it's always a matter of context. Whether the Visitor pattern violates OCP or not depends on whether you expect future changes will need to add new types (closed against this type of modification) or whether you will need to add new functions...
von JohannesRudolph
3. Jul 2015 15:27
Forum: Archiv
Thema: Exercise 6 Dependency Diagram, missing edge in solution?
Antworten: 1
Zugriffe: 222

Exercise 6 Dependency Diagram, missing edge in solution?

In the reference solution we have the following code val t = clicks.toggle(runningTime snapshot stop, runningTime) I think the optional dependency between runningTime and stop should be reflected in the dependency diagram (t always depends on runningTime but not always on stop), however there's no s...
von JohannesRudolph
3. Jul 2015 15:05
Forum: Archiv
Thema: Strategy Pattern - Communication overhead
Antworten: 2
Zugriffe: 293

Re: Strategy Pattern - Communication overhead

It's quite simple to understand, let me give you an example. Suppose you are implementing logging to various sinks via strategy pattern (e.g. to flat files, database, syslog). Arguments that you may want to make available to each logging strategy are: Time, LogLevel, log message parameters etc. The ...
von JohannesRudolph
13. Mai 2015 17:15
Forum: Archiv
Thema: sbt run issues: value coreDefaultSettings is not a member of
Antworten: 1
Zugriffe: 335

Re: sbt run issues: value coreDefaultSettings is not a membe

Turns out my homebrew index was (massively) out of date. Turns out I had sbt 0.13.0 installed at first iDevBook01:ex01_solution jr$ sbt about [warn] Ignoring load failure: no project loaded. [info] This is sbt 0.13.0 [info] No project is currently loaded [info] sbt, sbt plugins, and build definition...
von JohannesRudolph
13. Mai 2015 17:06
Forum: Archiv
Thema: sbt run issues: value coreDefaultSettings is not a member of
Antworten: 1
Zugriffe: 335

sbt run issues: value coreDefaultSettings is not a member of

I'm getting the following error when executing sbt run from the ex01 root directory: iDevBook01:ex01 jr$ sbt run [info] Loading project definition from /Users/jr/Desktop/sedc/ex01/project [info] Compiling 1 Scala source to /Users/jr/Desktop/sedc/ex01/project/target/scala-2.10/sbt-0.13/classes... [er...
von JohannesRudolph
23. Feb 2014 12:13
Forum: Jobs
Thema: Werkstudent (m/w) - SPA mit AngularJS + REST API
Antworten: 0
Zugriffe: 925

Werkstudent (m/w) - SPA mit AngularJS + REST API

Wir entwickeln Software für die Smartphone-gestützte Biomechanische Analyse im Leistungssport Rudern. Unsere Systeme werden bereits von kleinen Vereinen bis hin zu Nationalmannschaften und Olympia-Siegern eingesetzt und unterstützen Sportler und Trainer dabei bessere Leistungen zu erzielen. Unsere A...
von JohannesRudolph
16. Mär 2013 08:44
Forum: Archiv
Thema: Beweise in der Klausur
Antworten: 1
Zugriffe: 827

Beweise in der Klausur

Wie relevant sind denn die Beweise aus den Übungen für die Klausur? Wird dort erwartet das wir diese wiedergeben können bzw. ähnliche Beweise selbst führen können?
von JohannesRudolph
4. Mär 2013 13:46
Forum: Archiv
Thema: Nicht klausurrelevante Themen?
Antworten: 12
Zugriffe: 1447

Re: Nicht klausurrelevante Themen?

Da es zum Data Mining keine gesonderte Übung gab (oder war es das Separate&Concquer Übungsblatt?), auf welchen Typ von Aufgabe sollen wir uns zu dem Thema einstellen?

Zur erweiterten Suche