php icon indicating copy to clipboard operation
php copied to clipboard

[Resistor Color] Instructions needed

Open MariusT-Devspace opened this issue 2 years ago • 2 comments

Hey guys, running the exercise I get the following error: Undefined constant "COLORS". Reading from another issue that's been closed, COLORS is a constant that should be declared by the user globally. However there's no instructions to do this, and this could make it harder for beginner programmers to solve the exercise. I'm not good at writing, so If someone could add some instructions it would be great. Cheers!

MariusT-Devspace avatar Sep 11 '22 13:09 MariusT-Devspace

When you are running the tests, is there a test that complains about this not existing?

This may not be an exercise that is meant to "teach programming", but instead to practice the language. Slightly different way to present information, because it assumes programming experience, just not in this language.

With that in mind, how does it change the problem presented? Also, can you reference the "another issue that's been closed" so that we can see it too, to get context of the conversation?

kotp avatar Sep 13 '22 18:09 kotp

I do think this challenge could be updated to provide some more guidance, I would be happy to adapt it.

jwhitt3r avatar Sep 28 '22 18:09 jwhitt3r

@jwhitt3r if you open an improvement I'll review it

neenjaw avatar Aug 02 '23 23:08 neenjaw

@MichaelBunker merged a change to alter this requirement to be a method that returns an array of colors to improve the exercise and address this issue.

neenjaw avatar Aug 19 '23 18:08 neenjaw