get_x() and set_x doesn't necessarily have to be db retrieval, etc. What if I am getting a listing of files on disk?
I think I should keep get_directory_list() doing a normal return of array ref to list of files for a directory- for development, for coding use. And I would still need get_directory_list_prepped()
Yes, your suggestion is golden in regards to db retrieval! Althought- it *could* cripple preformance for large datasets- right?
Often the data that will be fed to the template is not so simple- It may be a collection of data on disk, metadata in a db, something in relation with who is viewing the data.. etc. Real time things that change and need to be looked up at the moment.
In reply to Re^2: Consistent naming for methods that return HTML::Template prepped data?
by leocharre
in thread Consistent naming for methods that return HTML::Template prepped data?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |