a helper is just a class or a method that is seperate from what you are
working on that is designed to do one task that you need done.
Sometimes a function will simply be overloaded and the more complicated
overload will be private inside the class the public function will take
the parameter and figure out the correct parameters for the more
complicated function (perhaps a searching algorithm) then pass it to
that "helper function" to do the search.
Or maybe you have some extra class that handles parsing.. and you can
use that helper class you created regularly in your Form application
from many different locations.
A helper is just that.. It's an object or function you create to
do a specific job so that you can call on it whenever you need.
Mostly when we say we will create a helper, I think we mean that we are
going to take this code out and create it in a seperate place to make
the code cleaner. That way the code that uses the helper only has
to worry about its main function.
Helper ... what is it?
mclabman
Sometimes a function will simply be overloaded and the more complicated overload will be private inside the class the public function will take the parameter and figure out the correct parameters for the more complicated function (perhaps a searching algorithm) then pass it to that "helper function" to do the search.
Or maybe you have some extra class that handles parsing.. and you can use that helper class you created regularly in your Form application from many different locations.
A helper is just that.. It's an object or function you create to do a specific job so that you can call on it whenever you need. Mostly when we say we will create a helper, I think we mean that we are going to take this code out and create it in a seperate place to make the code cleaner. That way the code that uses the helper only has to worry about its main function.