Die Suche ergab 87 Treffer

von pmueller
11. Jul 2018 14:13
Forum: Software Engineering - Design and Construction
Thema: Exercise 9
Antworten: 11
Zugriffe: 486

Re: Exercise 9

Hi, 1.) If I understand correctly, Project (which is also a Visitable) should just call the accept(...) methods of all contained tasks in its own accept(...) method. In the Visitor pattern as introduced in the lecture, however, the ConcreteElements all only call v.visit(this) on the Visitor v. So, i...
von pmueller
11. Jul 2018 13:25
Forum: Software Engineering - Design and Construction
Thema: REScala compilation errors
Antworten: 3
Zugriffe: 155

Re: REScala compilation errors

Hi,

which version of REScala are you using? We used 0.20 in the exercises and in this version, .snapshot works. In which example is .get used?

Best,
Patrick
von pmueller
11. Jul 2018 11:23
Forum: Software Engineering - Design and Construction
Thema: Exercise 9
Antworten: 11
Zugriffe: 486

Re: Exercise 9

Hi, I've updated the Sheet. The main method in my solution was missing the .reverse call. I'm sorry about this, it should not affect you scores. In addition my solution was missing the priority in the CSV output. CSV output omits the Project, whereas the Todo txt ouput omits the duration. Hi, I have...
von pmueller
10. Jul 2018 12:42
Forum: Software Engineering - Design and Construction
Thema: Design Task from Old Exam
Antworten: 0
Zugriffe: 205

Design Task from Old Exam

Hi,

I added a Task from an old Exam to the Webpage (It might take a moment to update to the correct link).
https://github.com/stg-tud/sedc/blob/gh ... 8/index.md

Best,
Patrick
von pmueller
9. Jul 2018 10:49
Forum: Software Engineering - Design and Construction
Thema: Lower Type Bound
Antworten: 2
Zugriffe: 179

Re: Lower Type Bound

Hi,
AizazZaidee hat geschrieben:
9. Jul 2018 10:44
So what it means is that, S >: T if type S is equal to T or its super type, then S will be used. If a type that is sublevel to T is passed then T will be used.
Correct. Well, S is always used, it can happen that S is exactly the same as T. This is a reflexive relation.

Best,
Patrick
von pmueller
9. Jul 2018 10:35
Forum: Software Engineering - Design and Construction
Thema: Designe Pattern with abstract methods
Antworten: 1
Zugriffe: 153

Re: Designe Pattern with abstract methods

Hi,
yes such constructs can be valid implementations of a pattern. For most patterns there are some variations, e.g. defining the Child Management operations of a Composite in the Top level Component, instead of only in the Composite itself.

Best,
Patrick
von pmueller
9. Jul 2018 10:29
Forum: Software Engineering - Design and Construction
Thema: Scala - Store are covariant - LSP slide 14
Antworten: 1
Zugriffe: 130

Re: Scala - Store are covariant - LSP slide 14

Hi, How this is returning Store['B'], are we overriding previous + method? Yes, this overrides the previous method ( With relaxed type constraints, but since Nothing is a Subtype of every other type this is not a Problem) Why [-A] is not used instead? Why would you want to do this in this case? +A m...
von pmueller
9. Jul 2018 08:50
Forum: Software Engineering - Design and Construction
Thema: Exercise 9
Antworten: 11
Zugriffe: 486

Re: Exercise 9

Hi, - Task 1: What exactly is meant with the "Note:" in Task 1? I understood that an e.g., SimpleTask is "consumed" by a Dependet/BillableTask should not "exist" anymore afterwards, is has become the new/wrapped Task. But what exactly is meant with "not reference the wrapped tasks in otder to not lo...
von pmueller
6. Jul 2018 15:55
Forum: Software Engineering - Design and Construction
Thema: Template Method Pattern slide HashTable
Antworten: 1
Zugriffe: 143

Re: Template Method Pattern slide HashTable

Hi, no HashTable does not have a real superclass constructor since it is a trait. Here is small example to illustrate this: trait Test { def constant = 1 var array = new Array(constant) } class Implementer extends Test { override def constant = 2 } The compiled Java Bytecode reconverted to Java look...
von pmueller
6. Jul 2018 09:15
Forum: Software Engineering - Design and Construction
Thema: SRP Violated or not?
Antworten: 2
Zugriffe: 180

Re: SIP Violated or not?

Hi, I'm not sure waht you mean with SIP? ISP or DIP or something else entirely? In general these principles are just that - principles. Like you said, sometimes you can find arguments for both sides, or violating a principle leads to other properties, e.g. faster code at runtime - at the loss of mai...
von pmueller
6. Jul 2018 09:02
Forum: Software Engineering - Design and Construction
Thema: Exam open book
Antworten: 1
Zugriffe: 211

Re: Exam open book

emod02 hat geschrieben:
5. Jul 2018 14:15
a self created summary would be ok
Yes.
von pmueller
5. Jul 2018 13:37
Forum: Software Engineering - Design and Construction
Thema: Ex08
Antworten: 3
Zugriffe: 253

Re: Ex08

Hi,

in Java the Syntax is a little bit different. You have to use the corresponding name of the field that is assigned, i.e. in this case:

Code: Alles auswählen

@TemplateMethod(primitiveOperationNames = "<NAME_OF_A_PRIMITIVE_OPERATION>")
protected void <TEMPLATE_METHOD_NAME>() {...}
Best,
Patrick
von pmueller
4. Jul 2018 08:51
Forum: Software Engineering - Design and Construction
Thema: Java 8 Mixins VS Scala - What's the difference?
Antworten: 7
Zugriffe: 381

Re: Java 8 Mixins VS Scala - What's the difference?

Hi, Delegation is discussed in the slides of the Decorator Pattern, beginning with slide 9. You created a thread concerning this yourself. Whether you consider Java 8 Interfaces as mixins depends on your definition of mixin. Look here . Scala's traits are still more powerful, since they can contain ...
von pmueller
3. Jul 2018 15:58
Forum: Software Engineering - Design and Construction
Thema: Exercise 08
Antworten: 4
Zugriffe: 321

Re: Exercise 08

emod02 hat geschrieben:
3. Jul 2018 15:38
Regarding task 2.3: we should implement the "getElementsSorted" method in the "SubGraph", right?
Yes

Zur erweiterten Suche