Skip to content

Unit 4 lesson 2 contrived examples considered harmful. #365

Answered by jdonwells
jdonwells asked this question in Q&A
Discussion options

You must be logged in to vote

I think I didn't explain that idea well. In your example match means the same thing. Let's say you have a text monster game and on one floor match is True if you have a match to light your lantern. On another floor match is used to tell if you won your boxing match with a goblin. The difference isn't in which boolean it holds, but rather the meaning. Doubling all the numbers is a transformation of that list into something else. It needs a different name because it isn't the same list anymore.

I disagree with your statement "a decent example of the use of a for loop to iterate through a string". I am planning on skipping that slide as there is no reason to debug it because it shouldn't eve…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@jdonwells
Comment options

@dvgrn
Comment options

@jdonwells
Comment options

@dvgrn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jdonwells
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants