exercism / exercism/java-analyzer

"The remainingMinutesInOven method should reuse the logic implemented in expectedMinutesInOven" should take into account fields of the class.

Đang mở
#218 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
13
Fork
27
Merge trung bình
4 ngày 9 giờ
Pull request đã merge (30 ngày)
6

Mô tả

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.
![image](https://github.com/user-attachments/assets/e22fbfc8-cd0a-4dbc-b490-3bfbdfd81a5f)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.