TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Josh R.
Application Developer Intern at Interactive Intelligence
Tutor Satisfaction Guarantee
jQuery Programming
TutorMe
Question:

What is the difference between the "on" and "one" jQuery methods?

Josh R.
Answer:

The "on" method binds an element to an event listener and that listener is called each time the event is triggered. The "one" method also binds an element to an event listener, but, the first time the event is triggered, the listener is called then unbound from the element so that it is only triggered once.

Javascript Programming
TutorMe
Question:

What are some of the benefits and drawbacks of using a loosely typed language such as JavaScript?

Josh R.
Answer:

Since you don't have to worry about types it is easier to create and use anonymous objects inline, but this also means that you can't guarantee what data you will be working with. This can be especially helpful when you have a unique object that you only use once since you don't have to define a type for it in order to use it effectively. Not having types also means that you cannot take advantage of some of the benefits of polymorphism like function overloading.

C++ Programming
TutorMe
Question:

How do you pass or simulate passing a function to another function as a parameter?

Josh R.
Answer:

To actually pass a function as a parameter you can use a function pointer or, since C++11, you can pass a lambda function. To simulate passing a function as a parameter you can use the command pattern. To do this you create pure abstract class with an "execute" method, create classes that implement the abstract class, and pass an instance of one of those classes to the function. Then you call the command's "execute" method in the function.

Send a message explaining your
needs and Josh will reply soon.
Contact Josh
Ready now? Request a lesson.
Start Session
FAQs
What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Session" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.