-
Notifications
You must be signed in to change notification settings - Fork 804
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
Tip #03 - Improve Nested Conditionals example should have vastly different functions to call #66
Comments
@AlbertoFuente ping! |
Can we make use of functions ,for loop and if combination.. For if we provided with too much number of choices ? |
Or can we use switch case ?? |
A function would be the most obvious choice here. Switch can work too, but in this case it should be a function. |
Whoops @zenopopovici missed that @-mention and did see it until this was closed. I can scratch up a PR though now quickly 👍 |
…g example Fixes/improves loverajoel#66
The question of the tip is formatted as follows:
With the given information (the if-clause and the function names), the most obvious choice would be just to refactor the functions itself
which is a good tip in itself, but maybe not in the same vain the original #3 is. Obviously this isn't always possible (or feasible) with all of the cases, so the example could be / should be easily modified to something that looks more non-trivial 😸
The text was updated successfully, but these errors were encountered: