Die Suche ergab 61 Treffer

von imaier
2. Dez 2013 15:35
Forum: Archiv
Thema: Ex 05 Questions
Antworten: 1
Zugriffe: 347

Re: Ex 05 Questions

I use the term subtrait to describe a trait that extends other traits -- similar to the term subclass for classes.

Cheers,
Ingo
von imaier
29. Nov 2013 11:33
Forum: Archiv
Thema: Download Exercise 5 sheet here
Antworten: 2
Zugriffe: 386

Re: Download Exercise 5 sheet here

That's just the standard header. All code in the template is given on the sheet. The template is in the SVN now.

Cheers,
Ingo
von imaier
28. Nov 2013 13:51
Forum: Archiv
Thema: Download Exercise 5 sheet here
Antworten: 2
Zugriffe: 386

Download Exercise 5 sheet here

Since I have a problem with SVN, I can't upload the new exercise sheet right now. I'll put it into the repository once my issue is resolved. Until then you can find it in the attachment below.

Cheers,
Ingo
von imaier
18. Nov 2013 14:17
Forum: Archiv
Thema: precise parameters
Antworten: 1
Zugriffe: 307

Re: precise parameters

You should not prevent the use of more general types, but use types that are precise *as possible* (in the context of what you have seen in the lecture about Scala's type system or Java's type system for the second task). In your example, if you add a String to a Tuple of Int, then the result should...
von imaier
8. Nov 2013 17:17
Forum: Archiv
Thema: ex02 not uploaded/visible
Antworten: 4
Zugriffe: 570

Re: ex02 not uploaded/visible

There are no slides. The comment you are referring to is obsolete, sorry. You have an example for the Scala testbed on the sheet and a Java example in the project template.

Cheers,
Ingo
von imaier
7. Nov 2013 17:40
Forum: Archiv
Thema: ex02 not uploaded/visible
Antworten: 4
Zugriffe: 570

Re: ex02 not uploaded/visible

They should be there by now. Do you see them?

Sorry for the delay,
Ingo
von imaier
6. Nov 2013 16:44
Forum: Archiv
Thema: Updated Exercise Sheet 1
Antworten: 0
Zugriffe: 178

Updated Exercise Sheet 1

Hi all, if you haven't noticed, I have updated the first exercise sheet in the SVN to clarify the following three issues: Added the submission deadline The toString method should return a string and not print to the console For the map function in 2.1, you can assume that the elements of the set are...
von imaier
6. Nov 2013 16:28
Forum: Archiv
Thema: Ex01 - Task 2 map function: Iterating through the given set?
Antworten: 1
Zugriffe: 325

Re: Ex01 - Task 2 map function: Iterating through the given

Yes, you are right. We should have made that more clear. It is okay to assume that your set contains elements only between -1000 and 1000 as in the toString function.

Cheers,
Ingo
von imaier
5. Nov 2013 17:46
Forum: Archiv
Thema: Ex01, Task 1.4 toString2
Antworten: 1
Zugriffe: 408

Re: Ex01, Task 1.4 toString2

Sorry, I missed your post. All code we ask for in "1.4 Set operations in Java 8" should be written in Java 8. (Once you have the Java 8 version, the Java 7 would be straightforward, though).

Cheers,
Ingo
von imaier
5. Nov 2013 17:20
Forum: Archiv
Thema: Java to Scala cheat sheet
Antworten: 0
Zugriffe: 232

Java to Scala cheat sheet

For anyone who is interested, I just came across a Java to Scala cheat sheet that, from what I can tell after a quick look, seems very decent: http://techblog.realestate.com.au/java-to-scala-cheatsheet/ There is a lot of stuff that goes beyond this course, but it looks good as supplementary referenc...
von imaier
5. Nov 2013 17:11
Forum: Archiv
Thema: Ex 1.3
Antworten: 1
Zugriffe: 241

Re: Ex 1.3

Updated: sorry, I confused Java 7 with Java 8 in a previous version of this post. Since you are not asking about it, I assume you know how to implement foreach? If not, have a close look at slide 20 of the exercise slide deck. Even though it is Scala code, note that you can create a class instance, ...
von imaier
5. Nov 2013 14:45
Forum: Archiv
Thema: Sprechstunde ?
Antworten: 3
Zugriffe: 276

Re: Sprechstunde ?

When were you there? According to the information I have, Jonathan was supposed to be there from 13h00 to 14h00. Note, however, that tutors won't stay until the end if nobody shows up in the first half hour or so. Therefore, make sure you drop by early. Tutors should also identify themselves with a ...
von imaier
5. Nov 2013 14:35
Forum: Archiv
Thema: Code completion for Java in Scala IDE not working
Antworten: 4
Zugriffe: 767

Re: Code completion for Java in Scala IDE not working

Which versions of the Scala IDE and Eclipse are you using? Did you install the plugin into an existing Eclipse installation or did you download a bundle? Which one?

Cheers,
Ingo
von imaier
4. Nov 2013 09:54
Forum: Archiv
Thema: Exercise 1.1 and 1.2
Antworten: 5
Zugriffe: 612

Re: Exercise 1.1 and 1.2

Concerning the implementation of toString, Dennis is right when he says that toString should print the elements *to the string* (aka build a string that contains the elements) and not to the console. Overriding toString and then print the elements to System.out wouldn't be a reasonable thing to do e...
von imaier
4. Nov 2013 09:47
Forum: Archiv
Thema: Exercise 1.1 and 1.2
Antworten: 5
Zugriffe: 612

Re: ToString with sideeffects?

2. There is a nice approach to implement filter without the need to implement it in the subclasses of IntSet. Should we really implement filter in the subclasses, even if a nice and short approach (5 Lines of Code) exists? If you can find a concise solution that does not take more than O(n) time to...

Zur erweiterten Suche