-
-
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
Resistor series # 2 : ResistorColors #1464
Comments
How many are planned for the series? |
That's not decided. I added a link to the original post with the description of the series. 👍 |
I was going to create this very same issue. |
While I understand this sentiment, I don't think we should do this. Yes, the exercise is very simple, but that is also exactly its goal: to be a simple array exercise. If a track decides that it is too basic, they are of course free not to implement this exercise. For some tracks though, it might be the best array introduction exercise. |
Looking through this point of view, Resistor Color as a simple introduction to arrays, it does make sense to keep as it is and create additional exercises that explores more in-depth the use of arrays. |
Katrina wrote:
That's not good!! Thanks for catching that. It's my bad, because I utterly enjoy diving into domain specific language, and I like that in exercises too. (So, if we represent the polarities of the Exercism user in this regard, we may need to find a balance.) If you would build anything with a Raspberry Pi or an Arduino, one of the first components you need are resistors. In this exercise, it doesn't matter what a resistor is or does, the only thing that matters here is that they come with different values. And that they are tiny. So tiny, that it's hard to read such a value if it were printed on the thing. To solve that, fabricators use color codes that reveals their value. Which is great, but it makes it hard to see the actual value. OR Is this the direction you're thinking @kytrinyx ? |
I love it. This would actually totally solve the problem for me. I think... let's use your new description for now, and we can think about more storifying later! |
Cool! Thanks |
Also appreciate the less technical description! 🙌 |
I like While My opinion may also be biased (pun intended, resistor humor) since I know what resistors are. |
still the instructions on exercism are not really clear for me. It's not specified that should be an "array" what you have to pass as an argument |
@vin86, assuming you are attempting to write a solution on a track that has implemented this exercise, you should look at the test suite provided to determine the nature of the input that is expected. If you are trying to implement this exercise on a track that currently doesn't offer it then you are welcome to utilize whatever method makes the best sense for the language you are implementing and reviewing how other tracks have implemented the exercise is a good way get started. |
The ResistorColor exercise is meant as the start of a series of resistor decoding exercises.
Here's number 2: the Resistor Significants exercise.
For this exercise, a given input represents the colors of the first 2 bands of a resistor, for instance
['brown', 'black']
and should return the combined number value10
.This are real life examples of such color combinations:
translated to tests:
About the naming:
The two first bands of resistors are also referenced to as 'significant figures'. The other bands have a different meaning (number of zeros, percentages).
The text was updated successfully, but these errors were encountered: