Ad
  • Custom User Avatar

    In Python, "ball_type" is an instance variable not a method. You need to change "ball_type" so that it is set to the "type" parameter.

  • Custom User Avatar

    Perhaps you should start looking at functional programming (especially first-class functions) and why it's important and useful. Almost all the classical (mainstream) languages have adopted and implemented it, so it must have very important uses :P

    Also, no, callback hell is another thing, which has already been eliminated with ES6 Promises. It's been pretty much obsolete.