timoxley / functional-javascript-workshop

A functional javascript workshop. No libraries required (i.e. no underscore), just ES5.
2.06k stars 441 forks source link

exercise 5: too big a jump #181

Open MichaelLSmith opened 7 years ago

MichaelLSmith commented 7 years ago

It might be my limited brain, but I found the jump from filter to Every and Some too big a jump for a newbie like me. I read their descriptions on MDN, but thinking about how to use them together never came. I eventually had to find a solution, and then reason my way through it. Hints are hard because you don't want to give it away, but maybe something hinting that you use every() on one of the arguments, and some() on the other and let us reason through which goes with which.

Also, it would have helped to have a brief explanation of var testAllValid = checkUsersValid(goodUsers), and how that works exactly. Specifically that you're creating a new function called testAllValid that calls checkUsersValid with good users as an argument. It seems obvious once you know it, but it confused me at first -- I'm assuming I have it right :)

And I honestly am still trying to wrap my head around how it's called after it's defined in the exercise.

Other than that, this is great workshop. Thank you.

xaca commented 5 years ago

@MichaelLSmith I shared your comments, exercise 5, is tricky. I haven't finished yet. I need some others hints. I try to understand what happend wen checkUSerValid is called, but when I try in the console is still dark. Please some help. Thank you. 👨‍🎓