Bogdan Gusev

Greenhorn
+ Follow
since Apr 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bogdan Gusev

Utility method is usually static method of the class.
In most cases utility methods are placed in separated class that is called utility class or stateless
Utility methods are used when:
* Vendor class is used and can not put a method inside of it
* Class builder method that returns new object instance.
* Method that modifies the state of several classes(business process method)

14 years ago
Your has a little weak point that you have to write separated function for each of your file input.
If file input has some specific attributes: name, class, etc.
You should not forget to update it when original html will be changed.
Here is more universal solution.