-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
simple-cipher: remove checks for invalid input #1346
simple-cipher: remove checks for invalid input #1346
Conversation
Do you mean an advanced version of this exercise (not-so-simple-cipher?), or an entirely separate exercise that only performs general data validation? I think having a tiered version of these kind of exercises would be good in principle - whether that is in the form of a separate, more advanced exercise, or optional test cases. I'm just not sure that the format of this site really supports either. Is there an accepted way to declare optional or advanced test cases in the spec? |
A new exercise could be a side exercise and it would either require that the student have already completed this exercise in order to have the code necessary for ciphering or the new exercise could provide a stub that contained code for ciphering. The student would be tasked with writing the code to protect the ciphering logic from bad input. If the ciphering logic is provided then the new exercise would be independent of this exercise... I am not sure which way is the best to go. |
42dd863
to
be80634
Compare
On another coding site, Codewars, there are a number of exercises that form a series. You first take on a relatively easy problem. Once you've solved that, then there's a more difficult version so solve and so on. This site doesn't really have that concept, but maybe it would not be a bad idea to do something like that. The description on this exercise already has three stages. If we are making the requirements easier, instead of making the unit tests harder, maybe we should look at serialising the exercise. Instead of steps 1 to 3, split it into two or three separate exercises with increasing difficulty. I'm not sure there's enough material in the current exercise to warrant three exercises, but I'm sure there are extra complexities and restrictions that can be made on the final stage to make it work. |
I am not opposed to this idea. I have already been thinking about it for a
new exercise specific to the Delphi track. The exercise is for writing a
calculator. The first half of the exercise will deal with the business
logic of dealing with performing the calculations; handled in a class....
The follow on exercise will see the student creating a UI to interface with
the class they wrote in the previous exercise. This allows the student a
chance to work with Delphi's nice UI creation capabilities while at the
same time promoting loose coupling between the business logic on the UI. I
have not worked on this in MANY months. The idea could certainly be
applied to other tracks.
…On Wed, Oct 10, 2018 at 4:07 PM xarxziux ***@***.***> wrote:
On another coding site, Codewars, there are a number of exercises that
form a series. You first take on a relatively easy problem. Once you've
solved that, then there's a more difficult version so solve and so on. This
site doesn't really have that concept, but maybe it would not be a bad idea
to do something like that.
The description on this exercise already has three stages. If we are
making the requirements easier, instead of making the unit tests harder,
maybe we should look at serialising the exercise. Instead of steps 1 to 3,
split it into two or three separate exercises with increasing difficulty.
I'm not sure there's enough material in the current exercise to warrant
three exercises, but I'm sure there are extra complexities and restrictions
that can be made on the final stage to make it work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1346 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGp508EXtx9RnO14c6G6Fbdhd_h4Wk6nks5ujlN6gaJpZM4XESlJ>
.
|
I meant an entirely new and separate exercise that just performs data validation. It should work standalone, but would be ok if it is part of a series. |
be80634
to
2016d79
Compare
2016d79
to
5eb79cf
Compare
These changes follow on the discussion that has taken place in #902 and #523. There may be some other examples regarding the discussion that I am missing. Feel free to point them out.
This PR is intended to be an alternate solution to #1298 to replace #1316.