× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe,

He's talking about a function that hides the details of how the data is
stored.  You could implement the function using a database table as you're
talking about.  Maybe the data is stored as static data in the function as
you think Rob is implying.  Maybe the data is stored in a spreadsheet or
flat file (which could be loaded dynamically, at compile time, the first
time the function is used, etc).  Maybe there is a business rule that
identifies when the warehouse is open (Open Monday through Friday each week
except for a holiday on those days.  Closed the following Monday when the
holiday falls on a weekend.  These are the holidays for this warehouse...).
Maybe the function calls an API in the warehouse application for an open
flag for that date.  Who cares what's behind the function as long as it
works?

Paul

-- 
Paul Morgan
Senior Programmer Analyst - Retail
J. Jill Group
100 Birch Pond Drive, PO Box 2009
Tilton, NH 03276-2009
Phone: (603) 266-2117
Fax:   (603) 266-2333

Joe Pluta wrote

> You would replace a user-editable file with a hard-coded table in a
> program?  Ooooooooookay.  That's a... err... UNIQUE solution.  Certainly
> one I hadn't thought of.
>
> For anyone else, I'll make the question a little more specific: a file
> holds maintainable calendar information (let's say for multiple
> warehouses), and the information in question is simply a flag that says
> whether the warehouse is open that day or not.  The data is stored in a
> file because ... well, because that's where everybody except Rob stores
> user-modifiable data.
>
> Would you store the data one flag per warehouse/date, with the warehouse
> and date as the keys to the file, or would you store the information in
> an array, perhaps by year or by some other arbitrary unit of time?
>
> Joe




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.