-
-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new concept: the-farm - issue 1374 #1423
Conversation
You will be passed a weightFodder function which returns the amount of fodder | ||
available but also an error, sometimes. You should not handle that error, | ||
return it to the `FEED-M-ALL`, instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really clear to me. Maybe mention the function signature to be implemented like below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok... looking at the example implementation I realized only one function is to be implemented. Maybe make this clear from the start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my suggestion below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedbacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the use of errors.Is
.
@@ -0,0 +1,70 @@ | |||
# Introduction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add wrapping of errors and checking of error types in the intro, if that is something you decide this exercise should teach as well.
Co-authored-by: Ali A. <[email protected]>
Co-authored-by: Gabriel Nelle <[email protected]>
Co-authored-by: Ali A. <[email protected]>
Co-authored-by: Gabriel Nelle <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made one more suggestion. But this looks good 😄
Co-authored-by: Gabriel Nelle <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, this is a fun exercise you have devised, @brugnara! Given I have not created a concept exercise myself, I'll defer to others as to any further revisions and how this will fit into the V3 launch.
I spoke a bit too soon on the approval. I forgot, someone pointed out that the |
@ekingery #1389 this list means to me these are different concepts. Am I wrong? |
There are supposed to be 2 concepts: |
Absolutely, that was an oversight that I passed along without vetting
first. Please disregard my suggestion.
…On Tue, Mar 2, 2021, 07:51 Gabriel Nelle ***@***.***> wrote:
There are supposed to be 2 concepts: errors and error-handling. I
wouldn't merge them.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1423 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA7YWHK2AA2POFTIRF5DL3TBTUMZANCNFSM4X4UFWCA>
.
|
Co-authored-by: Eric Kingery <[email protected]>
@brugnara If you are done from your side, turn it into a non-draft PR. |
Apologies for the delay in merging! I forgot this was waiting on me to actually do the merging. Nice work @brugnara, and thanks to everyone for the code reviews and suggestions! |
Hi everyone.
Here's a concept I thought.
Should cover error-handling concept (#1374)
Feedbacks are as always very welcome.
PS: I did because I thought it was ok, if it's not the case, no problem at all.
Thank you for considering leaving your thoughts 🙏