• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reactive Programming Course - Week1 Assignment

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm on Week1 of this course and I'm stuck with the assignments. I did manage to finish and submit it, but got some test failures:



This sounds to me like I have to write properties that result in an exception such that the negative test cases pass. Is my understanding correct?
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok. Writing a negative test resulted in one of my positive test case to fail. So my understanding is not correct!
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I managed to get Bogus 3 to fail. Now Bogus 4 is left. I realize that I have to come up something with deleteMin such that Bogus 4 results in the expected test success!
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're way ahead of me there Joe. I'll get back to you when I have something useful to offer.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim: Are you also doing the course this time?

I just did not have enough patience. I submitted my assignment and got an 8 out of 10! I hope to find some time during the weekend to relax and stretch my mind to fix the failing test!
 
Tim Cooke
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. I also announced it as a Bunkhouse Lounge feature. Hopefully we'll get some other folks doing it too.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool! I have somebody on the forum to discuss with. Is there anyone else doing this course?
 
Tim Cooke
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did manage to get this assignment done today (with a little help from a friend, I admit). I got 10/10 but it only resulted in an 8/10 overall score because I was a day late submitting it and incurred a 20% penalty.

it was tricky enough I thought. A lot of the video material turned out not to be very relevant to the assignment, but I suspect I'll need to refer to it again for future assignments.

Onwards!
 
Bartender
Posts: 5465
212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Failed before I got started, I'm afraid.

Well, I came back from holidays last saturday, knowing I had only
two days to get week 1 done. Unfortunately, I came home with a
big sinusitis, and although I tried to do something last sunday,
I only managed to get sbt up and running.

Yesterday, feeling only marginally better, I tried to save what I could.
I sent in the properties that were suggested in the hints, but
what I feared became true: with only success in 3 of the 5
my score was a 6, and after the penalty, a humiliating 3.6...

Worst of all, since I failed to come up with some decent properties
for these 'BinomialHeap's, I thought this afternoon: let's make one
and see what actually happens in these things, so that I could
see on what parts these bogus implementations stumbled.
But whatever I tried so far, I could not get Eclipse to run
me a decent BinomialHeap. I cannot get passed the point where
to get some connection between a 'class Temp with BinomialHeap'
and using a method that has a parameter 'h: H' in it.

The worst being, that this indicates that I do not understand week 1's
theory....

At the moment, I'm writing a Java generic implementation, as a last effort
to see what is happening. Unfortunately, I only have Java 7,
so I must use real Comparator<A> elements here, without having
the possibility, in Java 8, of supplying a natural comparator.

Well, my right ear is still deaf and hurting quite a lot. so I'll stop for now.

But my impression: this course is not what I expected. It is very abstract,
the material is exactly that what the students of EPFL are getting at the moment,
so practically it is impossible to do this course, with the time and
knowledge available to me.

But I will finish it, in my own tempo.

Greetz,
Piet
 
reply
    Bookmark Topic Watch Topic
  • New Topic