## Die Suche ergab 56 Treffer

17. Mär 2017 16:55
Forum: Archiv
Thema: Correction of the exam
Antworten: 8
Zugriffe: 1525

### Re: Correction of the exam

After today's exam review I have two points of critisism: 1) Since the exercises were programming tasks, our own chance to see whether we are able to solve exam questions was the mid term exam. One should be able to conclude from the mid term exam that one's performance in solving exam questions is ...
6. Mär 2017 14:50
Forum: Archiv
Thema: Correction of the exam
Antworten: 8
Zugriffe: 1525

### Re: Correction of the exam

Dear Matthias, could you give some preliminary informations on the correction? How much percent were necessary to pass the exam and how much were necessary to get 1.0? What was, from your viewpoint, the reason that the results are so bad (I mean 3.5 in avarage in an exam with a possible bonus of 1.0...
2. Mär 2017 20:19
Forum: Archiv
Thema: Grading of Exercise 10
Antworten: 2
Zugriffe: 474

### Grading of Exercise 10

Hello!

I would like to know whether you can give us an estimate when the grading of exercise 10 will be done.

Best, Sebastian
13. Feb 2017 14:49
Forum: Archiv
Thema: discussion solution last years exam
Antworten: 23
Zugriffe: 4822

### Re: discussion solution last years exam

I have a question concerning the path-dependent type task. Consider the following code case class A() { case class B(); val list: scala.collection.mutable.Set[B] = scala.collection.mutable.Set() } and the following scala console session scala> val a1 = new A() a1: A = A() scala> val a2: A = a1 a2: A...
13. Feb 2017 14:26
Forum: Archiv
Thema: discussion solution last years exam
Antworten: 23
Zugriffe: 4822

### Re: discussion solution last years exam

d) (just sketched, certainly syntax is not correct) Template Method Pattern implementation: class TemplateFilteredSet[+A] extends Set[+A] { def filter(): Set[+A] = { (...) if(pred(elem)) { (...) } (...) } def pred(a: +A): Boolean } Advantage: increases flexibility, because subclasses implement low-...
13. Feb 2017 12:28
Forum: Archiv
Thema: Notation of linearization
Antworten: 3
Zugriffe: 895

### Notation of linearization

Dear all! I struggle with the notation of the linearization in Scala. As it was explicitely required in the exam from last year that we have to use this notation, it would be nice if someone could bring light into the dark. What is the type of Lin(C)? Is it a set or is it a list. What is input and o...
13. Feb 2017 11:26
Forum: Archiv
Thema: Visitor Pattern
Antworten: 3
Zugriffe: 877

### Re: Visitor Pattern

I think performance is not a relevant problem. However I agree with you on your second point. This can be fixed by omiting the wildcard case. I did forget that I can define partial functions in Scala as-well... To implement a visitor pattern in Scala in the manner I suggested here (omiting the wildc...
13. Feb 2017 00:06
Forum: Archiv
Thema: Pattern Recognition: exam
Antworten: 10
Zugriffe: 2319

### Re: Pattern Recognition: exam

Template and Strategy should be swapped and Decorator belongs to "add additional behavior" in my opinion.
11. Feb 2017 11:44
Forum: Archiv
Thema: Decorator Pattern
Antworten: 1
Zugriffe: 693

### Decorator Pattern

Dear all! In the decorator pattern we have introduced an abstract Decorator class that implements operation() via component.operation(). We could alternatively leave this method abstract and move the call to component.operation() to the concrete decorators which makes there code somewhat more transp...
11. Feb 2017 11:36
Forum: Archiv
Thema: Visitor Pattern
Antworten: 3
Zugriffe: 877

### Visitor Pattern

Hello! I have a question concerning the visitor pattern. As introduced in the lecture, we define a visit method for each element type in the visitor trait by overloading and we have to implement accept in the concrete element classes and not in the top-level element trait since there it is not clear...
11. Feb 2017 11:16
Forum: Archiv
Thema: Pattern Recognition: exam
Antworten: 10
Zugriffe: 2319

### Re: Pattern Recognition: exam

In my opinion a design pattern is nothing that you can statically detect. While developing software you encounter design issues which can then be tackled by applying design patterns. Hence I would say that you have detected a design pattern when wou see both a design challange and a pattern that was...
30. Jan 2017 19:49
Forum: Archiv
Thema: Some questions concerning exercise 10
Antworten: 1
Zugriffe: 347

### Some questions concerning exercise 10

Hi, we have some open questions concerning exercise 10. Since the tutor in the office hour said that they are not yet familiar with the excercise, we hope to get answers on our questions here. 1. When should the clock start? Should it be at 0:00 on a Monday? Or should it be the current real time? 2....
17. Dez 2016 13:07
Forum: Archiv
Thema: "override val" versus "override def"
Antworten: 1
Zugriffe: 351

### "override val" versus "override def"

Hi all! I have a question that should be related to slide 35 in slide set 4 but acutally originated from section 4.1.2 in Suereth's book Scala in depth. Consider the following code: trait Foo { val str: String; override def toString = "str=" + str } Then new Foo { override val str = "foo" } yields t...
15. Dez 2016 16:07
Forum: Archiv
Thema: Our solution to the mock exam
Antworten: 0
Zugriffe: 588

### Our solution to the mock exam

Dear fellow students, here are our solutions to the mock exam. Comments are welcome! 1) a) We are not completely sure how to answer this, see a comment in https://www2.fachschaft.informatik.tu-darmstadt.de/forum/viewtopic.php?f=234&t=35284 . b) differences: (1) Design with a functional programming l...
15. Dez 2016 15:48
Forum: Archiv
Thema: Some open questions to the lecture and the mock exam
Antworten: 0
Zugriffe: 424

### Some open questions to the lecture and the mock exam

Hi! Some questions to the lecture slides and the questions in the mock exam: 1) a) The question asks us to provide differences between software and hardware engineering with respect to measuring the quality . We were not so sure how to answer this question. In slide 13 in slide set 1 it is stated th...