-
Notifications
You must be signed in to change notification settings - Fork 162
[C#] Add exercise User-defined Exceptions #1617
Conversation
languages/csharp/exercises/concept/user-defined-exceptions/.meta/config.json
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptons.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Outdated
Show resolved
Hide resolved
…ta/Example.cs Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
I have marked 4 suggestions A), B), C) and D) in the review comments. These all amount to the same thing to a greater or lesser extent. My choice is for simplicity. I don't think the proposed changes add much to the features of user defined exceptions exercised here although they make the code a little more natural and the story a bit more realistic. I am happy to make the suggested changes but I don't see why you come down in favour of naturalness/realism rather than simplicity. Particularly as the whole thing is artificial in the first place. To effectively do reviews myself I need to know the criteria otherwise it will put more of a burden on you. While we are at the draft review stage you can safely skip obvious "errors" like |
I don't see them marked, but I assume you are referring to the four open comments?
It is. I just couldn't help myself :) |
Fair enough. Certainly no problem for me.
Yes the open comments. You will see the letters there. |
I don't see them :) |
Sorry. did it again - ignored PENDING. You should see them now. |
languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs
Show resolved
Hide resolved
yep - ready to review |
languages/csharp/exercises/concept/user-defined-exceptions/.docs/after.md
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.docs/after.md
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.docs/after.md
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.docs/after.md
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptionsTests.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptionsTests.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/UserDefinedExceptionsTests.cs
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.docs/instructions.md
Outdated
Show resolved
Hide resolved
languages/csharp/exercises/concept/user-defined-exceptions/.docs/instructions.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
…cs/after.md Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
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.
Brilliant! Thanks for adding this exercise!
I think we should have sliced up the functionality differently putting the wrapping in the calculator class and the filtering in test harness. I think it would make marginally more sense. I may revisit it after we have done the first 42. |
Ah that would have been nice indeed. Maybe you could create an issue for it? It sounds like this would be nice an an improve issue :) |
See #1664 |
* csharp/user-exceptions initial upload * csharp/user-exceptions initial code/instructions complete * csharp/user-exceptions tweak to design.md * csharp/user-exceptions proofing * csharp/user-exceptions proofing * csharp/user-exceptions after review * csharp/user-exceptions after review * csharp/user-exceptions intro and after * csharp/user-exceptions tweaking docs * Update languages/csharp/exercises/concept/user-defined-exceptions/.meta/Example.cs Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com> * Apply suggestions from code review Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com> * csharp/user-exceptions more review changes * csharp/user-exceptions substantially complete * csharp/user-exceptions removed text not required for publication * csharp/user-exceptions added pre-requisites * csharp/user-exceptions updated out-of-date instructions * csharp/user-exceptions updated config * Apply suggestions from code review Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com> * Update languages/csharp/exercises/concept/user-defined-exceptions/.docs/after.md Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com> * csharp/user-exceptions late review points * Update after.md * copy/paste error Co-authored-by: Erik Schierboom <erik_schierboom@hotmail.com>
CalculationException
but decided against it on the grounds that it could multiply the number of representations required. I can't really judge