-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Object Relational Mapping exercise Task 4 has no hint #1973
Comments
@christian-elm Do you have a question on how to implement @ErikSchierboom There is some info on this in the hints.md file, but not specifically for Task 4. Would it be desirable to duplicate it specifically for this task? |
@aage No, not specifically a question on how to implement the interface. What tripped me up as a junior was that task 4 aborts a database transaction, but I as the "author" of the code don't have direct control of state - calling Database.Write changes the database to a state, but the method caller calls instance.Dispose() which also changes the state. So I would have liked a hint on how to work around this problem when not having direct control of the state of the data layer. What I can see in the file isn't relevant enough for Task 4 to be duplicated. |
Also just for consistency's sake it would be nice that all tasks have their hints (they are always very helpful when you get stuck), or at least the tasks that are required in order to unlock new concepts and exercises. |
@christian-elm I'm sorry, but I don't understand what is unclear. The instructions mention the Do you have a suggestion of what a hint might be that would clear this up? Adding hints to the two tasks that have none is easy enough. |
@aage It might be a bit difficult for me as a novice to explain. What trips me up: in Task 2 I'm instructed to call My understanding of the exercise instructions is that this is expected behavior, so: what I fail to understand is how I can prevent the state of the database to change to If this still doesn't make it clear, perhaps it's better to close this issue. Unfortunately I don't have any suggestions for hints as I have yet to complete the exercise myself, which means I don't yet have a good grip on how to properly implement the |
@christian-elm I don't think you're supposed to prevent the state being Can this issue be closed as far as you're concerned? |
@christian-elm I've given the code another look, I think I know now what you mean. When calling the database you should Dispose the database when an Hopefully this answers your question, sorry for the confusion on my end! |
@aage I managed to figure it out eventually and solve the exercise. Thanks for sticking with it and trying to help! You can probably close this issue now. |
@christian-elm Great! @ErikSchierboom Can you close this issue? |
For a beginner, a hint here would be helpful here. Manually managing resources is quite a daunting task when having not dealt with it before.
The text was updated successfully, but these errors were encountered: