You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there!
I got the recommendation I put into the title for this exercise. I think this recommendation seems to be wrong. The method remainingMinutesInOven() is a getter method, as it only returns a predefined value.
Do you really reuse getter methods in other class methods to use said value?
Storing the value in a field and using said field in other classes seems to be the more effecient way in my eyes and is thus a slightly misleading recommendation, I think.
The text was updated successfully, but these errors were encountered:
Hi @Filnaei, that's an interesting one. I think we were expecting expectedMinutes to simply return 40 directly instead of using a field. Using a field does seem valid here though. @manumafe98 what do you think about this one?
Considered calling method instead of returning 40 minutes but in the end perfect solution is to have lasagne oven time as Constant. So this doesn't make expectedMinutesInOven a getter just a very simple method. Simplicity of this task kinda make it look weird but I assume you are making your automatic mentor reusable and not doinbg different things based on simplicity. So it is good.
Hello there!
I got the recommendation I put into the title for this exercise. I think this recommendation seems to be wrong. The method remainingMinutesInOven() is a getter method, as it only returns a predefined value.
Do you really reuse getter methods in other class methods to use said value?
Storing the value in a field and using said field in other classes seems to be the more effecient way in my eyes and is thus a slightly misleading recommendation, I think.
The text was updated successfully, but these errors were encountered: