Eric Anastas

San Francisco, CA

ericanastas.com

Age: 33

4h
awarded Nice Question
Dec
15
awarded Popular Question
Dec
6
comment Distributing a set of "Jobs" across multiple computers
Well yes but my question is how do I coordinate creating the JobSet when the related JobResults are created asynchronously.
Dec
5
asked Distributing a set of "Jobs" across multiple computers
Dec
1
awarded Notable Question
Nov
24
awarded Notable Question
Nov
17
awarded Notable Question
Nov
15
accepted Reverting or resetting a remote commit in Git?
Nov
15
comment Reverting or resetting a remote commit in Git?
Couldn't I do this as well? git merge -s ours origin/develop
Nov
15
asked Reverting or resetting a remote commit in Git?
Oct
31
comment Representing category splits in a personal finance database
Wouldn't this be exactly the same as the second example in my original question then? Not that that is necessarily bad, as I was leaning toward that option.
Oct
30
comment Interface to enumerate over files
Yes but the specifics of how the file is "opened" or "closed" may vary. That's why I'm starting to think an abstract class that defines the overall flow may work better then an interface. The parent class could defined the overall flow and when/if exceptions are thrown or caught. Derived classes would then only need to implement the specifics of how files are opened and saved. Something like this pattern: dofactory.com/net/template-method-design-pattern
Oct
30
comment Interface to enumerate over files
Different enumerators which can access data in different sources.
Oct
30
comment Interface to enumerate over files
So while the enumerator may have multiple files open in the background my intent was that the FileProcessor would only be aware of, accessing, and processing one file at a time. Maybe my that would be more clear if I named these methods "GetNextFile()" and "FinishedWithCurrentFile()" instead?
Oct
30
comment Interface to enumerate over files
No the files would be processed in sequence by FileProcessor. However, in regards to having nested data my thought was the enumerator may keep multiple documents opened in the background. So when the FileProcessor calls OpenNext() the enumerator may open a parent document, and then a child document which it returns first. Then "CloseCurrentFile()" would in reality load the child back into the parent. The next call to OpenNext() would return the parent file to be processed, and then CloseCurrentFile() would close and potentially save the parent file.
Oct
30
comment Interface to enumerate over files
Yes the "enumerator" handles closing and saving. Basically I don't want the processor class to have to worry about where the data came from at all. Maybe it is just a file on a drive. Maybe the data had to be downloaded from an FTP site, or a web service. The caveat that I'm struggling with is the processor does need to know if the enumerator ends up saving the file so that it can include that information in the reported "ProcesssingJobResult".
Oct
30
comment Representing category splits in a personal finance database
Also I don't really understand the purpose of "SplitLineID". This looks like it's used to store the order of the split amounts? I don't think I care about the order though?
Oct
30
awarded Critic
Oct
30
revised Representing category splits in a personal finance database
Added more columns to example tables
Oct
30
comment Representing category splits in a personal finance database
Thanks for the answer, but the problem I have with this idea is there is other information associated with the transaction that is not split like Date, Tags, Comments, AccountId etc...
1 2 3 4 5